July 2026 Summaries
10 posts from SurrealDB
Filter
Month:
Year:
Post Summaries
Back to Blog
Dave MacLeod discusses the integration of the classic role-playing game Ultima VII with Spectron, a memory layer solution developed by SurrealDB that provides long-term memory for AI agents. Spectron addresses the challenge of AI agents forgetting information after a session ends by ensuring they can recall past interactions reliably. Ultima VII, with its open-world interactivity and depth, serves as an ideal testing ground for Spectron due to its complex scenarios and non-linear gameplay, made accessible through Exult, a project that allows the game to run on modern systems. The integration tests Spectron's ability to handle canonical and experiential knowledge, memory supersession, and complex interactions in a controlled yet realistic setting. The game’s initial quest, involving a murder mystery in the town of Trinsic, provides a structured environment to test Spectron's functionality in tracking evolving narratives and information recall, helped by a Rust app that captures game events and communicates them to Spectron for analysis.
Jul 30, 2026
2,059 words in the original blog post.
The text provides an in-depth comparison of various embedding models from companies like OpenAI, Google, Alibaba, Nomic AI, Jina AI, and BAAI, emphasizing their utilities in semantic search, RAG pipelines, and vector databases. It highlights the importance of choosing the right model to avoid costs in accuracy and financial resources and compares models based on dimensions, parameter sizes, token limits, and deployment options. The models vary from API-only solutions to self-hosted setups, with some optimized for on-device use, multilingual capabilities, or long-document retrieval. The guide suggests that the optimal model choice depends on specific requirements such as infrastructure, language coverage, context length, and whether the model needs to be operated on-premises. It concludes with an emphasis on evaluating the models using MTEB-style assessments on domain-specific data to ensure the best fit for individual needs.
Jul 30, 2026
1,990 words in the original blog post.
SurrealDB offers a unified solution for insurance claim analysis by integrating semantic, relational, and document data into a single multi-model database, eliminating the need for separate vector, graph, and document databases traditionally used in fraud detection. This innovative approach allows an AI agent to efficiently retrieve information, such as the similarity of new claims to past ones and structural connections to known frauds, using one query language and without the need for ETL processes. The SurrealDB setup enables real-time data access and streamlined operations, providing insurance companies with a robust tool for triaging and investigating claims before payouts. The database's capabilities are exemplified through its ability to store claims, manage vector indexes for semantic recall, and traverse graph edges to identify connections to fraudulent activities, making it a versatile and efficient choice for handling complex data queries in the insurance sector.
Jul 29, 2026
3,058 words in the original blog post.
Martin Schaer discusses the importance of securing AI agents' interactions with databases by emphasizing role-based access control (RBAC) in SurrealDB. AI agents can be powerful tools for querying databases, but they pose significant security risks when granted excessive permissions, especially when they can modify or delete data based on simple queries. Schaer highlights the limitations of relying on system prompts for security, as Large Language Models (LLMs) can ignore prompts and inadvertently carry out harmful operations. Instead, he advocates for implementing security measures at the database level, such as defining specific database users for each agent and setting precise permissions that align with the principle of least privilege. These measures ensure that agents only have access to the data necessary for their tasks, reducing the risk of unauthorized actions. By enforcing security in the database rather than through prompts, organizations can better protect their data from unintended modifications and leaks, making the database the ultimate line of defense.
Jul 27, 2026
1,648 words in the original blog post.
The text discusses the application of SurrealDB for modeling luxury retail data, emphasizing the need for a relationship-focused approach rather than a traditional big-data one. It highlights how luxury maisons face challenges with managing intricate relationships between clients, artisans, products, and boutiques, which are best represented as graph-shaped data. SurrealDB is positioned as a solution by enabling the storage of these relationships, vector recommendations, and full-text search all within the same database, eliminating the need for complex joins and multiple systems. The database allows for streamlined queries that can easily trace relationships such as who crafted a piece or a client's purchase history, facilitating efficient clienteling and inventory management. By using SurrealDB's multi-model capabilities, the luxury retail schema can handle complex queries, like determining product allocations and crafting similarity recommendations, within a unified system. The approach promises to maintain consistency and scalability by consolidating graph traversals, vector searches, and full-text searches into a single database environment.
Jul 23, 2026
2,821 words in the original blog post.
The text provides an overview of modeling a financial services enterprise ontology using SurrealDB, focusing on graph-based representations to simplify complex queries regarding ownership and control within financial institutions. It highlights the challenges traditional relational databases face in answering questions about beneficial ownership and control over financial instruments, which often require complicated and brittle reporting processes. SurrealDB allows these entities—such as legal entities, natural persons, accounts, and instruments—to be represented as nodes in a graph, with relationships like ownership, custody, and transactions depicted as edges that carry their own data. This approach enables recursive queries that provide insights into ownership structures and transactional relationships without the need for cumbersome joins or external graph databases. The text outlines how SurrealDB's architecture supports precise monetary values and efficient query mechanisms, making it an ideal tool for KYC, AML, and risk reporting in financial services by integrating these capabilities into a single, unified database system.
Jul 21, 2026
1,972 words in the original blog post.
The article introduces the use of SurrealDB for incident response by leveraging graph data models and time-travel queries to overcome the limitations of traditional flat CMDB tables. It explains how security teams can more effectively assess risk by focusing on the relationships between assets and their historical states, rather than static information. The graph model in SurrealDB allows for intuitive queries that map directly onto network traversals, enabling quick identification of potential threats, such as blast radius, lateral movement, and crown-jewel exposure, through simple commands. Additionally, the VERSION clause in SurrealDB facilitates temporal querying, allowing analysts to reconstruct the state of the network and its vulnerabilities at specific moments in time, thereby providing a comprehensive view of incident exposure and potential attack vectors. This approach enhances the ability to proactively manage and respond to security incidents by providing a dynamic, queryable representation of an organization's asset landscape.
Jul 15, 2026
1,951 words in the original blog post.
SurrealDB streamlines the process of retrieval-augmented generation (RAG) by integrating vector and graph databases into a single engine, eliminating the need for application code to reconcile data from separate sources. This approach allows agents to retrieve semantically relevant records and their relationships in one coherent query, enhancing accuracy by maintaining consistent data without the need for fusion heuristics, which often lead to inaccuracies and latency. SurrealDB's capability to perform vector KNN searches and graph traversals within a single SurrealQL statement ensures that agents receive a transactional snapshot of data, thereby reducing the risk of stale or inconsistent information. This unified system improves retrieval quality through features such as graph-based corrections and authorization checks, and supports complex queries that require multi-hop traversals, providing a more efficient and accurate alternative to traditional two-store setups, especially for agent corpora that fit within SurrealDB's capacity.
Jul 14, 2026
1,615 words in the original blog post.
Cyril Scetbon introduces the concept of streaming graph pattern matching using SurrealDB, which integrates document, graph, relational, and vector models into a single engine, to incrementally detect meaningful subgraphs as they form in real-time without re-scanning the entire graph. The article delves into the use of labeled property graphs and SurrealDB's capabilities to model data, specifically focusing on creating a tool controlled by a YAML configuration file to transform raw data into graph elements via VRL (Vector Remap Language). The configuration allows for the specification of sources and patterns where sources define how raw data becomes graph elements and patterns describe the subgraphs of interest. Through a movie database example, Scetbon illustrates how to detect patterns such as a person acting in and directing the same movie, using a declarative DSL to define these patterns and automatically create derived edges when patterns are matched. The article emphasizes the benefits of a streaming approach where matches are detected and results are output immediately as data is processed, highlighting a design intent where users define desired graph shapes rather than writing queries, making it ideal for applications like fraud detection, recommendation engines, and event correlation.
Jul 08, 2026
2,694 words in the original blog post.
Replit Agent enables users to transform prompts into functional applications by connecting with SurrealDB, a versatile database engine that supports documents, graphs, vectors, and SQL through the Model Context Protocol (MCP). SurrealDB version 3.1 and later can expose an MCP server that allows AI agents to safely inspect schemas and execute queries. This integration allows Replit to leverage existing data in SurrealDB, providing a reliable backend for applications, as opposed to generating temporary solutions. The guide walks through setting up SurrealDB 3.1, enabling the MCP server, and connecting it to Replit, which can then generate interfaces by reading the real schema and data. This setup is ideal for teams looking to build applications on a trusted database, with Replit serving as the interface layer that interacts with the SurrealDB system of record. The synergy of SurrealDB and Replit, facilitated by MCP, enables seamless development of interfaces while maintaining control over the database, thus turning experimental coding into a robust workflow.
Jul 01, 2026
2,696 words in the original blog post.