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
Release history Release notifications | RSS feed
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
File details
Details for the file langchain_elasticsearch-0.1.0.tar.gz
.
File metadata
- Download URL: langchain_elasticsearch-0.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348343d2dcc34460180328c2775301839cfb8ccfd4931f1daf27d9753bfeb1e7 |
|
MD5 | d196ac28a05e15d27ec931ef2f260518 |
|
BLAKE2b-256 | 002e6b580886c6839af0196c6df500f5931bf7500274ed62524703fd329278b8 |
File details
Details for the file langchain_elasticsearch-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: langchain_elasticsearch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734b3600c2a94167a20adbde853ddd420d9e7aba09d60050de24c657096a0cba |
|
MD5 | dab27ce9ee4bc669deddafbb36319613 |
|
BLAKE2b-256 | d5b0172e5e1ea3cea41ed489a6a631e297de3c2e3b9e2a8b0eabf3b6c6e11790 |