mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
…
|
||
---|---|---|
.. | ||
langchain_elasticsearch | ||
scripts | ||
tests | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
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,
)