Commit graph

569 commits

Author SHA1 Message Date
Daulet Amirkhanov
f58ba86e7c
feat: add welcome tutorial notebook for new users (#1425)
<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

Update default tutorial:
1. Use tutorial from [notebook_tutorial
branch](https://github.com/topoteretes/cognee/blob/notebook_tutorial/notebooks/tutorial.ipynb),
specifically - it's .zip version with all necessary data files
2. Use Jupyter Notebook `Notebook` abstractions to read, and map `ipynb`
into our Notebook model
3. Dynamically update starter notebook code blocks that reference
starter data files, and swap them with local paths to downloaded copies
4. Test coverage



| Before | After (storage backend = local) | After (s3) |
|--------|---------------------------------|------------|
| <img width="613" height="546" alt="Screenshot 2025-09-17 at 01 00 58"
src="https://github.com/user-attachments/assets/20b59021-96c1-4a83-977f-e064324bd758"
/> | <img width="1480" height="262" alt="Screenshot 2025-09-18 at 13 01
57"
src="https://github.com/user-attachments/assets/bd56ea78-7c6a-42e3-ae3f-4157da231b2d"
/> | <img width="1485" height="307" alt="Screenshot 2025-09-18 at 12 56
08"
src="https://github.com/user-attachments/assets/248ae720-4c78-445a-ba8b-8a2991ed3f80"
/> |



## File Replacements

### S3 Demo  

https://github.com/user-attachments/assets/bd46eec9-ef77-4f69-9ef0-e7d1612ff9b3

---

### Local FS Demo  

https://github.com/user-attachments/assets/8251cea0-81b3-4cac-a968-9576c358f334


## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.
2025-09-18 18:07:05 +02:00
Igor Ilic
c01e78240a
fix: Resolve issue with file path name [COG-2937] (#1411)
<!-- .github/pull_request_template.md -->

## Description
Resolves issue with file path handling of some uploaded files in Cognee

## Type of Change
<!-- Please check the relevant option -->
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Testing
Uploaded file that had issue and was successfully resolved

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ x] **I have tested my changes thoroughly before submitting this PR**
- [ x] **This PR contains minimal changes necessary to address the
issue/feature**
- [ x] My code follows the project's coding standards and style
guidelines
- [ x] I have added tests that prove my fix is effective or that my
feature works
- [ x] I have added necessary documentation (if applicable)
- [ x] All new and existing tests pass
- [ x] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ x] I have linked any relevant issues in the description
- [ x] My commits have clear and descriptive messages


## 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.

Co-authored-by: Boris <boris@topoteretes.com>
2025-09-17 12:00:06 +02:00
Igor Ilic
88770b1b11
refactor: Use awaitable attrs for getting roles (#1405)
<!-- .github/pull_request_template.md -->

## Description
Resolve issue with getting role objects for user

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.

Co-authored-by: Boris <boris@topoteretes.com>
2025-09-17 11:16:20 +02:00
Boris
2ed92d21fc
Merge branch 'main' into dev 2025-09-16 22:44:18 +02:00
Boris
23eaac524f
Merge main into dev (#1421)
<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.

---------

Co-authored-by: Gao,Wei <kaovip@gmail.com>
Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
Co-authored-by: Andrej Milicevic <milicevicandrej@yahoo.com>
2025-09-16 22:34:46 +02:00
Vasilije
3a073ca462
Update OllamaEmbeddingEngine.py (#1330)
Compatible private embeddeding model (openai format)

<!-- .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.
2025-09-15 14:43:34 -07:00
Vasilije
acb8f0e588
fix: Update chromadb version (#1403)
<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->
ChromaDB versions earlier than 0.4.13 don't work with pydantic v2. I
made some changes to the adapter to make it work for versions >= 0.6,
and I changed the chromadb version in the `pyproject.toml` file.

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.
2025-09-15 14:42:44 -07:00
Andrej Milicevic
c98bf1d985 fix: Fixed formatting 2025-09-15 16:08:42 +02:00
Andrej Milicevic
bd98bb9cc6 fix: Upgrade anthropic version 2025-09-15 15:21:01 +02:00
Andrej Milicevic
2cb3fd5238 fix: Update chromadb version 2025-09-15 11:00:01 +02:00
Igor Ilic
288218b209
Merge dev into main (#1398)
<!-- .github/pull_request_template.md -->

## Description
Vector URL fix, MCP Fix

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.

---------

Co-authored-by: Boris <boris@topoteretes.com>
Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
2025-09-12 20:20:21 +02:00
Boris
351deb0314
fix: UI (#1397)
<!-- .github/pull_request_template.md -->

## Description
<!-- 
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.
2025-09-12 20:06:44 +02:00
Igor Ilic
e958ee8e3f
refactor: Make bigger connection pool for postgreSQL (#1399)
<!-- .github/pull_request_template.md -->

## Description
Increase default postgres connection pool 

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Changes Made
<!-- List the specific changes made in this PR -->
- 
- 
- 

## Testing
<!-- Describe how you tested your changes -->

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## Related Issues
<!-- Link any related issues using "Fixes #issue_number" or "Relates to
#issue_number" -->

## Additional Notes
<!-- Add any additional notes, concerns, or context for reviewers -->

## 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.
2025-09-12 19:13:36 +02:00
Igor Ilic
0482a731c8 fix: Resolve issue with vector url usage 2025-09-12 12:39:06 +02:00
Boris
74a3220e9f
fix: graph view with search (#1368)
<!-- .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.
2025-09-11 16:16:03 +02:00
Vasilije
a29ef8b2d3
feat: Add small pool for PostgreSQL connections to allow multiple doc… (#1358)
…ker instances communicating with PostgreSQL

<!-- .github/pull_request_template.md -->

## Description
Add pool_pre_ping check to make sure connection exists before using it.

Reduce connection pool of postgres connections to minimum to stop
multiple Cognee docker instances eating up available connections.

## 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.
2025-09-11 05:48:04 -07:00
Vasilije
3b923fcb6b
fix: ChromaDBAdapter AttributeError (#1336)
## Description
Pretty self-explanatory! list_collections() is an attribute of the
AsyncHttpClient, not of the ChromaDBAdapter, so line 541 should say
client.list_collections() (as indeed line 556 correctly already does).
This will fix the AttributeError I was getting.

This is my first ever PR so let me know if there is anything else I need
to do :)

## 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.
2025-09-11 05:44:48 -07:00
Igor Ilic
7395db078a refactor: Enable more connections to postgreSQL 2025-09-09 19:30:19 +02:00
Igor Ilic
cbadf6590b refactor: remove rds comment 2025-09-09 19:06:11 +02:00
Igor Ilic
b1e47d9e0d feat: Add small pool for PostgreSQL connections to allow multiple docker instances communicating with PostgreSQL 2025-09-09 18:15:33 +02:00
Igor Ilic
47b62d50e4 refactor: Use gpt-4o-mini by default 2025-09-08 21:27:38 +02:00
Igor Ilic
73c9777128 refactor: Set Cognee to use gpt4o-mini by default 2025-09-08 21:22:50 +02:00
Jenny Kaufmann
8c6e5fab76
Update ChromaDBAdapter.py
self.list_collections() -> client.list_collections()
2025-09-05 14:41:49 -04:00
Boris
aaa1776293
feat: implement new local UI (#1279)
<!-- .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.

---------

Co-authored-by: Daulet Amirkhanov <damirkhanov01@gmail.com>
2025-09-05 15:39:04 +02:00
Gao,Wei
ac8f30f45c
Update OllamaEmbeddingEngine.py
Compatible private embeddeding model (openai format)
2025-09-04 15:27:36 +08:00
Vasilije
8d4ddf8cf1
Merge branch 'dev' into fix/embedding-exception-imports 2025-09-02 22:52:25 +02:00
Igor Ilic
3069870a12 chore: Remove docstring regarding relative path 2025-09-02 11:27:59 +02:00
Igor Ilic
4bb178cbc6 Merge branch 'dev' into fix-path-handling-consistency-gneeraj2001 2025-09-02 11:24:48 +02:00
Igor Ilic
f36357acd8 feat: path handling has to be absolute by gneeraj2001 2025-09-02 11:22:50 +02:00
gneeraj2001
cb6651a6e9 Fix path handling consistency
Signed-off-by: gneeraj2001 <gneeraj2001@gmail.com>
2025-09-02 11:22:50 +02:00
Vasilije
e52f9c6a20
feature: adds time graph option to cognify (#1307)
<!-- .github/pull_request_template.md -->

## Description
feature: adds time graph option to cognify

## 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.
2025-09-02 09:17:29 +02:00
Igor Ilic
0b6a9170b5
Merge branch 'dev' into gpt-5-reasoning-low 2025-09-01 17:18:55 +02:00
vasilije
940d4797bc added fix to embeddings format 2025-09-01 17:17:48 +02:00
lxobr
76143a7d48 fix: update embedding exception imports 2025-09-01 14:43:05 +02:00
vasilije
377c0d3973 added fix to embedding engine 2025-08-30 10:38:46 +02:00
Igor Ilic
bf1d4b9157 refactor: Change reasoning from low to minimal 2025-08-29 18:15:35 +02:00
Igor Ilic
fc06256b7e feat: Add low reasoning for gpt5 model 2025-08-29 17:59:29 +02:00
hajdul88
1970106f1e chore: adds docstrings 2025-08-29 16:07:18 +02:00
hajdul88
15155520dd feat: adds temporal retriever 2025-08-28 17:03:47 +02:00
hajdul88
e4a5869a43 fix: fix graph promp path in event graph task 2025-08-28 10:55:26 +02:00
hajdul88
678173dad4
Merge branch 'dev' into feature/cog-2746-time-graph-to-cognify 2025-08-27 18:07:20 +02:00
hajdul88
58a3be7c12 ruff format 2025-08-27 18:04:58 +02:00
hajdul88
7468ef6e53 feat: adds event entity extraction 2025-08-27 18:03:38 +02:00
hajdul88
9bb36f37c0 feat: adds event graph extraction to LLMGateway for litellm 2025-08-27 15:17:32 +02:00
Vasilije
62afced9a5
feat: Added custom prompt to cognify (#1278)
<!-- .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.
2025-08-27 14:10:21 +02:00
Igor Ilic
9c31617c2f fix: Resovle windows file path issue 2025-08-26 21:41:56 +02:00
Igor Ilic
8c69653912 fix: Resolve issue with Windows path 2025-08-26 20:22:20 +02:00
Igor Ilic
d4b23aa565 feat: Add process_pipeline_check 2025-08-25 17:16:08 +02:00
vasilije
d69669b527 added ability to send custom prompts to cognify 2025-08-22 12:37:51 +02:00
hajdul88
67d88c4e85
Merge branch 'dev' into feature/cog-2734-cognee-feedbacks-interactions-poc-to-prod 2025-08-19 17:04:09 +02:00