🦜️🔗 LangChain Moorcheh
This repository contains the LangChain integration with Moorcheh, a vector database for AI applications.
Installation
pip install -U langchain-moorcheh
Configuration
Set your Moorcheh API key as an environment variable:
export MOORCHEH_API_KEY="your-api-key"
Moorcheh SDK docs: Python SDK Introduction
Vector Stores
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,
)
This integration uses the new module-based Moorcheh SDK methods:
namespaces.createdocuments.uploadsimilarity_search.queryanswer.generate
Features
- 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
Documentation
For more detailed information, visit:
Contributing
We welcome contributions! Please see our contributing guidelines for more details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for langchain-moorcheh 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_moorcheh-0.1.2.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_moorcheh-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / langchain_moorcheh-0.1.2.tar.gz
| Download URL | langchain_moorcheh-0.1.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
057fb86c3196a830effa8477d97bf102c1e0c7d898ca30cb2e2bcac7f2935714
|
|
BLAKE2b-256 checksum How to use checksums |
c09ccccf989972d8b08c282dd04597adc5de168cd525a2dd8bc5f957ef74110c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.5 Windows/11
|
Release files / langchain_moorcheh-0.1.2-py3-none-any.whl
| Download URL | langchain_moorcheh-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42c8adef3421424580d539887ce83aa7f52067450d60d565453f30f72e76669e
|
|
BLAKE2b-256 checksum How to use checksums |
4688e8c9a17911bc9c489b69256afcb42d7323f3d6dfe386ead90cc1ccdb8885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.5 Windows/11
|