Skip to main content

An integration package connecting Moorcheh and LangChain

Project description

🦜️🔗 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.create
  • documents.upload
  • similarity_search.query
  • answer.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_moorcheh-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_moorcheh-0.1.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_moorcheh-0.1.2.tar.gz.

File metadata

  • Download URL: langchain_moorcheh-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.5 Windows/11

File hashes

Hashes for langchain_moorcheh-0.1.2.tar.gz
Algorithm Hash digest
SHA256 057fb86c3196a830effa8477d97bf102c1e0c7d898ca30cb2e2bcac7f2935714
MD5 4a184629363b8fd237307ef75cb13495
BLAKE2b-256 c09ccccf989972d8b08c282dd04597adc5de168cd525a2dd8bc5f957ef74110c

See more details on using hashes here.

File details

Details for the file langchain_moorcheh-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_moorcheh-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42c8adef3421424580d539887ce83aa7f52067450d60d565453f30f72e76669e
MD5 c2077304977b6e00cd031046acdc5dfd
BLAKE2b-256 4688e8c9a17911bc9c489b69256afcb42d7323f3d6dfe386ead90cc1ccdb8885

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page