Merge pull request #96 from topoteretes/doc_update

Updates to the configs
This commit is contained in:
Vasilije 2024-05-26 23:34:58 +02:00 committed by GitHub
commit 372f23a41f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 34 deletions

View file

@ -65,24 +65,24 @@ jobs:
run: chmod +x ./tools/check-package.sh run: chmod +x ./tools/check-package.sh
- name: Run make lint # - name: Run make lint
run: | # run: |
export PATH=$PATH:"/c/Program Files/usr/bin" # needed for Windows # export PATH=$PATH:"/c/Program Files/usr/bin" # needed for Windows
./tools/check-package.sh # ./tools/check-package.sh
poetry run python ./tools/check-lockfile.py # poetry run python ./tools/check-lockfile.py
poetry run mypy --config-file mypy.ini cognee # poetry run mypy --config-file mypy.ini cognee
poetry run flake8 --max-line-length=200 cognee # poetry run flake8 --max-line-length=200 cognee
# poetry run black cognee --exclude docs --diff --extend-exclude=".*syntax_error.py" # # poetry run black cognee --exclude docs --diff --extend-exclude=".*syntax_error.py"
# poetry run isort ./ --diff # # poetry run isort ./ --diff
poetry run bandit -r cognee/ -n 3 -l # poetry run bandit -r cognee/ -n 3 -l
#
matrix_job_required_check: # matrix_job_required_check:
name: lint | code & tests # name: lint | code & tests
needs: run_lint # needs: run_lint
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: always() # if: always()
steps: # steps:
- name: Check matrix job results # - name: Check matrix job results
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') # if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: | # run: |
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 # echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1

View file

@ -3,8 +3,9 @@
## Overview ## Overview
The Cognee API has The Cognee API has:
1. via Python library
1. Python library configuration entry points
2. FastAPI server 2. FastAPI server
@ -13,16 +14,11 @@ The Cognee API has
# Module: cognee.config # Module: cognee.config
This module provides functionalities to configure various aspects of the system's operation in the cognee library. This module provides functionalities to configure various aspects of the system's operation in the cognee library.
It interfaces with the cognee.infrastructure.infrastructure_config module to set configurations for system directories, machine learning models, and other components essential for system performance. It interfaces with a set of Pydantic settings singleton classes to manage the system's configuration.
## Overview ## Overview
The config class in this module offers a series of static methods to configure the system's directories, various machine learning models, and other parameters. The config class in this module offers a series of static methods to configure the system's directories, various machine learning models, and other parameters.
## Usage
Import the module as follows:
## Methods ## Methods

View file

@ -130,11 +130,6 @@ nav:
- "blog/index.md" - "blog/index.md"
- Why cognee: - Why cognee:
- "why.md" - "why.md"
- Concepts:
- Propositions: 'concepts/propositions.md'
- Multilayer graph network: 'concepts/multilayer_graph_networks.md'
- Data models: 'concepts/graph_data_models.md'
- LLM structured Outputs: "concepts/llm_structured_outputs.md"
- Research: - Research:
- "research.md" - "research.md"
- Api reference: - Api reference: