/schema, under the EXPLORE section of the sidebar) defines how Cognee extracts knowledge from a brain and rebuilds its memory. It shows a schema-view visualization alongside a config toolbar where you set the graph model, prompt, and ontology used during processing.
The graph-model, prompt, and ontology configuration — together with the Re-process action — were moved here from the Mindmap page, which is now focused on visualization only.
Selecting a brain
A BrainSelector at the top chooses the active dataset (brain). The H1 reads Memory Schema and the subtitle shows Define extraction rules and re-process to rebuild the memory for . The page renders a schema-view visualization embedded from/v1/visualize for the selected brain. Use the Refresh button to reload the visualization.
If the selected brain has no schema yet, you see an empty state — No memory schema yet — with a Go to Brains button that takes you to the Brains page.
Config toolbar
The config toolbar has three dropdowns — Model, Prompt, and Ontology — each defaulting to Automatic. Configuration is per brain (dataset) and is also editable from the brain detail page.Graph model
The Model dropdown selects the graph model that defines which entity types and relationships Cognee extracts:- Automatic (default) — Cognee infers the schema from your data.
- A saved model — a model you previously created and named.
Graph Model editor
The editor is a visual canvas of entity types as draggable nodes. The right sidebar edits the selected type’s Name, Description, and Fields. Field and relation types are:| Type | Description |
|---|---|
string | Text value. |
number | Numeric value. |
boolean | True/false value. |
date | Date value. |
relation | A link to another entity; needs a target entity and a cardinality of one or many. |
Custom prompt
The Prompt dropdown selects the extraction prompt:- Automatic (default) — Cognee uses its built-in extraction prompt.
- A named prompt — a prompt you created.
- Generate from graph model — seeds the prompt from a selected graph model (requires a selected model).
- Start blank — begins with an empty prompt.
Ontology
The Ontology dropdown selects an optional OWL ontology to guide extraction:- Automatic — no custom ontology.
- An uploaded ontology — an OWL file you provided.
.owl file.
Re-process
Click Re-process to rebuild the brain’s memory. This re-runs cognify with the chosen model, prompt, and ontology, and shows a Re-processing started notification. Re-process to clear the Outdated state after a config change.Related
Configuration & Ontologies
API equivalents for graph models, prompts, and ontologies.
Brains
Edit per-brain config from the brain detail page.
Mindmap
Visualize the memory the schema produces.