Loading video player...
π SurrealDB Solutions Engineer, Martin Schaer, walks you through building a knowledge graph retrieval tool for a Pydantic AI agent. Filmed at our London meetup, this video explores querying a SurrealDB knowledge graph directly (without extra abstraction), maintaining production-grade type safety, and getting full-stack observability - beyond just the LLM calls. π Links Slides: https://docs.google.com/presentation/d/1pYBvtYHyktWPMoG836u8GVPwf1HxBzDZU6Ayyi72MZE/edit?usp=sharing GitHub: https://github.com/surrealdb/kaig/tree/main/examples/knowledge-graph Chapters 00:00 Intro + what weβre building 00:30 SurrealDB overview (multi-model + SurrealQL) 03:29 Knowledge graphs basics (explicit vs inferred) 06:53 Why agents need KGs + vectors (and when to use hybrid) 12:00 Building a knowledge graph: ETL (parse β chunk β embed β extract β dedupe β enrich β load) 21:19 Surrealist walkthrough (schema + navigating the graph) 23:38 Retrieval approaches: RAG vs agentic tool-calling 26:19 Pydantic AI retrieval tool + SurrealQL query patterns 29:28 Observability with Logfire (end-to-end tracing) 30:55 Q&A SurrealDB: βοΈ Surreal Cloud: https://surrealdb.com/cloud π© Surrealist: https://surrealdb.com/surrealist π SurrealDB University: https://surrealdb.com/learn π SurrealDB Website: https://surrealdb.com/ π SurrealDB GitHub: https://github.com/surrealdb/surrealdb π¦ SurrealDB Twitter: https://twitter.com/surrealdb π¨βπ» SurrealDB LinkedIn: https://www.linkedin.com/company/surrealdb/ π SurrealDB Discord: https://discord.com/invite/surrealdb πΈ SurrealDB Instagram: https://www.instagram.com/surrealdb π Shop the merch: https://surrealdb.store/ What is SurrealDB? SurrealDB is an end-to-end cloud-native database designed for modern applications, including web, mobile, serverless, Jamstack, backend, and traditional applications. With SurrealDB, you can simplify your database and API infrastructure, reduce development time, and build secure, performant apps quickly and cost-effectively. π Get started with SurrealDB: https://sdb.li/getstarted Key features of SurrealDB: β Reduces development time: SurrealDB simplifies your database and API stack by removing the need for most server-side components, allowing you to build secure, performant apps faster and cheaper. β Real-time collaborative API backend service: SurrealDB functions as both a database and an API backend service, enabling real-time collaboration. β Support for multiple querying languages: SurrealDB supports SQL querying from client devices, GraphQL, ACID transactions, WebSocket connections, structured and unstructured data, graph querying, full-text indexing, and geospatial querying. β Granular access control: SurrealDB provides row-level permissions-based access control, giving you the ability to manage data access with precision.