Documentation Index
Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
Use this file to discover all available pages before exploring further.
cognee.improve()
Description
improve() enriches an existing graph after ingestion.
- Without
session_ids, it runs the normal enrichment pass over the dataset. - With
session_ids, it can also apply feedback weights, persist session Q&A into the graph, and sync enriched graph context back into sessions.
Parameters
Dataset name or UUID to improve.
Starts the improvement pipeline asynchronously.
Restricts improvement to specific named entities or node sets.
Session IDs whose feedback and Q&A content should be bridged into the permanent graph.
Additional keyword options
| Option | Type | What it does |
|---|---|---|
extraction_tasks | list | Overrides the extraction task set used during enrichment. |
enrichment_tasks | list | Overrides the enrichment task set used during enrichment. |
data | Any | Supplies explicit data to advanced improvement pipelines when supported. |
node_type | Type | Changes which node type the enrichment pass targets. |
user | object | Runs the operation under a specific user context. |
vector_db_config | dict | Overrides vector database configuration for this call. |
graph_db_config | dict | Overrides graph database configuration for this call. |
feedback_alpha | float | Controls how strongly session feedback changes graph weights. |
Return value
improve() returns the pipeline result from the enrichment pass, the same underlying shape used by legacy memify().