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.remember()
Description
remember() is the main ingestion entry point in Cognee v1.0.
- Without
session_id, it stores permanent memory by running the ingestion pipeline for you. - With
session_id, it stores session memory in the cache for fast short-term retrieval. - When
self_improvement=True, Cognee also runsimprove()to enrich the graph or bridge session content into permanent memory.
Parameters
Content to store. Supports text, file paths, URLs, file-like objects,
DataItem values, lists of supported inputs, and typed session-memory entries.Target dataset for permanent memory or for session-to-graph bridging.
Enables session-memory mode. When set, content is written to the session cache instead of going straight into the permanent graph.
Maximum chunk size for permanent ingestion. When omitted, Cognee uses its default chunking behavior.
Custom chunking strategy for permanent ingestion.
Overrides the prompt used during graph extraction.
Starts the work asynchronously and returns a
RememberResult you can await later.When enabled, runs
improve() automatically after storage to enrich the graph or bridge session content.Session IDs to sync newly enriched graph knowledge back into during the improvement pass.
Additional keyword options
These power-user options are forwarded to the underlying ingestion and graph-building steps.| Option | Type | What it does |
|---|---|---|
graph_model | Any | Overrides the graph schema/model used during graph building. |
node_set | List[str] | Tags ingested content with one or more node sets. |
dataset_id | UUID | Targets a specific existing dataset by UUID instead of resolving only by name. |
preferred_loaders | list | Chooses preferred loaders for source files. |
importance_weight | float | Stores a retrieval-ranking weight on ingested data records. |
incremental_loading | bool | Reuses existing dataset state and processes only new or changed content when supported. |
data_per_batch | int | Controls ingestion batching. |
chunks_per_batch | int | Controls chunk-processing batching during graph building. |
config | Config | Overrides the full Cognee config for the graph-building step. |
temporal_cognify | bool | Enables temporal-aware graph building during the internal cognify() step. |
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. |
Return value
remember() returns a RememberResult. You can inspect fields like status, dataset_name, session_ids, elapsed_seconds, and raw_result, or await the result when background mode is enabled.