cognee/cognee/tests/unit
Andrej Milićević df102e99a9
feat: add structured output support to retrievers (#1734)
<!-- .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.
-->
Add structured output support to all completion-based retrievers. If the
response model is not supplied, a string is used as default

## 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
- [ ] 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-11-07 10:21:52 +01:00
..
api refactor: Update unit tests for require auth 2025-10-30 16:52:04 +01:00
entity_extraction feat: New tests (#678) 2025-04-10 10:52:48 +02:00
eval_framework Feat: evaluate retrieved context against golden context [cog-1481] (#619) 2025-03-10 15:27:48 +01:00
infrastructure feat: optimize repeated entity extraction (#1682) 2025-10-30 13:56:06 +01:00
interfaces/graph feat: dynamic multiple edges in datapoints (#1212) 2025-08-07 14:50:45 +02:00
modules feat: add structured output support to retrievers (#1734) 2025-11-07 10:21:52 +01:00
processing refactor: move config path test to unit tests 2025-09-02 11:54:15 +02:00