cognee/cognee/modules
hajdul88 4e8845c117
chore: retriever test reorganization + adding new tests (integration) (STEP 1) (#1881)
<!-- .github/pull_request_template.md -->

## Description
This PR restructures/adds integration and unit tests for the retrieval
module.

-Old integration tests were updated and moved under unit tests +
fixtures added
-Added missing unit tests for all core retrieval business logic
-Covered 100% of the core retrievers with tests
-Minor changes (dead code deletion, typo fixed)

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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Changes**
* TripletRetriever now returns up to 5 results by default (was 1),
providing richer context.

* **Tests**
* Reorganized test coverage: many unit tests removed and replaced with
comprehensive integration tests across retrieval components (graph,
chunks, RAG, summaries, temporal, triplets, structured output).

* **Chores**
  * Simplified triplet formatting logic and removed debug output.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-12-16 11:11:29 +01:00
..
chunking Merge branch 'dev' into feat/csv-ingestion 2025-11-14 14:46:11 +08:00
cloud feat: add welcome tutorial notebook for new users (#1425) 2025-09-18 18:07:05 +02:00
cognify feat: Adds edge centered payload and embedding structure during ingestion (#1853) 2025-12-10 17:10:06 +01:00
data feat: Add database deletion on dataset delete (#1893) 2025-12-15 18:15:48 +01:00
engine feature: adds triplet embedding via memify (#1832) 2025-12-02 18:27:08 +01:00
graph feat: remove secondary search 2025-12-08 17:29:25 +01:00
ingestion feat: Add dataset_id calculation that handles legacy dataset_id 2025-11-04 13:11:57 +01:00
memify feat: make pipeline processing cache optional (#1876) 2025-12-12 13:11:31 +01:00
metrics/operations
notebooks fix: add cognee to the local run environment 2025-11-06 13:03:11 +01:00
observability add none to default as observability 2025-09-18 10:41:25 +02:00
ontology feat: enhance ontology handling to support multiple uploads and retrievals 2025-11-14 22:13:00 +05:00
pipelines feat: make pipeline processing cache optional (#1876) 2025-12-12 13:11:31 +01:00
retrieval chore: retriever test reorganization + adding new tests (integration) (STEP 1) (#1881) 2025-12-16 11:11:29 +01:00
run_custom_pipeline feat: make pipeline processing cache optional (#1876) 2025-12-12 13:11:31 +01:00
search refactor: move codify pipeline out of main repo (#1738) 2025-12-04 23:10:39 -08:00
settings fix: fix model names and test names 2025-11-26 13:35:56 +01:00
storage/utils feat: Weighted edges (#1068) 2025-07-14 21:26:25 +02:00
sync feat: update sync to be two way (#1359) 2025-09-11 15:34:43 +02:00
users feat: Add dataset database handler info (#1887) 2025-12-12 13:22:03 +01:00
visualization add fix 2025-10-29 10:28:10 +01:00
__init__.py