Commit graph

1895 commits

Author SHA1 Message Date
hajdul88
fe1b02d937 feat: adds error handling and logging to redis cache 2025-10-16 16:12:50 +02:00
hajdul88
96f2a2f22b ruff format 2025-10-16 15:54:48 +02:00
hajdul88
abe4dfa69a feat: adds session save to retrievers where actual completion is used 2025-10-16 15:07:15 +02:00
hajdul88
36fd44dab2
Merge branch 'feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration' into feature/cog-3160-redis-session-conversation 2025-10-16 12:05:05 +02:00
hajdul88
2bf1619e8f chore: renaming acquire and release methods 2025-10-16 11:47:32 +02:00
hajdul88
0e4c4907e9 feat: centralizes session caching in util function 2025-10-16 10:46:19 +02:00
hajdul88
8454389a7d
Merge branch 'feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration' into feature/cog-3160-redis-session-conversation 2025-10-16 09:43:37 +02:00
hajdul88
d98838342a
Merge branch 'dev' into feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration 2025-10-16 09:43:16 +02:00
Igor Ilic
c9a3f48398 fix: Resolve issue with data element incremental loading for multiple datasets 2025-10-15 18:26:01 +02:00
hajdul88
66280442ac ruff formatting 2025-10-15 18:02:10 +02:00
hajdul88
b36772e8bf feat: adds session_id to all retrievers + updates docstrings 2025-10-15 18:01:13 +02:00
hajdul88
0aa64403c5 feat: basic session behavior (only graph completion now just to save) 2025-10-15 17:51:47 +02:00
hajdul88
df6de7b246 chore: removes SimpleNameSpace (Igor) 2025-10-15 17:47:21 +02:00
hajdul88
2b23455431 feat: adds base class level methods 2025-10-15 17:46:51 +02:00
hajdul88
e7fe66470a feat: adds context variable for the user object 2025-10-15 17:46:28 +02:00
hajdul88
c4545cdaa3 chore: default values for session list expiration 2025-10-15 13:26:06 +02:00
hajdul88
678d7d22d7
Merge branch 'feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration' into feature/cog-3160-redis-session-conversation 2025-10-14 16:44:51 +02:00
hajdul88
41db62dd41
Merge branch 'dev' into feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration 2025-10-14 16:44:34 +02:00
hajdul88
15d7f69af3 feat: adds adapter level basic operations for session management 2025-10-14 15:04:55 +02:00
hajdul88
5399b54b54 feat: adds authentication to redisadapter 2025-10-14 13:54:23 +02:00
Daulet Amirkhanov
04147c3eec Change error logging to warning for missing playwright and protego imports in bs4_crawler.py 2025-10-14 12:47:41 +01:00
hajdul88
3faeee7631 Update test_cache_config.py 2025-10-13 17:46:02 +02:00
hajdul88
0e44a77104 Update test_cache_config.py 2025-10-13 17:45:39 +02:00
hajdul88
d2321a68e8 feat: Finalizing tests 2025-10-13 17:45:00 +02:00
hajdul88
636843fcf1 ruff fix 2025-10-13 17:04:27 +02:00
hajdul88
cf87b833a0 ruff fix 2025-10-13 17:00:49 +02:00
hajdul88
33b97215ce feat: adds end to end concurrent subprocess cognify test 2025-10-13 16:54:36 +02:00
hajdul88
40acb6e4e3 ruff fix 2025-10-13 14:58:46 +02:00
hajdul88
a5c1a2630d Update test_cache_engine.py 2025-10-13 14:56:58 +02:00
hajdul88
9bb47e4231 Merge branch 'dev' into feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration 2025-10-13 09:56:42 +02:00
Vasilije
4ac49dd27f
Merge branch 'dev' into feat/mcp-add-support-for-non-standalone-mode 2025-10-12 13:57:55 +02:00
vasilije
1e90d90a72 Merge branch 'dev' into feature/cog-2871-add-docling-as-data-ingestion-option-to-cognee-add
# Conflicts:
#	.github/workflows/examples_tests.yml
#	poetry.lock
#	uv.lock
2025-10-12 13:06:13 +02:00
vasilije
5527b6e0b3 format done 2025-10-12 11:47:40 +02:00
vasilije
ca88200b7c Merge remote-tracking branch 'origin/pr-1449' into pr-1449
# Conflicts:
#	poetry.lock
#	uv.lock
2025-10-12 11:46:43 +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
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
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
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
d8b0bae1d0
Merge branch 'dev' into chore/pull-main-mcp-docker-image-before-running 2025-10-11 07:49:08 +02:00