Home / Companies / SurrealDB / Blog / Post Details
Content Deep Dive

Building an AI-native multi-model UI with SurrealDB

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Dave MacLeod
Word Count
7,411
Language
English
Hacker News Points
-
Summary

SurrealDB is presented as an AI-native, multi-model general-purpose database tailored for generative AI applications. The database uniquely integrates features such as vector similarity, indexing, graph and record links, and serves as an embedded data store, allowing users to build AI applications without additional downloads. The post highlights various uses of SurrealDB in AI, including integration with LangChain, semantic search using OpenAI and Mistral, and constructing smart knowledge agents with Rig.rs. To demonstrate its capabilities, a demo UI is created using Rust and the Iced crate, enabling document insertion from Wikipedia, document linking, embedding additions, similarity searches, and full-text searches, while showcasing SurrealDB's features like recursive queries and in-memory database embedding. The post also provides detailed instructions on setting up the environment and executing queries, emphasizing the ease of expanding and customizing the application.