Constructing retrieval-augmented era (RAG) techniques for AI brokers typically entails utilizing a number of layers and applied sciences for structured information, vectors and graph info. In current months it has additionally change into more and more clear that agentic AI techniques want reminiscence, typically known as contextual reminiscence, to function successfully.
The complexity and synchronization of getting completely different information layers to allow context can result in efficiency and accuracy points. It's a problem that SurrealDB is trying to remedy.
SurrealDB on Tuesday launched model 3.0 of its namesake database alongside a $23 million Collection A extension, bringing complete funding to $44 million. The corporate had taken a distinct architectural strategy than relational databases like PostgreSQL, native vector databases like Pinecone or a graph database like Neo4j. The OpenAI engineering workforce just lately detailed the way it scaled Postgres to 800 million customers utilizing learn replicas — an strategy that works for read-heavy workloads. SurrealDB takes a distinct strategy: Retailer agent reminiscence, enterprise logic, and multi-modal information immediately contained in the database. As an alternative of synchronizing throughout a number of techniques, vector search, graph traversal, and relational queries all run transactionally in a single Rust-native engine that maintains consistency.
"Persons are operating DuckDB, Postgres, Snowflake, Neo4j, Quadrant or Pinecone all collectively, after which they're questioning why they’ll't get good accuracy of their brokers," CEO and co-founder Tobie Morgan Hitchcock advised VentureBeat. "It's as a result of they're having to ship 5 completely different queries to 5 completely different databases which solely have the data or the context that they take care of."
The structure has resonated with builders, with 2.3 million downloads and 31,000 GitHub stars up to now for the database. Present deployments span edge gadgets in vehicles and protection techniques, product suggestion engines for main New York retailers, and Android advert serving applied sciences, in accordance with Hitchcock.
Agentic AI reminiscence baked into the database
SurrealDB shops agent reminiscence as graph relationships and semantic metadata immediately within the database, not in software code or exterior caching layers.
The Surrealism plugin system in SurrealDB 3.0 lets builders outline how brokers construct and question this reminiscence; the logic runs contained in the database with transactional ensures fairly than in middleware.
Right here's what which means in follow: When an agent interacts with information, it creates context graphs that hyperlink entities, choices and area data as database information. These relationships are queryable via the identical SurrealQL interface used for vector search and structured information. An agent asking a few buyer concern can traverse graph connections to associated previous incidents, pull vector embeddings of comparable instances, and be part of with structured buyer information — multi function transactional question.
"Individuals don't wish to retailer simply the newest information anymore," Hitchcock stated. "They wish to retailer all that information. They wish to analyze and have the AI perceive and run via all the information of a corporation during the last 12 months or two, as a result of that informs their mannequin, their AI agent about context, about historical past, and that may due to this fact ship higher outcomes."
How SurrealDB's structure differs from conventional RAG stacks
Conventional RAG techniques question databases primarily based on information sorts. Builders write separate queries for vector similarity search, graph traversal, and relational joins, then merge ends in software code. This creates synchronization delays as queries round-trip between techniques.
In distinction, Hitchcock defined that SurrealDB shops information as binary-encoded paperwork with graph relationships embedded immediately alongside them. A single question via SurrealQL can traverse graph relationships, carry out vector similarity searches, and be part of structured information with out leaving the database.
That structure additionally impacts how consistency works at scale: Each node maintains transactional consistency, even at 50+ node scale, Hitchcock stated. When an agent writes new context to node A, a question on node B instantly sees that replace. No caching, no learn replicas.
"A variety of our use instances, lots of our deployments are the place information is continually up to date and the relationships, the context, the semantic understanding, or the graph connections between that information must be continually refreshed," he stated. "So no caching. There's no learn replicas. In SurrealDB, each single factor is transactional."
What this implies for enterprise IT
"It's necessary to say SurrealDB isn’t the perfect database for each activity. I'd like to say we’re, but it surely's not. And you may't be," Hitchcock stated. "In the event you solely want evaluation over petabytes of knowledge and also you're by no means actually updating that information, then you definately're going to be greatest going with object storage or a columnar database. In the event you're simply coping with vector search, then you may go together with a vector database like Quadrant or Pinecone, and that's going to suffice."
The inflection level comes whenever you want a number of information sorts collectively. The sensible profit reveals up in growth timelines. What used to take months to construct with multi-database orchestration can now launch in days, Hitchcock stated.

