-
Notifications
You must be signed in to change notification settings - Fork 1.1k
release: 0.2.4 #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
release: 0.2.4 #1300
Changes from 1 commit
Commits
Show all changes
170 commits
Select commit
Hold shift + click to select a range
af94012
added files
Vasilije1990 84ba0b2
fix cognify
Vasilije1990 1a15669
Merge branch 'dev' into add_cli
Vasilije1990 8590194
feat: add top_k input to SearchView and send to backend
Raj2604 e26c216
Merge branch 'dev' into feature/top_k-input
Raj2604 ff1614d
format
Vasilije1990 1de81c8
added fixes
Vasilije1990 b226595
added fix
Vasilije1990 e3bd474
git merge
Vasilije1990 a15cad0
Merge branch 'dev' into add_cli
Vasilije1990 ed555a7
feat: adds new Exception classes
hajdul88 0555dd9
Update __init__.py
hajdul88 1b3898d
feat: updates rel_db exceptions with the new error classes
hajdul88 b40dbf3
feat: adds new error classes to litellm instructor
hajdul88 623148e
feat: adds new errors to litellm client
hajdul88 7bd2660
feat: setting base classes of data exceptions to the new ones
hajdul88 6870bba
feat: adds new error to delete
hajdul88 ebd4403
adds new error classes to keywordextration error and defines new error
hajdul88 657c775
feat: adds configattributeerror
hajdul88 5bc00f1
feat: adds new search classes to search.py
hajdul88 9fb9f68
adds new base errors to retrieval exceptions
hajdul88 91b9c11
changes base class for vectordb exceptions
hajdul88 6dcd59c
feat: Adds changes to cognee graph part
hajdul88 32996aa
feat: adds new error classes to llm and databases + introduces loglev…
hajdul88 bed523a
feat: api error handling restruct
hajdul88 38329da
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 544e089
feat: removing invalidValueErrors
hajdul88 885f7c3
chore: fixing graph elements tests
hajdul88 d1bfeaa
fix: fixes search unit test error expectation
hajdul88 fabbd63
chore: renaming error
hajdul88 59c9204
Update exceptions.py
hajdul88 68327d3
chore: Changing base classes for exceptions that were already defined
hajdul88 da40365
ruff formatting
hajdul88 7af4775
chore: changed pypdf error base class
hajdul88 66d2c75
chore: changing docstring
hajdul88 8bd2416
chore: fixing delete exception import in dataset router
hajdul88 d14d31a
chore: updating delete_by_id test
hajdul88 748e9fa
feat: adds s3 file system not found error to ingestion
hajdul88 dbb967f
chore: updates neptune exception base + ruff
hajdul88 ca21122
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 c75f017
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 c99b453
feat: adds WrongDataDocumentError to classify documents
hajdul88 df3a3df
feat: adds errors to classify, and chunking top level
hajdul88 9f965c4
feat: adds input checks for extract graph from data
hajdul88 63d071f
feat: adds input checks for add datapoints and summarization tasks
hajdul88 affbc55
chore: ruff formatting
hajdul88 a7d7e12
ruff fix
hajdul88 dd6e26f
Merge remote-tracking branch 'origin/dev' into feature/cog-2717-add-b…
hajdul88 d884cc4
Merge branch 'dev' into feature/cog-2717-add-better-error-management-…
hajdul88 f5eecba
feat: add top_k-input and send it to backend
Raj2604 c606273
Refactor CI workflows to replace Poetry with uv for dependency manage…
daukadolt cb5590b
Update installation instructions and replace Poetry with uv across do…
daukadolt a1edfc9
docs: update README.md with new supported python versions
daukadolt 1ab3328
fix: uv uninstalls rest of packages in some workflows
daukadolt bcdbadc
fix: unintentionally uninstall required deps when "uv sync"
daukadolt 3941e46
chore: add step to rebuild uv lockfile in CI workflow
daukadolt 4312508
undo: keep poetry-uv change limited to CI/CD fo now
daukadolt 216ffd2
Refactor CI workflows to replace Poetry with uv (#1250)
Vasilije1990 81a1758
Remove NetworkX from cognee core.
misselvexu 85c7f11
Keep networkx as core dependency
daukadolt 50ebced
fix: natural_language_retriever.py
daukadolt 8d045b9
chore: forgot to remove NetworkX check in NLPRetriever
daukadolt 8825aaa
format: ruff format
daukadolt 1ee697b
fix: Return distributed as part of Cognee build
dexters1 1e57ac9
fix: Return distributed as part of Cognee build (#1257)
Vasilije1990 271e7e9
feature: Introduces new error handling (4 base errors + specified hie…
Vasilije1990 86e5135
chore: Update Cognee version
dexters1 99a517d
chore: Update Cognee version (#1258)
dexters1 761bb1b
test: deprecate networkx_metrics_test.py
daukadolt 5f7598d
test: use neo4j_metrics_test in descriptive tests instead of networkx
daukadolt e4e0512
feat: add reusable GitHub Action to set up Neo4j with Graph Data Scie…
daukadolt 73e1aa7
Merge branch 'dev' into issues/1183
Vasilije1990 9987e05
Remove NetworkX from cognee core. (#1241)
Vasilije1990 b0e3f89
move to gpt5
Vasilije1990 c4ec679
Merge branch 'dev' into move_to_gpt5
Vasilije1990 1bd40f1
renamed max tokens
Vasilije1990 693c883
updated deepeval
Vasilije1990 abbce6e
fix: Move to gpt5 (#1262)
Vasilije1990 711c805
feat: adds cognee-user interactions to search
hajdul88 d53ebb2
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 dc637f7
fix: fixes add datapoints params
hajdul88 fbb7d72
fix: ruff formatting
hajdul88 1d63da7
chore: removes duplicated func def
hajdul88 78fb415
chore: changes context return value in tests
hajdul88 b6be617
fix: fixes tests
hajdul88 0529d4b
fix: fixes kuzu and neo4j tests
hajdul88 9a46d14
chore: fix search db tests
hajdul88 fc43ac7
feat: adds user feedback search type
hajdul88 4d021ec
chore: fix openai version (#1266)
hajdul88 d4ace62
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 0fbe218
chore: fixes ruff
hajdul88 fb51131
Merge branch 'dev' into add_cli
Vasilije1990 9017b63
simplify logging utils and refactor
Vasilije1990 9a17aa7
added fix
Vasilije1990 13e3e3b
added fix
Vasilije1990 cae173b
fix bug
Vasilije1990 d084d00
added tests
Vasilije1990 66d7fa9
fix tests
Vasilije1990 3152368
added fix
Vasilije1990 f5d702f
added fixes to integraton tests
Vasilije1990 fe6c900
added fix
Vasilije1990 372181d
fix: fixes unit test
hajdul88 fcdee16
feat: adds kuzu and neo4j tests for feedback and interaction features
hajdul88 4e31ae7
chore: deletes unused var from search test
hajdul88 e912b6f
fix: ensure connection check before executing checkpoint in KuzuAdapter
daukadolt c6ec22a
feat: adds scores to Feedback node
hajdul88 67c7919
fix: ensure connection check before executing checkpoint in KuzuAdapt…
Vasilije1990 bf1970b
feat: Add top_k Input Control to Search UI for Adjustable Graph Explo…
Vasilije1990 4a5d5f7
feat: adds feedback weights to edges
hajdul88 f5d8fc6
chore: ruff ruff
hajdul88 67d88c4
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interaction…
hajdul88 b8cac4c
feat: adds weight test at the end of test_search_db
hajdul88 6d9a100
feature: Introduces Cognee-user interactions feature and feedback sea…
Vasilije1990 d69669b
added ability to send custom prompts to cognify
Vasilije1990 6d438c8
feat: Add dataset and pipeline status layer
dexters1 6f230c5
feature: adds environment_setup_and_checks general purpose layer to c…
hajdul88 a805c64
Fix, remove, improve cli tests.
siillee 573e24f
Remove duplicate test files.
siillee d4b23aa
feat: Add process_pipeline_check
dexters1 9a4e8dd
refactor: Make the authorized_user_datasets function more understandable
dexters1 e85fd35
Fix linter error.
siillee a3d5164
Fix formatting. Potential fix to invalid api key error.
siillee 66b8bb3
Another potential fix for the invalid API key error.
siillee 31b33a9
Yet another potential fix for the invalid API key.
siillee 4b593aa
And another potential fix for the API error.
siillee 454358e
Solution for the API key error.
siillee de7a5a1
Fixed yml files
siillee dce525e
Fix again.
siillee cf7d41c
Fix
siillee a6a33e9
Feature/cog 2768 inspect cli tests fix failing ones (#1286)
Vasilije1990 950d29a
refactor: Update typing
dexters1 03fc3c8
Merge branch 'dev' into cognee-pipeline-layers
dexters1 d91b0f6
feature: adds pipeline execution layer to cognify (#1291)
hajdul88 42d33fc
fix: fixes search test behaviour and adds comments to new pipeline ex…
hajdul88 5ea3056
refactor: Rename auth layer
dexters1 0d77649
Merge branch 'cognee-pipeline-layers' of github.com:topoteretes/cogne…
dexters1 5771b36
feat: cognee pipeline layers (#1287)
dexters1 ea4f58e
feat: migrate pipeline input validation to a layer (#1284)
borisarzentar c013499
Fix tests failing for python 3.10
siillee 007399b
feat: migrate pipeline status reset to add pipeline (#1289)
borisarzentar e5f0c22
Merge branch 'dev' into add_cli
Vasilije1990 d6e6e87
feat: Add cli (#1197)
Vasilije1990 8c69653
fix: Resolve issue with Windows path
dexters1 65542ec
refactor: Make CI/CD faster add more OS tests
dexters1 229a7a1
refactor: Speed up CI/CD execution time
dexters1 9c31617
fix: Resovle windows file path issue
dexters1 58655ca
refactor: Add proper path to test file
dexters1 6e5acec
refactor: make run_pipeline a high-level api for running pipelines (#…
borisarzentar 23a46e5
Merge branch 'dev' into fix-windows-path
dexters1 ecc403e
fix: Add binary for python magic for windows os
dexters1 644116a
Merge branch 'fix-windows-path' of github.com:topoteretes/cognee into…
dexters1 eb65a89
fix: Resolve integration tests path issue
dexters1 23ea1c1
Potential fix for code scanning alert no. 187: Workflow does not cont…
dexters1 e4e1a54
refactor: Add read permissions only for gh token
dexters1 11934cd
fix: Resolve integration test issue
dexters1 3a3274b
Update .github/workflows/test_different_operating_systems.yml
dexters1 24c155b
fix: Resolve issue with Windows path (#1295)
Vasilije1990 62afced
feat: Added custom prompt to cognify (#1278)
Vasilije1990 d4ce0e1
Merge branch 'main' into merge-main-vol-6
dexters1 6ca46f1
refactor: ruff format
dexters1 328b75a
Merge main vol 6 (#1298)
Vasilije1990 5e6ada2
fix issue
Vasilije1990 792452b
added fix
Vasilije1990 75ea520
fix to cli
Vasilije1990 c933290
fixes to CLI
Vasilije1990 9df3466
format
Vasilije1990 19b59fc
Update Jupyter notebooks: added execution counts, improved logging ou…
daukadolt 9f27402
Update Jupyter notebooks (#1299)
Vasilije1990 235015b
linter fix
Vasilije1990 cc5e684
added fix to tests
Vasilije1990 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
renamed max tokens
- Loading branch information
commit 1bd40f1401ffcfb4c1ca4256ecaef45e76ad1383
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,15 +23,15 @@ class AnthropicAdapter(LLMInterface): | |
| name = "Anthropic" | ||
| model: str | ||
|
|
||
| def __init__(self, max_tokens: int, model: str = None): | ||
| def __init__(self, max_completion_tokens: int, model: str = None): | ||
| import anthropic | ||
|
|
||
| self.aclient = instructor.patch( | ||
| create=anthropic.AsyncAnthropic().messages.create, mode=instructor.Mode.ANTHROPIC_TOOLS | ||
| ) | ||
|
|
||
| self.model = model | ||
| self.max_tokens = max_tokens | ||
| self.max_completion_tokens = max_completion_tokens | ||
|
|
||
|
Comment on lines
+26
to
35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix: hard-coded max_completion_tokens ignores constructor value acreate_structured_output hard-codes 4096 and bypasses the configured max_completion_tokens. Use the instance attribute to honor caller configuration. Apply: @@
return await self.aclient(
model=self.model,
- max_completion_tokens=4096,
+ max_completion_tokens=self.max_completion_tokens,
max_retries=5,Also applies to: 58-61 🤖 Prompt for AI Agents |
||
| @sleep_and_retry_async() | ||
| @rate_limit_async | ||
|
|
@@ -57,7 +57,7 @@ async def acreate_structured_output( | |
|
|
||
| return await self.aclient( | ||
| model=self.model, | ||
| max_tokens=4096, | ||
| max_completion_tokens=4096, | ||
| max_retries=5, | ||
| messages=[ | ||
| { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Backwards compatibility for env var rename.
Renaming to
embedding_max_completion_tokenswill break existing.envusingEMBEDDING_MAX_TOKENS. Accept both via validation alias.📝 Committable suggestion