01 |ANATOMY
The six parts of an agentic system. One decides what the model knows.
Agent Memory is the bottom four: the context layer, memory, the knowledge graph and storage.
02 |MEMORY MODEL
Six kinds of memory. One raw record, five typed categories.
Episodic
Identity
Knowledge
Context
Instructions
Uncertainty
03 |DOCUMENT PIPELINE
Documents become structure. Every format, one graph.
Multi-modal ingest
An ingestion profile per Context, from text only to full multimodal, trades completeness against cost. Lift it later without re-architecting.
Originals in object storage
PDFs and media live in S3-compatible storage; the database holds the indexable state. Backups, deletion and cost scale on object-store economics.
Content-addressed
A Blake3 hash is the identity, and a cache of extracted text lets you rechunk and re-embed without re-running the parsers.
Content-aware chunking
Passages are first-class rows with their own embeddings, byte spans into the original and edges to the entities in them. Audio and video chunk by time code.
One reconciler
Facts from documents pass through the same supersession-and-uncertainty function as facts from turns. A document can contradict a turn, and the contradiction is recorded.
Keyword graph
A RAKE pass, with no model call, produces keyword nodes with PMI-scored edges to chunks and entities: cheap structural recall for the rare terms vector search underweights.
04 |HYBRID RETRIEVAL
Eight signals, one ranking. Every result explains its score.
Vector recall
Dense embeddings on entities, attributes and chunks, plus native vectors for images and audio when enabled.
Lexical (BM25)
BM25 over chunk text and entity surface forms catches the exact phrases and rare terms embeddings underweight.
Graph traversal
One or two hops from a seed entity surface related facts even when their wording diverges.
Keyword bridges
RAKE keyword nodes connect chunks and entities that share rare terms but sit far apart in embedding space.
Document links
Section embeddings and chunk-to-chunk and document-to-document edges surface related sections of related documents.
Personalised PageRank
A graph walk biased towards the query's seed nodes, scored as one feature in the fused ranker.
Geographic recall
Within-radius, inside-polygon and nearest-k predicates compose with the other signals. 'Acme within 50km of Berlin in Q3' is one query.
Trace-derived features
Retrieval reads its own history: rows useful for similar queries are boosted, rows tied to corrections demoted.
05 |TIERED QUERIES
Four tiers, one trace. Cheap reads stay cheap.
Tier 1. Direct lookup
Typed questions, such as 'what is my role at Acme?', fetched by key from the entity graph. No embeddings, no model call. Sub-millisecond.
Tier 2. Response reuse
A semantic match against prior answers, keyed on the facts they cited. Supersede one fact and every dependent answer is invalidated. Tens of milliseconds.
Tier 3. Hybrid retrieval
All eight signals fused into one ranking, then synthesised by the model. Hundreds of milliseconds, with per-signal scores on the trace.
Tier 4. Full-context fallback
When retrieval runs thin: more candidates, deeper traversal, an optional query rewrite, a longer window. The expensive path, taken explicitly.
06 |AUDIT & TIME
Every fact has a source and a time. The audit trail is the data.
Provenance as data
Three independent clocks
Traces are memory
Supersede rather than delete
07 |AUTONOMOUS UNDERSTANDING
Memory that improves between conversations. Reflection, elaboration, consolidation.
Reflection
Elaboration
Consolidation
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

Agent Memory
What an agent learns, with its source and its time, in the same engine.

Cloud
Managed clusters in the regions you choose, scaled on demand.

Studio
Query, explore and design the schema from the browser.

MCP
Every model that speaks MCP reaches the database and the memory directly.

IN PRODUCTION
Trusted at scale. Samsung, Nvidia, Verizon, Tencent and Walmart run on SurrealDB.
14,000+
Developers building on SurrealDB Cloud
4M+
Developers building on SurrealDB worldwide
FROM THE TEAMS
SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
VP of Engineering, Later
GET STARTED