Conversational Memory in LangChain
Jun 6, 2023Yujian Tang

Summary
This post details the integration of Milvus as a vector store for LangChain's conversational memory. It outlines the setup process involving LangChain libraries, OpenAI embeddings, and Milvus Lite. The core contribution is demonstrating how to use `VectorStoreRetrieverMemory` with Milvus to store and retrieve conversational context, enabling LLMs to maintain state and provide more coherent interactions. It provides code examples for initializing Milvus Lite, creating a retriever, saving conversation context, and querying the memory within a `ConversationChain`.
More from the AI Data Storage Engine trail
- Milvus Snapshots: Point-in-Time Collection Views Without Copying Data
- Announcing Milvus 3.0: Lake-Native Vector Search and a More Powerful Retrieval Engine
- How to Recover Milvus Data After etcd Corruption Without a Backup
- Open Tag: An Open-Source Claude Tag for Claude Code and Codex
- How Force Merge Compaction Nearly Doubled Milvus Search QPS