recall
Recall
Recall information from the knowledge graph.
This is a memory-oriented alias for the search endpoint. All search types and options from v1 are supported.
Request Parameters
- search_type (SearchType): Type of search to perform
- datasets (Optional[List[str]]): Dataset names to search within
- dataset_ids (Optional[List[UUID]]): Dataset UUIDs to search within
- query (str): The search query string
- system_prompt (Optional[str]): System prompt for completion searches
- node_name (Optional[List[str]]): Filter to specific node sets
- top_k (Optional[int]): Maximum results (default: 10)
- only_context (bool): Return only the LLM context
- verbose (bool): Verbose output
Error Codes
- 409 Conflict: Error during recall
- 403 Forbidden: Permission denied (returns empty list)
POST
Recall
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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
SUMMARIES, CHUNKS, RAG_COMPLETION, TRIPLET_COMPLETION, GRAPH_COMPLETION, GRAPH_COMPLETION_DECOMPOSITION, GRAPH_SUMMARY_COMPLETION, CYPHER, NATURAL_LANGUAGE, GRAPH_COMPLETION_COT, GRAPH_COMPLETION_CONTEXT_EXTENSION, FEELING_LUCKY, TEMPORAL, CODING_RULES, CHUNKS_LEXICAL, AGENTIC_COMPLETION Example:
[]systemPrompt
string | null
default:Answer the question using the provided context. Be as brief as possible.
Example:
[]Which memory sources to include: 'graph', 'session', 'trace', 'graph_context', 'all', or a list. Defaults to 'auto' (session first when session_id is set, else graph).
Response
Successful Response
- ResponseQAEntry
- ResponseAgentTraceEntry
- ResponseGraphContextEntry
- ResponseGraphEntry
Previous
ImproveEnrich and improve the knowledge graph.
This is a memory-oriented alias for the memify endpoint. It runs
enrichment tasks on an existing knowledge graph.
## Request Parameters
- **extraction_tasks** (Optional[List[str]]): Tasks for graph/data extraction.
- **enrichment_tasks** (Optional[List[str]]): Tasks for graph enrichment.
- **data** (Optional[str]): Custom input data. Uses existing graph when empty.
- **dataset_name** (Optional[str]): Dataset name.
- **dataset_id** (Optional[UUID]): Dataset UUID.
- **node_name** (Optional[List[str]]): Filter to specific named entities.
- **run_in_background** (Optional[bool]): Run asynchronously (default: False).
- **build_global_context_index** (Optional[bool]): Build the global context index after enrichment (default: False).
Either dataset_name or dataset_id must be provided.
## Error Codes
- **400 Bad Request**: Neither dataset_id nor dataset_name provided
- **409 Conflict**: Error during processing
Next
Recall