Class ElasticsearchConfigurationScript

java.lang.Object
dev.langchain4j.store.embedding.elasticsearch.ElasticsearchConfigurationScript
All Implemented Interfaces:
ElasticsearchConfiguration

public class ElasticsearchConfigurationScript extends Object implements ElasticsearchConfiguration
Represents an Elasticsearch index as an embedding store. Current implementation assumes the index uses the cosine distance metric.
Supports storing Metadata and filtering by it using Filter (provided inside EmbeddingSearchRequest).

Documents without a vector value are excluded before scoring. This allows text-only documents to coexist with embedded documents in the same index while remaining available to ElasticsearchConfigurationFullText.

See Also: