OpenSearchEmbeddingRetriever Parameters

Learn how to customize OpenSearchEmbeddingRetriever.

YAML Init Parameters

These are the parameters you can pass to this component in the pipeline YAML configuration:

ParameterTypePossible valuesDescription
document_storeOpenSearchDocumentStoreDefault: OpenSearchDocumentStoreAn instance of OpenSearchDocumentStore (DeepsetCloudDocumentStore).
Required.
filtersDictionary of string and anyDefault: NoneFilters applied to the retrieved Documents. Filters are applied during the approximate kNN search to ensure that top_k matching documents are returned. Optional.
top_kIntegerDefault: 10Maximum number of documents to return. Required.
filter_policyUnion of string and FilterPolicyreplace
merge
Default: replace
Policy to determine how filters are applied. Possible values:

- replace: Overrides the filters set through the retriever's filters parameter with the filters provided at search time.
- merge: Merges the filters set through the retriever's filters parameter with the filters specified at search time, with the search time filters taking precedence.
Required.
custom_queryDictionary of string and anyDefault: NoneSpecifies the optional OpenSearch query to use for retrieving documents.
Optional.
raise_on_failureBooleanTrue, False
Default: False
Raises an exception if the API call fails.
Required.

REST API Runtime Parameters

There are no runtime parameters you can pass to this component when making a request to the Search REST API endpoint.