You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/elasticsearch/langchain_elasticsearch
Max Jakob ee7a7954b9
elasticsearch: add `ElasticsearchRetriever` (#18587)
Implement
[Retriever](https://python.langchain.com/docs/modules/data_connection/retrievers/)
interface for Elasticsearch.

I opted to only expose the `body`, which gives you full flexibility, and
none the other 68 arguments of the [search
method](https://elasticsearch-py.readthedocs.io/en/v8.12.1/api/elasticsearch.html#elasticsearch.Elasticsearch.search).

Added a user agent header for usage tracking in Elastic Cloud.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
7 months ago
..
__init__.py partners: add Elasticsearch package (#17467) 7 months ago
_utilities.py elasticsearch: add `ElasticsearchRetriever` (#18587) 7 months ago
chat_history.py elasticsearch: add `ElasticsearchRetriever` (#18587) 7 months ago
client.py elasticsearch: add `ElasticsearchRetriever` (#18587) 7 months ago
embeddings.py partners: add Elasticsearch package (#17467) 7 months ago
py.typed partners: add Elasticsearch package (#17467) 7 months ago
retrievers.py elasticsearch: add `ElasticsearchRetriever` (#18587) 7 months ago
vectorstores.py elasticsearch: add `ElasticsearchRetriever` (#18587) 7 months ago