langchain_elasticsearch 0.1.3

langchain_elasticsearch.cache

Classes

cache.ElasticsearchCache(index_name[, ...])

An Elasticsearch cache integration for LLMs.

langchain_elasticsearch.chat_history

Classes

chat_history.ElasticsearchChatMessageHistory(...)

Chat message history that stores history in Elasticsearch.

langchain_elasticsearch.client

Functions

client.create_elasticsearch_client([url, ...])

langchain_elasticsearch.embeddings

Classes

embeddings.ElasticsearchEmbeddings(client, ...)

Elasticsearch embedding models.

embeddings.EmbeddingServiceAdapter(...)

Adapter for LangChain Embeddings to support the EmbeddingService interface from elasticsearch.helpers.vectorstore.

langchain_elasticsearch.retrievers

Classes

retrievers.ElasticsearchRetriever

Elasticsearch retriever

langchain_elasticsearch.vectorstores

Classes

vectorstores.ApproxRetrievalStrategy([...])

[Deprecated] Approximate retrieval strategy using the HNSW algorithm.

vectorstores.BM25RetrievalStrategy([k1, b])

[Deprecated] Retrieval strategy using the native BM25 algorithm of Elasticsearch.

vectorstores.BaseRetrievalStrategy(*args, ...)

[Deprecated] Base class for Elasticsearch retrieval strategies.

vectorstores.ElasticsearchStore(index_name, ...)

Elasticsearch vector store.

vectorstores.ExactRetrievalStrategy(*args, ...)

[Deprecated] Exact retrieval strategy using the script_score query.

vectorstores.SparseRetrievalStrategy([model_id])

[Deprecated] Sparse retrieval strategy using the text_expansion processor.