Commit graph

316 commits

Author SHA1 Message Date
Igor Ilic
6b57bfc4cb feat: Add ability to change graph database configuration through cognee 2025-01-09 16:41:18 +01:00
Rita Aleksziev
626bc76f5c Set max_tokens in config 2025-01-09 12:53:26 +01:00
hajdul88
341f30fcdc fix: Fixes ruff formatting 2025-01-09 12:00:49 +01:00
hajdul88
fe57eb69e7
Merge branch 'dev' into feature/cog-967-adding-graph-completion-feature-to-cognee 2025-01-09 11:07:19 +01:00
Rita Aleksziev
5635da6e38 Adjust unit tests 2025-01-09 10:53:03 +01:00
hajdul88
d39140f28b feat: implements the first version of graph based completion in search 2025-01-08 16:10:29 +01:00
Rita Aleksziev
97814e334f Get embedding engine instead of passing it in code chunking. 2025-01-08 13:45:04 +01:00
Rita Aleksziev
34a9267f41 Get embedding engine instead of passing it. Get it from vector engine instead of direct getter. 2025-01-08 13:23:17 +01:00
vasilije
41b1486cff Fix visualization 2025-01-08 13:13:52 +01:00
hajdul88
18c8bc3c33
Merge branch 'dev' into COG-adding_html_graph_render 2025-01-08 10:44:11 +01:00
alekszievr
0dec704445
Merge branch 'dev' into COG-949 2025-01-08 10:21:07 +01:00
vasilije
61897c57e8 Fix visualization 2025-01-07 15:25:16 +01:00
vasilije
2d10065166 Fix visualization 2025-01-07 15:21:44 +01:00
vasilije
4c21dd0cce Fix visualization 2025-01-07 15:21:08 +01:00
hajdul88
bd644a1434 fix: Fixes duplicated edges in cognify by limiting the recursion depth in add datapoints 2025-01-07 13:33:05 +01:00
alekszievr
4802567871
Overcome ContextWindowExceededError by checking token count while chunking (#413) 2025-01-07 11:46:46 +01:00
vasilije
1b96a71d5a Fix ollama, work on visualization 2025-01-06 19:09:58 +01:00
vasilije
76a0aa7e8b Fix linter issues 2025-01-05 19:48:35 +01:00
vasilije
6dafe73a6b Fix linter issues 2025-01-05 19:24:55 +01:00
vasilije
649fcf2ba8 Fix linter issues 2025-01-05 19:21:09 +01:00
vasilije
60c8fd103b ruff format 2025-01-05 19:09:08 +01:00
lxobr
262deee26e
Cog 813 source code chunks (#383)
* fix: pass the list of all CodeFiles to enrichment task

* feat: introduce SourceCodeChunk, update metadata

* feat: get_source_code_chunks code graph pipeline task

* feat: integrate get_source_code_chunks task, comment out summarize_code

* Fix code summarization (#387)

* feat: update data models

* feat: naive parse long strings in source code

* fix: get_non_py_files instead of get_non_code_files

* fix: limit recursion, add comment

* handle embedding empty input error (#398)

* feat: robustly handle CodeFile source code

* refactor: sort imports

* todo: add support for other embedding models

* feat: add custom logger

* feat: add robustness to get_source_code_chunks

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat: improve embedding exceptions

* refactor: format indents, rename module

---------

Co-authored-by: alekszievr <44192193+alekszievr@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-26 13:53:38 +01:00
alekszievr
de2394c392
Ingest non-code files (#395)
* Ingest non-code files

* Fixing review findings
2024-12-20 14:06:40 +01:00
hajdul88
291a9e6171 chore: deletes unused imports from code_graph_pipeline 2024-12-19 17:43:34 +01:00
hajdul88
696a22447b chore: deletes unused old version of the codegraph 2024-12-19 17:36:37 +01:00
hajdul88
29dbcc509f Fix: fixes langfuse config settings 2024-12-19 16:07:52 +01:00
Vasilije
ffb44529cc
Merge branch 'dev' into LANGFUSE_FIX 2024-12-18 19:07:13 +01:00
vasilije
c448dfb96d Fix langfuse 2024-12-18 19:01:29 +01:00
Igor Ilic
63c3dceec6 fix: Resolve issue with cognify router graph model default value
Resolve issue with default value for graph model in cognify endpoint

Fix
2024-12-17 14:07:50 +01:00
Igor Ilic
dfcec5f41d Merge branch 'dev' of github.com:topoteretes/cognee into COG-912-search-by-dataset 2024-12-17 13:29:19 +01:00
Igor Ilic
8b09358552
Merge branch 'dev' into COG-912-search-by-dataset 2024-12-17 13:22:13 +01:00
Igor Ilic
3f72652500
Merge branch 'dev' into add_model_to_endpoint 2024-12-17 13:19:36 +01:00
alekszievr
9afd0ece63
Structured code summarization (#375)
* feat: turn summarize_code into generator

* feat: extract run_code_graph_pipeline, update the pipeline

* feat: minimal code graph example

* refactor: update argument

* refactor: move run_code_graph_pipeline to cognify/code_graph_pipeline

* refactor: indentation and whitespace nits

* refactor: add deprecated use comments and warnings

* Structured code summarization

* add missing prompt file

* Remove summarization_model argument from summarize_code and fix typehinting

* minor refactors

---------

Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
Co-authored-by: Boris <boris@topoteretes.com>
2024-12-17 13:05:47 +01:00
lxobr
da5e3ab24d
COG 870 Remove duplicate edges from the code graph (#293)
* feat: turn summarize_code into generator

* feat: extract run_code_graph_pipeline, update the pipeline

* feat: minimal code graph example

* refactor: update argument

* refactor: move run_code_graph_pipeline to cognify/code_graph_pipeline

* refactor: indentation and whitespace nits

* refactor: add deprecated use comments and warnings

---------

Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
Co-authored-by: Boris <boris@topoteretes.com>
2024-12-17 12:02:25 +01:00
Igor Ilic
c2d2b26319 fix: Remove backend lock from UI
Removed lock that prevented using multiple datasets in cognify

Fix COG-912
2024-12-17 11:52:30 +01:00
Igor Ilic
630ab556db feat: Add search by dataset for cognee
Added ability to search by datasets for cognee users

Feature COG-912
2024-12-17 11:20:22 +01:00
vasilije
3366bb3680 Fixes 2024-12-16 21:23:11 +01:00
vasilije
cfad366c5c update 2024-12-16 11:45:33 +01:00
Vasilije
dc37646df3
Update get_cognify_router.py 2024-12-14 21:30:12 +01:00
Vasilije
fb1c223982
Merge pull request #369 from topoteretes/feat/pass_pydantic_model_to_cognify
pass pydantic model to cognify
2024-12-13 19:46:05 +01:00
Igor Ilic
924759a599 refactor: Rename query compute to query completion
Rename searching type from compute to completion

Refactor COG-656
2024-12-13 17:03:38 +01:00
Rita Aleksziev
1c9fe01f64 pass pydantic model tocognify 2024-12-13 16:34:48 +01:00
Igor Ilic
9c3e2422f3 feat: Add compute search to cognee
Add compute search to cognee which makes searches human readable

Feature COG-656
2024-12-13 15:18:33 +01:00
Igor Ilic
43187e4d63 feat: Add user verification for accessing data
Verify user has access to data before returning it

Feature COG-656
2024-12-13 13:54:45 +01:00
Igor Ilic
1180839469 feat: Add error handling in case user is already part of database and permission already given to group
Added error handling in case permission is already given to group and user is already part of group

Feature COG-656
2024-12-13 12:49:57 +01:00
Igor Ilic
b8ba436dba fix: Resolve issue with adding permissions to groups
Resolve issue with adding permissions to groups

Fix COG-656
2024-12-13 12:37:01 +01:00
Igor Ilic
eddfc17861 fix: Rewrite endpoint to add users to groups
Rewrote endpoint which adds users to groups

Fix COG-656
2024-12-13 12:13:42 +01:00
Igor Ilic
7100a4994a feat: Add resolving of directories as task for the add pipeline
Add resolving of directories as task for the add pipeline

Feature COG-656
2024-12-12 17:04:49 +01:00
Igor Ilic
ff9fd90cf1 feat: Add directory resolution as step in cognee add function
Added directory resolution as step in cognee add function

Feature COG-656
2024-12-11 17:33:51 +01:00
Boris
9429e5e1f5
Merge branch 'main' into COG-505-data-dataset-model-changes 2024-12-06 12:53:32 +01:00