Commit graph

4175 commits

Author SHA1 Message Date
Daulet Amirkhanov
c313fcd029 log warning on attempts to search on an empty knowledge graph 2025-10-17 12:06:35 +01:00
Daulet Amirkhanov
3ee50c192f refactor emptiness check to be boolean, and optimize query 2025-10-17 12:01:06 +01:00
Igor Ilic
2998802c00 fix: Resolve issue with wrong error for OpenAI 2025-10-17 11:58:14 +02:00
hajdul88
ebb5b94265 chore: unit test fix for cache mocking 2025-10-17 11:06:34 +02:00
hajdul88
30a31889d0 ruff format 2025-10-17 10:30:35 +02:00
hajdul88
339de5a0b8 test fix 2025-10-17 10:25:26 +02:00
hajdul88
47cce90112 test fix 2025-10-17 10:18:39 +02:00
hajdul88
16b073bf8c ruff fix 2025-10-17 10:06:24 +02:00
hajdul88
4a03572f7c feat: adds unit test to conversation history save 2025-10-17 10:06:08 +02:00
hajdul88
2595a419b3 ruff format 2025-10-16 18:25:13 +02:00
hajdul88
cdbdbfd755 feat: adds conversation history to most of the retrievers 2025-10-16 18:24:57 +02:00
hajdul88
9e9489c858 feat: adds conversation history to context if caching is enabled 2025-10-16 17:48:50 +02:00
hajdul88
48c832bf5f feat: set default last n on redisadapter 2025-10-16 17:26:18 +02:00
Daulet Amirkhanov
6a693d319a fix: preferred_loaders is always None in data_item_to_text_file.load_file() 2025-10-16 15:45:21 +01:00
hajdul88
dc519f5d26 fix: fixes cache default cache config content unit test 2025-10-16 16:28:52 +02:00
hajdul88
91a22e8bc4 feat: adds session id to get_completion methods 2025-10-16 16:26:58 +02:00
hajdul88
7149f8c45b ruff format 2025-10-16 16:13:55 +02:00
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
e12e516f64
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-16 15:52:46 +02:00
hajdul88
9821a01a47
feat: Redis lock integration and Kuzu agentic access fix (#1504)
<!-- .github/pull_request_template.md -->

## Description
This PR introduces a shared locked mechanism in KuzuAdapter to avoid use
case when multiple subprocesses from different environments are trying
to use the same Kuzu adatabase.

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

## Screenshots/Videos (if applicable)
None

## 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.
2025-10-16 15:48:20 +02:00
hajdul88
a18cc17b5f
Merge branch 'feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration' into feature/cog-3160-redis-session-conversation 2025-10-16 15:08:29 +02:00
hajdul88
abe4dfa69a feat: adds session save to retrievers where actual completion is used 2025-10-16 15:07:15 +02:00
Igor Ilic
a03a20e053
Merge branch 'dev' into batch-document-handling 2025-10-16 14:30:11 +02:00
hajdul88
99c932ebca
Merge branch 'dev' into feature/cog-3142-agentic-use-case-kuzu-lock-fix-redis-integration 2025-10-16 12:31:36 +02:00
Vasilije
f0c332928d
test: fix windows deletion and library test (#1522)
<!-- .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.
-->
Soft deletion and library tests SOMETIMES fail on Windows. Deletion had
a buffer issue, a low level error, and the library test had an issue
where it cannot delete a file that is already used by another process
(this cannot be done on Windows).

## 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 -->
- [ ] **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-16 12:15:57 +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
Andrej Milicevic
6e3370399b Merge branch 'dev' into feature/cog-2985-add-ci-tests-that-run-more-examples 2025-10-16 11:02:48 +02:00
Andrej Milicevic
88cc7af4d7 test: Add a few more examples to the workflow. 2025-10-16 10:50:50 +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
2e1bfe78b1 refactor: rename variable to be more understandable 2025-10-15 20:26:59 +02:00
Igor Ilic
a210bd5905 refactor: rename chunk_batch_size to chunks_per_batch 2025-10-15 20:24:36 +02:00
Igor Ilic
3a9022a26c refactor: Rename batch size for tasks to chunk batch size 2025-10-15 20:22:29 +02:00
Igor Ilic
2fb06e0729 refactor: forwarding of data batch size rework 2025-10-15 20:18:48 +02:00
Igor Ilic
ad4a732e28
Merge branch 'dev' into batch-document-handling 2025-10-15 20:05:04 +02:00
Igor Ilic
99dc35f23e fix: resolve issue with neo4j metrics test 2025-10-15 20:01:09 +02:00
Igor Ilic
8720dd0922
fix: Resolve issue with data element incremental loading for multiple… (#1549)
… datasets

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

## Description
Resolve issue with Data element incremental loading when in multiple
datasets

## 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 -->
- [ ] **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-15 19:45:00 +02:00
Daulet Amirkhanov
2a6256634e chore: revert temporary change to dynamic_steps_example.py 2025-10-15 17:35:46 +01:00
Daulet Amirkhanov
38406a0ab1 chore: remove memgraph from cognee repo 2025-10-15 17:32:48 +01:00
Igor Ilic
c9a3f48398 fix: Resolve issue with data element incremental loading for multiple datasets 2025-10-15 18:26:01 +02:00
Daulet Amirkhanov
a854e4f426 chore: update GraphDBInterface to not throw NotImplementedError for count_nodes() 2025-10-15 17:22:51 +01:00
Daulet Amirkhanov
9e38a30c49 refactor: keep only count_nodes 2025-10-15 17:20:45 +01:00
Andrej Milicevic
e0663baba4 test: Add test to e2e workflow 2025-10-15 18:17:06 +02:00
Daulet Amirkhanov
dede5fa6fd add unit tests for empty graph check on search 2025-10-15 17:09:13 +01:00
Igor Ilic
96496f38ed refactor: Switch to using tenacity for rate limiting 2025-10-15 18:08:18 +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