cognee/cognee/modules
lxobr ac0156514d
feat: COG-1523 add top_k in run_question_answering (#625)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
- Expose top_k as an optional argument of run_question_answering
- Update retrievers to handle the parameters

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

- **New Features**
- Enhanced answer generation and document retrieval capabilities by
introducing an optional parameter that allows users to specify the
number of top results. This improvement adds flexibility when retrieving
question responses and associated context, adapting the output based on
user preference.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-10 10:55:31 +01:00
..
chunking feat: use external chunker [cog-1354] (#551) 2025-02-21 14:10:59 +01:00
cognify fix: Initial commit to resolve issue with using tokenizer based on LLMs 2025-01-21 19:53:22 +01:00
data feat: entity brute force triplet search [COG-1325] (#589) 2025-03-05 11:17:58 +01:00
engine fix: support structured data conversion to data points (#512) 2025-02-10 17:16:13 +01:00
graph Revert "First AI pass at layered graph builder" 2025-03-05 19:48:53 -08:00
ingestion ruff format 2025-01-05 19:09:08 +01:00
pipelines fix: add default params to run_tasks (#563) 2025-02-19 20:18:51 +01:00
retrieval feat: COG-1523 add top_k in run_question_answering (#625) 2025-03-10 10:55:31 +01:00
search Feature/cog 1312 integrating evaluation framework into dreamify (#562) 2025-03-03 19:55:47 +01:00
settings feat: Add gemini support [COG-1023] (#485) 2025-01-31 18:03:23 +01:00
storage/utils fix: custom model pipeline (#508) 2025-02-08 02:00:15 +01:00
users Creation of default user to have is_superuser=True by default (#539) 2025-02-15 03:09:40 +01:00
visualization Adds types property to pydantic Datapoint inherited classes (#523) 2025-02-11 19:23:19 +01:00
__init__.py chore: rename package 2024-03-13 16:08:11 +01:00