
Build context-aware AI agents with SurrealDB
Give AI agents persistent memory, rich context, and semantic understanding across structured, unstructured, and graph data using a unified, expressive query language.
AI agents need a unified foundation to reason, act, and adapt in real time. To perform reliably in production, they require consistent access to context, state, tools, and governance - the core elements that shape scalable agentic systems.
THE CHALLENGE
THE SOLUTION
CAPABILITIES
SurrealDB enables graphs, vectors, documents, and relational data in one language. Blend connections, facts, and semantics in a single round trip.
Retrieval-Augmented Generation thrives on fresh, structured context. This content is usually stored in memory, but can also be saved to disk for persistent storage. Toolkits in languages including Rust, Python, and JavaScript make this easy.
As an example, let's see what a simple Graph RAG looks like using LangChain. We will use SurrealDB for the vector and graph stores, and Ollama to generate the embeddings.
SECURITY
Meet regulatory requirements without wrapping your database in yet another proxy.
TRUSTED BY
Samsung uses SurrealDB to power a knowledge graph for real-time audience insights and ad targeting in its ad division.
Learn moreTencent uses SurrealDB to consolidate nine backend tools into one real-time monitoring platform.
Learn more