EXECUTIVE SUMMARY
The context wall
Enterprise AI initiatives share a common failure pattern. The cause is not the model - it is the architecture beneath the model. As LLMs mature into autonomous agents, enterprises are hitting the Context Wall.
THE CONTEXT WALL
Why agents fail in production
Nearly every organisation attempted to deploy agentic workflows in 2024 and 2025. Most failed - not because models are incapable, but because agents lack persistent, structured, real-time context.
THE READ-THINK-WRITE LOOP
Why AI needs a context layer
Agents operate through a continuous cycle: perceive the environment, reason over memory, commit an action back to storage. This loop runs in milliseconds and never stops. Analytical platforms are not built for this.
READ
Graph traversal, vector search, and temporal facts - one SurrealQL statement, one round trip.
THINK
Documents, relationships, embeddings, and history arrive together. The agent reasons over complete context.
WRITE
Persist decisions, update entities, trigger events - one ACID transaction, no partial writes.
THE FRAGMENTED MEMORY TAX
Why multi-model wins
When an agent's memory is split across multiple systems, unification happens at the application layer. This creates latency, semantic drift, loss of dimensionality, and consistency gaps that compound under load.
App state
User session
Vector DB
Embeddings
Graph DB
Relations
Doc store
Documents
Auth
Identity
Data fragments at every system boundary
Agent
Vector DB
Graph DB
Doc store
Auth
Total
SURREALQL IN ACTION
Implementing semantic context
SurrealQL collapses complex multi-system operations into single, atomic queries. Graph traversal, vector search, and document operations in one statement.
RICH EDGES
Graph + document + vector in one operation.
RELATE agent:researcher ->interacts_with ->user:customer123SET time = time::now(), topic = "Billing Dispute", sentiment_score = 0.2, context_embedding = fn::embed("frustrated"), summary = "Double-billing on invoice #55";
UNIFIED SEARCH
Vector similarity + graph filtering in one query.
SELECT * FROM interacts_withWHERE context_embedding <|2|> fn::embed( "billing issues" )AND out.purchased_product = product:enterprise_saasAND time > time::now() - 30d;
LIVE QUERIES
Multi-agent sync without polling.
LIVE SELECT * FROM taskWHERE status = 'Completed'AND project = project:ai_migration;
THE ARCHITECTURE
Enterprise Semantic Foundation
The ESF is the architectural response to semantic drift. A unified, multi-model substrate that serves as the common language for the entire organisation - anchoring canonical meaning, activating real-time context, and governing access in one system.
TRUSTED BY
Enterprise teams building on SurrealDB
From knowledge graphs to AI assistants - how enterprise teams are building on the context layer.
Samsung
Unlocking insights with knowledge graphs
Samsung Ads uses SurrealDB to build dynamic, real-time knowledge graphs for smarter campaign execution - collapsing three legacy data stores into one.
Read case study
Verizon
AI assistant empowering 10,000 technicians
Verizon uses SurrealDB to power a generative AI assistant for 10,000 field technicians, delivering instant access to documentation, outage updates, and workflows.
Read case study
Tencent
Unified infrastructure monitoring
Tencent consolidated nine backend tools into one real-time monitoring platform powered by SurrealDB's multi-model context graph.
Read case study
PolyAI
High-performance customer service AI powered by RAG
PolyAI connects SurrealDB to Agent Studio for low-latency, customer-controlled RAG across voice AI experiences.
Read case study
FREQUENTLY ASKED QUESTIONS
The context layer
GET STARTED
Build on the context layer
The context layer lives in the database. Start building on the Enterprise Semantic Foundation.
SOC 2 Type 2
GDPR
Cyber Essentials Plus
ISO 27001