Skip to content

Build context-aware
AI agents

Structured context. Documents, graphs and vectors an agent can query together.
Persistent memory. Agent Memory keeps what an agent learns, with its source.
Consistency. Every write is transactional, so agents act on facts that agree.

01 |THE PROBLEM

The context wall. Every seam between systems is where context leaks.

Context leakage

Relationships, history and metadata fragment as data moves between systems.

Partial writes

Without one transaction, memory updates in one system while state fails in another.

Compounding latency

Every hop between systems is a round trip, and they add up under load.

Operational overhead

Five systems means five failure modes, five monitors and five sets of credentials.

02 |CONTEXT ENGINEERING

Context in one query. Graph, vector, filters and time in one round trip.

1-- Context engineering: combine graph, vector, and temporal data
2LET $user = user:jaime;
3LET $query_vec = fn::embed("What products does this user like?");
4
5SELECT
6 ->purchased->product AS purchase_history,
7 ->reviewed->product[WHERE vector::similarity::cosine(embedding, $query_vec) > 0.8] AS relevant_products,
8 ->preferences[WHERE valid_at <= time::now()] AS current_preferences
9FROM ONLY $user;

03 |MULTI-AGENT

Coordination through shared memory. One knowledge graph, under ACID guarantees.

04 |THE STACK

Database and Agent Memory. One stack, one transaction, one policy.

Your questions,answered

RAG retrieves chunks of text by vector similarity. SurrealDB and Agent Memory supply structured context, with graphs, documents, vectors, temporal facts and memory in one transactional system. RAG is one retrieval pattern within it.

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

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.
Justin Foley

VP of Engineering, Later

GET STARTED

Build context-aware AI agents. Structured context, persistent memory and transactional consistency in one stack.

ISO 27001
AICPA SOC 2 Type 2
Cyber Essentials
GDPR
Cyber Essentials Plus
SurrealDB

The context and memory layer for AI agents

Database. Graphs, vectors, documents and relational data in one engine, in a single ACID transaction.
Agent Memory. Connects and retrieves context wherever your data lives, every fact carrying its source.
Cloud. Fully managed, in the cloud provider and region you choose.

Explore with AI

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom