Commit graph

740 commits

Author SHA1 Message Date
EricXiao
742866b4c9 feat: csv ingestion loader & chunk
Signed-off-by: EricXiao <taoiaox@gmail.com>
2025-10-22 16:56:46 +08:00
hajdul88
5a27c37cc2
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-21 10:30:52 +02:00
hajdul88
47f0b577df
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-21 09:12:14 +02:00
Vasilije
00696d7ee4
Merge branch 'dev' into embedding-rate-limiter 2025-10-21 07:25:16 +02:00
vasilije
0402619ed7 add merge 2025-10-21 07:24:12 +02:00
Vasilije
915aa5184e
fix: Resolve issue with plain text files not having magic file info (#1564)
<!-- .github/pull_request_template.md -->

## Description
Some plain text files dont have to have magic binary info on file type,
in case file type guess was not able to dedcude file type consider it
plain text

## 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-20 18:47:38 +02:00
hajdul88
c42f8392e1
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-20 17:28:12 +02:00
hajdul88
df038365c8
fix: fixes id in get_filtered_graph_data (#1569)
<!-- .github/pull_request_template.md -->

## Description
Fixes get_filtered_graph_data method in neo4jAdapter.


## 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**
- [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-20 17:27:49 +02:00
Igor Ilic
09c10286bd
Merge branch 'dev' into fix-plain-txt-file-type 2025-10-20 14:44:46 +02:00
hajdul88
d2d2cfb477
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-20 13:31:33 +02:00
Daulet Amirkhanov
279d6e80f0
Revert "fix: search without prior cognify" 2025-10-20 11:56:15 +01:00
hajdul88
4d3ba3f313
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-20 10:05:57 +02:00
Igor Ilic
f88277c467 fix: Resolve issue with plain text files not having magic file info 2025-10-19 23:10:53 +02:00
Vasilije
1f2fd5a8a6
fix: preferred_loaders is always None in data_item_to_text_file.load_file() (#1554)
<!-- .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.
-->

*LoaderEngine.py*
```python
async def load_file(
        self,
        file_path: str,
        file_stream: Optional[Any],
        preferred_loaders: Optional[List[str]] = None,
        **kwargs,
    ):
        ...
        print(file_path, file_stream, preferred_loaders, kwargs)
        ...
```

shows
`https://cognee.ai ['web_url_loader'] None {}`

i.e. preferred_loaders is always None when `self.get_loader(file_path,
preferred_loaders)`

## 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-18 16:54:26 +02:00
Vasilije
2ac15d4fff
chore: remove memgraph from cognee repo (#1550)
<!-- .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.
-->

Memgraph adapter has been moved to and being maintained in
[`cognee-community`](https://github.com/topoteretes/cognee-community/tree/main)
repo.

This PR removes Memgraph, and updates any mentions of it in this repo.

## 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-18 16:53:47 +02:00
hajdul88
2d1f0e5eaa
Merge branch 'dev' into feature/cog-3160-redis-session-conversation 2025-10-17 21:45:31 +02:00
Daulet Amirkhanov
d85037896a
Merge branch 'dev' into chore/remove-memgraph 2025-10-17 17:36:53 +01:00
Daulet Amirkhanov
c9ccd50bd8
Merge branch 'dev' into fix/loader-engine-load-file-uses-wrong-arguments 2025-10-17 17:33:43 +01:00
Daulet Amirkhanov
50aa8aac11 refactor: remove filestream arg from LoaderEngine.load_file(...) 2025-10-17 17:33:25 +01:00
hajdul88
a3bbeb1c10 chore: generalizes return value in session history 2025-10-17 13:47:02 +02:00
Daulet Amirkhanov
41fd854c7e
Merge branch 'dev' into fix/search-without-prior-cognify 2025-10-17 12:09:47 +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
48c832bf5f feat: set default last n on redisadapter 2025-10-16 17:26:18 +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
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
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
Daulet Amirkhanov
38406a0ab1 chore: remove memgraph from cognee repo 2025-10-15 17:32:48 +01: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
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
Daulet Amirkhanov
ea4a93efb1 Implement count_nodes and count_edges methods for Neo4j 2025-10-15 16:57:53 +01:00
hajdul88
2b23455431 feat: adds base class level methods 2025-10-15 17:46:51 +02:00
Daulet Amirkhanov
f3ec180102 Implement count_edges and count_methods for Kuzu 2025-10-15 16:39:25 +01:00
Daulet Amirkhanov
8692cd1338 feat: add count_nodes and count_edges methods to GraphDBInterface 2025-10-15 16:03:17 +01:00
Igor Ilic
fc4440da8c refactor: update env template 2025-10-15 14:43:21 +02:00
Igor Ilic
1b28f13743 refactor: Optimize Cognee speed 2025-10-15 13:32:17 +02:00
hajdul88
c4545cdaa3 chore: default values for session list expiration 2025-10-15 13:26:06 +02:00
Igor Ilic
417015d9a9 Merge branch 'dev' into embedding-rate-limiter 2025-10-14 20:39:10 +02:00
Igor Ilic
98daadbb04 refactor: Add tenacity retry mechanism 2025-10-14 20:29:55 +02:00
hajdul88
15d7f69af3 feat: adds adapter level basic operations for session management 2025-10-14 15:04:55 +02:00
Igor Ilic
eb631a23ad refactor: set default numbers that are more reasonable 2025-10-14 13:57:41 +02:00
hajdul88
5399b54b54 feat: adds authentication to redisadapter 2025-10-14 13:54:23 +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
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