Skip to main content

An integration package connecting Elasticsearch and LangChain

Project description

langchain-elasticsearch

This package contains the LangChain integration with Elasticsearch.

Installation

pip install -U langchain-elasticsearch

TODO document how to get id and key

Usage

The ElasticsearchStore class exposes the connection to the Pinecone vector store.

from langchain_elasticsearch import ElasticsearchStore

embeddings = ... # use a LangChain Embeddings class

vectorstore = ElasticsearchStore(
    es_cloud_id="your-cloud-id",
    es_api_key="your-api-key",
    index_name="your-index-name",
    embeddings=embeddings,
)

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_elasticsearch-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

langchain_elasticsearch-0.1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_elasticsearch-0.1.0.tar.gz.

File metadata

File hashes

Hashes for langchain_elasticsearch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 348343d2dcc34460180328c2775301839cfb8ccfd4931f1daf27d9753bfeb1e7
MD5 d196ac28a05e15d27ec931ef2f260518
BLAKE2b-256 002e6b580886c6839af0196c6df500f5931bf7500274ed62524703fd329278b8

See more details on using hashes here.

File details

Details for the file langchain_elasticsearch-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_elasticsearch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 734b3600c2a94167a20adbde853ddd420d9e7aba09d60050de24c657096a0cba
MD5 dab27ce9ee4bc669deddafbb36319613
BLAKE2b-256 d5b0172e5e1ea3cea41ed489a6a631e297de3c2e3b9e2a8b0eabf3b6c6e11790

See more details on using hashes here.

Supported by

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