Skip to content

Stop choosing. SurrealDB launch week, 12-16 October

See what's coming

Announcing our official LangChain integration

Engineering
Featured
AI

Jul 1, 20251 min read

Tobie Morgan Hitchcock

Tobie Morgan Hitchcock

Show all postsAnnouncing our official LangChain integration

Our newsletter

Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks

We’re thrilled to announce that SurrealDB now has an official integration with LangChain, one of the most popular frameworks for building powerful LLM-driven applications. This partnership brings together the strengths of SurrealDB’s multi-model flexibility and real-time capabilities with LangChain’s powerful orchestration layer, enabling developers to build smarter, faster, and more context-aware AI applications.

The integration includes the following LangChain components:

  • Vector Store (SurrealDBVectorStore)

  • Graph Store (SurrealDBGraph, currently experimental)

  • Graph QA Chain (SurrealDBGraphQAChain, currently experimental)

<NewsletterCTA />

# DB connection
conn = Surreal(url)
conn.signin({"username": user, "password": password})
conn.use(ns, db)

# Vector Store
vector_store = SurrealDBVectorStore(
    OllamaEmbeddings(model="llama3.2"),
    conn
)

# Graph Store
graph_store = SurrealDBGraph(conn)

You can start using the integration today via the SurrealDB docs, the LangChain docs, or our GitHub repository. We’ve also published example notebooks and sample apps to help you get up and running quickly:

We’re excited to see what you build with LangChain and SurrealDB. If you have questions or want to showcase your project, join our community on Discord or tag us on X. The #python and #all-ai channels are the best places to get started with LangChain and SurrealDB.

Related posts

Our newsletter

Get tutorials, AI agent recipes, webinars, and early product updates in your inbox every two weeks

SurrealDB

The context and memory layer for AI agents

Database. Graphs, vectors, documents and relational data in one engine, in a single ACID transaction.
Agent Memory. Connects and retrieves context wherever your data lives, every fact carrying its source.
Cloud. Fully managed, in the cloud provider and region you choose.

Explore with AI

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom