ZeusDB is a vector database written in Rust. It supports product quantization, persistent storage, and logging for operational use.The following sections show how to use ZeusDB with LangChain.
设置
Install the ZeusDB LangChain integration package from PyPI:快速开始
This example uses OpenAIEmbeddings, which requires an OpenAI API key: Get your OpenAI API key here If you prefer, you can also use this package with any other embedding provider (Hugging Face, Cohere, custom functions, etc.). Install the LangChain OpenAI integration package from PyPI:Please choose an option below for your OpenAI key integration
Option 1: 🔑 Enter your API key each time Use getpass in Jupyter to securely input your key for the current session:🎉 Nicely done! You are good to go.
初始化
管理向量存储
2.1 add items to vector store
2.2 update items in vector store
2.3 delete items from vector store
查询向量存储
3.1 query directly
Performing a simple similarity search:3.2 query by turning into retriever
You can also transform the vector store into a retriever for easier usage in your chains:ZeusDB-Specific features
4.1 Memory-Efficient setup with product quantization
For large datasets, use Product Quantization to reduce memory usage:4.2 persistence
Save and load your vector store to disk: How to Save your vector store用于检索增强生成
有关如何将此向量存储用于检索增强生成 (RAG) 的指南,请参阅以下部分:API 参考
For detailed documentation of allZeusDBVectorStore features and configurations head to ZeusDB Docs.
连接这些文档到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

