This repository contains the LangChain integration with Moorcheh, a powerful vector database for AI applications.
pip install -U langchain-moorchehSet your Moorcheh API key as an environment variable:
export MOORCHEH_API_KEY="your-api-key"The MoorchehVectorStore class allows you to use Moorcheh VectorDB alongside LangChain:
from langchain_moorcheh import MoorchehVectorStore
vector_store = MoorchehVectorStore.from_texts(
texts=texts,
embedding=embedding_model,
api_key=MOORCHEH_API_KEY,
namespace=NAMESPACE_NAME,
namespace_type=NAMESPACE_TYPE,
)- Vector Storage: Store and retrieve embeddings with high performance
- Namespace Management: Organize your data with flexible namespace structures
- LangChain Integration: Seamlessly integrate with the LangChain ecosystem
- Async Support: Full asynchronous operation support
- Metadata Filtering: Advanced querying with metadata support
For more detailed information, visit:
We welcome contributions! Please see our contributing guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.