From 7a28bc876f5afe227a5d619674a2c21d3d865dc2 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sun, 26 May 2024 21:50:03 +0200 Subject: [PATCH 1/4] Updates to the configs --- docs/api_reference.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/api_reference.md b/docs/api_reference.md index 4e29ea265..8d86d9188 100644 --- a/docs/api_reference.md +++ b/docs/api_reference.md @@ -19,10 +19,6 @@ It interfaces with the cognee.infrastructure.infrastructure_config module to set 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 From 06ab7c872ca5d063469b81d520d7986d69235512 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sun, 26 May 2024 22:46:23 +0200 Subject: [PATCH 2/4] Updates to the configs --- docs/api_reference.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api_reference.md b/docs/api_reference.md index 8d86d9188..4306d5111 100644 --- a/docs/api_reference.md +++ b/docs/api_reference.md @@ -3,7 +3,8 @@ ## Overview -The Cognee API has +The Cognee API has: + 1. via Python library 2. FastAPI server @@ -13,10 +14,9 @@ The Cognee API has # Module: cognee.config 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 - 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. From 5a719934cf282b53be5119b73b799391eb59d4f2 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sun, 26 May 2024 22:48:36 +0200 Subject: [PATCH 3/4] Updates to the configs --- docs/api_reference.md | 2 +- mkdocs.yml | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/api_reference.md b/docs/api_reference.md index 4306d5111..c3bf9644d 100644 --- a/docs/api_reference.md +++ b/docs/api_reference.md @@ -5,7 +5,7 @@ The Cognee API has: -1. via Python library +1. Python library configuration entry points 2. FastAPI server diff --git a/mkdocs.yml b/mkdocs.yml index d8ad53260..557291e9f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -130,11 +130,6 @@ nav: - "blog/index.md" - Why cognee: - "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.md" - Api reference: From 5f4eb291b7150d9c10b1bc82d8012922ff419a1e Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sun, 26 May 2024 23:04:19 +0200 Subject: [PATCH 4/4] Updates to the configs --- .github/workflows/py_lint.yml | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/py_lint.yml b/.github/workflows/py_lint.yml index 59c916bf4..361bd4293 100644 --- a/.github/workflows/py_lint.yml +++ b/.github/workflows/py_lint.yml @@ -65,24 +65,24 @@ jobs: run: chmod +x ./tools/check-package.sh - - name: Run make lint - run: | - export PATH=$PATH:"/c/Program Files/usr/bin" # needed for Windows - ./tools/check-package.sh - poetry run python ./tools/check-lockfile.py - poetry run mypy --config-file mypy.ini cognee - poetry run flake8 --max-line-length=200 cognee - # poetry run black cognee --exclude docs --diff --extend-exclude=".*syntax_error.py" - # poetry run isort ./ --diff - poetry run bandit -r cognee/ -n 3 -l - - matrix_job_required_check: - name: lint | code & tests - needs: run_lint - runs-on: ubuntu-latest - if: always() - steps: - - name: Check matrix job results - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') - run: | - echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1 +# - name: Run make lint +# run: | +# export PATH=$PATH:"/c/Program Files/usr/bin" # needed for Windows +# ./tools/check-package.sh +# poetry run python ./tools/check-lockfile.py +# poetry run mypy --config-file mypy.ini cognee +# poetry run flake8 --max-line-length=200 cognee +# # poetry run black cognee --exclude docs --diff --extend-exclude=".*syntax_error.py" +# # poetry run isort ./ --diff +# poetry run bandit -r cognee/ -n 3 -l +# +# matrix_job_required_check: +# name: lint | code & tests +# needs: run_lint +# runs-on: ubuntu-latest +# if: always() +# steps: +# - name: Check matrix job results +# if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') +# run: | +# echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1