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

Make a medical chatbot using GraphRAG with SurrealDB + LangChain

Blog post from SurrealDB

Post Details
Company
Date Published
Author
Dave MacLeod
Word Count
2,913
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Dave MacLeod's article discusses creating a medical chatbot using SurrealDB and LangChain with the Rust programming language, building on a previous Python implementation. Rust developers can utilize the langchain_rust crate, which supports SurrealDB as a vector store, to achieve similar functionality. Although graph queries are not yet supported, classic vector searches can recommend patient treatments. The process involves setting up a Rust project with specific dependencies, including serde for YAML processing, and creating a CLI that utilizes the langchain-rust crate's capabilities to perform similarity searches on symptoms and their possible treatments stored in a YAML file. The implementation includes initializing an embedder, configuring a SurrealDB store, and using similarity searches to return relevant treatment recommendations based on user queries. The setup also demonstrates the use of OpenAI and MistralAI embedders, highlighting the flexibility and functionality of the langchain-rust crate in building a functional medical chatbot.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 4 1,836 305 108 +20%
RAG 1 984 209 73 -16%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.