Commit graph

4555 commits

Author SHA1 Message Date
Aniruddha Mandal
19fcbba7cc chore: update dependencies in pyproject.toml and uv.lock
- Added "mistralai==1.9.10" to the dependencies in pyproject.toml.
- Updated sdist entries in uv.lock to remove unnecessary upload-time fields for various packages.
- Ensured consistency in package specifications across the project files.
2025-10-12 11:44:39 +02:00
Aniruddha Mandal
06dca5bf26 Enhance MistralAdapter error handling and response validation in chat completion method 2025-10-12 11:44:36 +02:00
Aniruddha Mandal
617c1f0d71 Added Mistral support as LLM provider using litellm 2025-10-12 11:44:33 +02:00
vasilije
694ed54d07 regen lock 2025-10-12 11:41:18 +02:00
Vasilije
a4ab65768b
fix: Scraper fix (#1532)
<!-- .github/pull_request_template.md -->

## Description
<!--
Ugly fix for the scraper with try except blocks.
Needs to be refactored
For now tests will pass 
-->

## 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):

## 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 -->
- [x] **I have tested my changes thoroughly before submitting this PR**
- [x] **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

## 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-10-12 11:36:45 +02:00
vasilije
8f619a7b8d added poetry lock 2025-10-12 11:27:20 +02:00
vasilije
19431a41d6 tried adding cli fix 2025-10-12 11:25:41 +02:00
vasilije
0d726c0e32 small linting issues 2025-10-12 11:09:43 +02:00
vasilije
4c5de73598 small linting issues 2025-10-12 11:03:19 +02:00
vasilije
988a196479 added fixes 2025-10-12 10:54:14 +02:00
vasilije
e445dd7f8b ugly fix for the scraper 2025-10-12 10:44:08 +02:00
Vasilije
339e164635
chore: add Docker image pull for MCP in start_ui function (#1521)
<!-- .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.
-->

The MCP service which starts alongside the frontend and backend when
`cognee-cli -ui` is executed runs inside a Docker container. This setup
provides a clean and isolated environment - both for local development
and for runs initiated through the cognee CLI when installed via a pip
package.

Previously, Docker would reuse the local image by default, which could
become outdated over time.

This PR adds logic to check for a newer version of the MCP Docker image
before MCP service is executed

## 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):

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

## 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-10-12 10:31:06 +02:00
Vasilije
fb8e6ae47c
Fix exception handling across cognee - lost exception stacktraces and exception metadata (#1518)
<!-- .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.
-->

In several places, our exception handling discards valuable debugging
context - either by losing the original stack trace or omitting metadata
from the underlying error. This makes diagnosing root causes
significantly harder.

This PR updates exception throwing to use [`raise ...
from`](https://docs.python.org/3/reference/simple_stmts.html#raise),
which:
1. The original stack trace is always preserved, even when wrapping
exceptions
2. Custom exceptions explicitly reference their underlying cause, making
error chains clearer



## 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):

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

## 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-10-12 10:29:26 +02:00
Vasilije
666204d0db
Rerun notebooks with latest cognee - 0.3.5 (#1517)
<!-- .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.
-->

Re-run notebooks:
1. validate notebooks work with latest 0.3.5 version
2. Override outputs that contained "Acknowledged" (old gpt-5 bug)

## 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):

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

## 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-10-12 10:24:41 +02:00
Vasilije
8576f18a9f
Change default pdf loader (#1525)
<!-- .github/pull_request_template.md -->

## Description
Change default loader from Advanced to light weight PyPDF loader

## 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
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

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

## 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-10-11 22:02:15 +02:00
Daulet Amirkhanov
e7e18302f1
Merge branch 'dev' into chore/pull-main-mcp-docker-image-before-running 2025-10-11 20:20:56 +01:00
Vasilije
04a0998e5d
feat: web scraping connector task (#1501)
<!-- .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 -->
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update

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

## 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-10-11 11:25:52 +02:00
Geoffrey Robinson
5e69438ec7
Merge branch 'dev' into feature/web_scraping_connector_task 2025-10-11 14:40:18 +05:30
Vasilije
8d9fbc0c0e
Test for update function (#1487)
<!-- .github/pull_request_template.md -->

## Description
Add updating of documents to test that runs across different OS

## 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):

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

## 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-10-11 10:38:37 +02:00
Vasilije
fa7aa38b8f
COG-3050 - remove insights search (#1506)
<!-- .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.
-->

As per COG-3050:
1. Remove insights search type and clean up any orphaned code
2. Replace callsites with default search type - `GRAPH_COMPLETION` -
where applicable

## 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
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

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

## 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-10-11 09:09:56 +02:00
Vasilije
d20c72cdc6
test: refactor tests on main repo to use quantum computerstxt (#1492)
<!-- .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.
-->
Tests that used a long string as text now use a file. Tiny code quality
PR.

## 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
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## 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 -->
- [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
- [ ] 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

## 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-10-11 08:54:15 +02:00
Vasilije
9f53bb776e
refactor: Keep code DRY in health endpoint (#1526)
<!-- .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.
-->
Small refactor of the health endpoint to keep code cleaner.

## 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
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## 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 -->
- [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
- [ ] 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

## 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-10-11 07:50:38 +02:00
Vasilije
d8b0bae1d0
Merge branch 'dev' into chore/pull-main-mcp-docker-image-before-running 2025-10-11 07:49:08 +02:00
Geoffrey Robinson
f3161281d4
Merge branch 'dev' into feature/web_scraping_connector_task 2025-10-10 22:48:34 +05:30
Igor Ilic
13d1133680 chore: Change comments 2025-10-10 17:14:10 +02:00
Igor Ilic
757d745b5d refactor: Optimize cognification speed 2025-10-10 17:12:09 +02:00
Daulet Amirkhanov
d480ea23a1 docs: clarify API_TOKEN requirement in README and improve JSON handling in CogneeClient 2025-10-10 16:03:16 +01:00
Daulet Amirkhanov
c7ca4c6782 chore: update Docker image comment and improve import handling for CogneeClient 2025-10-10 16:02:58 +01:00
hajdul88
c0e413889d ruff format 2025-10-10 16:00:27 +02:00
hajdul88
9da6f9ad26 Update test_concurrent_subprocess_access.py 2025-10-10 15:56:14 +02:00
hajdul88
ffc7b3b710 Update test_concurrent_subprocess_access.py 2025-10-10 15:43:43 +02:00
hajdul88
b61cdbb30c ruff formatting 2025-10-10 15:40:00 +02:00
Daulet Amirkhanov
446a378b03 chore: update Docker image for MCP server to feature branch for testing 2025-10-10 14:39:08 +01:00
hajdul88
c5955f3904
Merge branch 'dev' into feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration 2025-10-10 15:37:15 +02:00
Igor Ilic
abfcbc69d6 refactor: Have embedding calls run in async gather 2025-10-10 15:36:36 +02:00
hajdul88
98ad492ba7 feat: adds basic subprocess test 2025-10-10 15:36:15 +02:00
Daulet Amirkhanov
fb03f9ce93
Merge branch 'dev' into feat/mcp-add-support-for-non-standalone-mode 2025-10-10 14:22:16 +01:00
Igor Ilic
2f9c3f030b
refactor: user different top_k number to reflect upgrades made to rel… (#1527)
… db migration

<!-- .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):

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

## 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-10-10 15:16:10 +02:00
hajdul88
06a16a4aec feat: adds redis to have it in unit tests 2025-10-10 15:11:04 +02:00
hajdul88
a6a16c3e75 Update test_concurrent_subprocess_access.py 2025-10-10 14:38:57 +02:00
hajdul88
fc6c9587bb ruff 2025-10-10 14:35:54 +02:00
hajdul88
06a97f633a fixes tests 2025-10-10 14:32:58 +02:00
Igor Ilic
c873089c3f
Merge branch 'dev' into update-endpoint 2025-10-10 14:25:44 +02:00
hajdul88
9018367724 Update e2e_tests.yml 2025-10-10 14:05:28 +02:00
hajdul88
8db6751094 feat: adds redis to GA test 2025-10-10 14:04:25 +02:00
hajdul88
bc22527bab Update e2e_tests.yml 2025-10-10 14:00:34 +02:00
hajdul88
ce130a2f54 feat: turns on caching and shared kuzu lock for concurency test 2025-10-10 14:00:09 +02:00
hajdul88
b82e48c227 fix: e2e test fix 2025-10-10 13:48:50 +02:00
hajdul88
b179a77270 feat: adds concurrent test to e2e 2025-10-10 13:46:08 +02:00
hajdul88
fe41de7827 feat: adds subprocess test frame just to test the GA 2025-10-10 13:35:22 +02:00