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
Built Distribution
Close
Hashes for langchain_elasticsearch-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348343d2dcc34460180328c2775301839cfb8ccfd4931f1daf27d9753bfeb1e7 |
|
MD5 | d196ac28a05e15d27ec931ef2f260518 |
|
BLAKE2b-256 | 002e6b580886c6839af0196c6df500f5931bf7500274ed62524703fd329278b8 |
Close
Hashes for langchain_elasticsearch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734b3600c2a94167a20adbde853ddd420d9e7aba09d60050de24c657096a0cba |
|
MD5 | dab27ce9ee4bc669deddafbb36319613 |
|
BLAKE2b-256 | d5b0172e5e1ea3cea41ed489a6a631e297de3c2e3b9e2a8b0eabf3b6c6e11790 |