Learn how to customize OpenSearchEmbeddingRetriever.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| OpenSearchDocumentStore | Default: | An instance of OpenSearchDocumentStore (DeepsetCloudDocumentStore). |
| Dictionary of string and any | Default: | Filters applied to the retrieved Documents. Filters are applied during the approximate kNN search to ensure that |
| Integer | Default: | Maximum number of documents to return. Required. |
| Union of string and FilterPolicy |
| Policy to determine how filters are applied. Possible values:
|
| Dictionary of string and any | Default: | Specifies the optional OpenSearch query to use for retrieving documents. |
| Boolean |
| Raises an exception if the API call fails. |
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.