Commit graph

2080 commits

Author SHA1 Message Date
Boris Arzentar
44a4f8fd0d version: v0.1.23 2025-02-01 15:23:43 +01:00
hajdul88
2fd6bfa44c
feat: implement unit tests and extensive checks around the get_graph_from_model [COG-754] (#491)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **Tests**
  - Added comprehensive unit tests for graph model generation
- Introduced new test scenarios covering various data structures and
edge cases
  - Implemented tests for document, chunk, and entity relationships

- **Chores**
- Updated continuous deployment workflow to trigger only on `dev` branch

The release focuses on improving test coverage and refining the
deployment process.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-31 18:17:23 +01:00
Igor Ilic
8879f3fbbe
feat: Add gemini support [COG-1023] (#485)
<!-- .github/pull_request_template.md -->

## Description
PR to test Gemini PR from holchan

1. Add Gemini LLM and Gemini Embedding support 
2. Fix CodeGraph issue with chunks being bigger than maximum token value
3. Add Tokenizer adapters to CodeGraph

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
    - Added support for the Gemini LLM provider.
    - Expanded LLM configuration options.
- Introduced a new GitHub Actions workflow for multimetric QA
evaluation.
- Added new environment variables for LLM and embedding configurations
across various workflows.

- **Bug Fixes**
    - Improved error handling in various components.
    - Updated tokenization and embedding processes.
    - Removed warning related to missing `dict` method in data items.

- **Refactor**
    - Simplified token extraction and decoding methods.
    - Updated tokenizer interfaces.
    - Removed deprecated dependencies.
    - Enhanced retry logic and error handling in embedding processes.

- **Documentation**
    - Updated configuration comments and settings.

- **Chores**
- Updated GitHub Actions workflows to accommodate new secrets and
environment variables.
    - Modified evaluation parameters.
    - Adjusted dependency management for optional libraries.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: holchan <61059652+holchan@users.noreply.github.com>
Co-authored-by: Boris <boris@topoteretes.com>
2025-01-31 18:03:23 +01:00
hajdul88
f843c256e4
feat: Use unwind for batch edge save and add unit tests for get_graph_from_model
* feat: adds some unit tests for get_graph_from_model

* feat: updates neo4j add_edges cypher and deletes shallow get_graph_from_model

* fix: fixing merge conflict false resolve

* chore: deletes old only_root unit test
2025-01-31 13:14:04 +01:00
alekszievr
a79f7133fd
Feat: add number of tokens and descriptive graph metrics to metric table [COG-1132] (#481)
* Count the number of tokens in documents

* save token count to relational db

* Add metrics to metric table

* Store list as json instead of array in relational db table

* Sum in sql instead of python

* Unify naming

* Return data_points in descriptive metric calculation task

---------

Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
2025-01-30 12:39:14 +01:00
alekszievr
edae2771a5
Count the number of tokens in documents [COG-1071] (#476)
* Count the number of tokens in documents

* save token count to relational db

---------

Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
2025-01-29 11:29:09 +01:00
Igor Ilic
d900060e2b
Merge pull request #468 from topoteretes/COG-970-refactor-tokenizing
Cog 970 refactor tokenizing
2025-01-29 09:02:23 +01:00
Igor Ilic
860218632f refactor: add suggestions from PR
Add suggestsions made by CodeRabbit on pull request
2025-01-28 17:15:25 +01:00
Igor Ilic
a8644e0bd7 feat: Use litellm max token size as default for model, if model exists in litellm 2025-01-28 17:00:47 +01:00
Igor Ilic
710ca78d6e
Merge branch 'dev' into COG-970-refactor-tokenizing 2025-01-28 16:31:11 +01:00
alekszievr
98f0f60980
Feat: [cog-1089] Define pydantic models for descriptive graph metrics and input metrics (#466)
* feat: make tasks a configurable argument in the cognify function

* fix: add data points task

* Define pydantic models for descriptive graph metrics and input metrics

* remove to_json method

* Use just one MetricData class instead of two

---------

Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com>
2025-01-28 16:11:31 +01:00
Igor Ilic
6f8cbdbf1c
Merge branch 'dev' into COG-970-refactor-tokenizing 2025-01-28 15:44:57 +01:00
Igor Ilic
3e29c3d8f2 docs: Update notebook to work with changes to max chunk tokens 2025-01-28 15:38:38 +01:00
Igor Ilic
4e56cd64a1 refactor: Add max chunk tokens to code graph pipeline 2025-01-28 15:33:34 +01:00
Igor Ilic
dc0450d30e test: Update document tests regrading max chunk tokens 2025-01-28 15:21:43 +01:00
Igor Ilic
e0b7be7cf0 Merge branch 'COG-970-refactor-tokenizing' of github.com:topoteretes/cognee into COG-970-refactor-tokenizing 2025-01-28 14:48:40 +01:00
Igor Ilic
41544369af test: Change test_by_paragraph tests to accomodate to change 2025-01-28 14:47:17 +01:00
Vasilije
8a50da8ff5
Merge pull request #475 from topoteretes/feat/COG-1060-code-pipeline-endpoints
feat: add codegraph related API endpoints
2025-01-28 14:46:52 +01:00
Igor Ilic
b6e21eadda
Merge branch 'dev' into COG-970-refactor-tokenizing 2025-01-28 14:33:14 +01:00
Igor Ilic
3db7f85c9c feat: Add max_chunk_tokens value to chunkers
Add formula and forwarding of max_chunk_tokens value through Cognee
2025-01-28 14:32:00 +01:00
alekszievr
5e076689ad
Feat: [COG-1074] fix multimetric eval bug (#463)
* feat: make tasks a configurable argument in the cognify function

* fix: add data points task

* Ugly hack for multi-metric eval bug

* some cleanup

---------

Co-authored-by: lxobr <122801072+lxobr@users.noreply.github.com>
2025-01-28 13:05:22 +01:00
Igor Ilic
49f60971bb Merge branch 'dev' into COG-970-refactor-tokenizing 2025-01-28 10:12:55 +01:00
Boris Arzentar
f811ab44e0 Merge remote-tracking branch 'origin/dev' into feat/COG-1060-code-pipeline-endpoints 2025-01-28 10:10:38 +01:00
Igor Ilic
0a9f1349f2 refactor: Change variable and function names based on PR comments
Change variable and function names based on PR comments
2025-01-28 10:10:29 +01:00
Boris Arzentar
3320bc8f2c feat: add codegraph related API endpoints 2025-01-28 10:08:59 +01:00
Igor Ilic
d8bde5461a
Merge pull request #459 from topoteretes/pgvector-add-normalization
feat: Add normalization to PGVector search
2025-01-27 17:15:10 +01:00
Vasilije
f2c1875d5a
Update README.md 2025-01-27 14:49:35 +01:00
Vasilije
34262a17dd
Update README.md 2025-01-27 14:49:02 +01:00
Hande
0fb19ca21d
docs: update readme with "How Cognee Solves Real-World Pain Points" 2025-01-27 11:36:11 +01:00
Boris
8da81c1de3
Merge branch 'dev' into pgvector-add-normalization 2025-01-27 11:31:24 +01:00
Hande
bd4980c2e1
Merge pull request #464 from topoteretes/cog-1069-update-notebooks-evals
Cog 1069 update notebooks evals
2025-01-27 08:49:24 +01:00
vasilije
3e2ac3b331 fix modal 2025-01-26 17:40:15 +01:00
Boris
0c2c5870df
fix: use low_lever server for cognee mcp server (#470)
* fix: revert to older mcp version

* fix: use low_level server for the mcp

* fix: styling errors

* fix: mcp cognify arguments

* fix: ruff errors
2025-01-26 12:52:48 +01:00
alekszievr
f4b45761ce
Merge branch 'dev' into cog-1069-update-notebooks-evals 2025-01-25 17:32:01 +01:00
Vasilije
a2998b70dd
Update README.md 2025-01-25 12:12:05 +01:00
Vasilije
459e93e8ee
Update README.md 2025-01-25 12:11:04 +01:00
Vasilije
05894e7af0
Update README.md 2025-01-25 12:09:53 +01:00
Igor Ilic
39df73b811
Merge branch 'dev' into cog-1069-update-notebooks-evals 2025-01-24 19:31:44 +01:00
Igor Ilic
89d4b7a5c4
Merge branch 'dev' into pgvector-add-normalization 2025-01-24 19:24:39 +01:00
Igor Ilic
23ecf245ed fix: Return string conversion to resolve traceback 2025-01-24 19:20:55 +01:00
Igor Ilic
7d23b32b5f
Merge pull request #467 from topoteretes/fix-insert-data
fix: Add support for SQLite and PostgreSQL for inserting data in SQLA…
2025-01-24 19:05:39 +01:00
Igor Ilic
b0cec3fcaa refactor: Remove conversion to string 2025-01-24 19:03:57 +01:00
Igor Ilic
ffbb387580
Merge branch 'dev' into fix-insert-data 2025-01-24 18:55:41 +01:00
Igor Ilic
77a72851fc Merge branch 'dev' into COG-970-refactor-tokenizing 2025-01-24 18:34:50 +01:00
Vasilije
72e332f010
Merge pull request #471 from topoteretes/add-code-graph-gh-action
test: Add github action to test code graph
2025-01-24 18:29:44 +01:00
Igor Ilic
ae016d4460 chore: Change to run profiler on HEAD instead of base branch 2025-01-24 18:18:27 +01:00
Igor Ilic
cdc992750a test: Add github action to test code graph 2025-01-24 18:12:16 +01:00
Vasilije
8793e4803f
Merge pull request #469 from topoteretes/feature/cog-1084-modal-example-for-cognee
feat: implements modal wrapper + dockerfile for modal containers
2025-01-24 16:54:53 +01:00
hajdul88
048823e7ae feat: changes Readme.md 2025-01-24 15:52:40 +01:00
hajdul88
8e36b8be65 feat: Updates Readme.md with modal deployment guide 2025-01-24 15:45:16 +01:00