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>
|
2024-03-06 00:42:50 +00:00 |
|