Learn how to customize OpenSearchDocumentStore.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| Hosts | Default: | List of hosts running the OpenSearch client. Optional. |
| String | Default: | Name of index in OpenSearch. If it doesn't exist, it is created. |
| Integer | Default: | Maximum size of the requests in bytes. |
| Integer | Default: | Dimension of the embeddings. |
| Boolean |
| Whether to return the embedding of the retrieved documents. |
| Dictionary of string and any | Default: | The method definition of the underlying configuration of the approximate k-NN algorithm. To learn more, see the official OpenSearch docs. |
| Dictionary of string and any | Default: | The mapping of how the documents are stored and indexed. For more information, see the official OpenSearch docs. |
| Dictionary of string and any | Default: | The settings of the index to be created. See the official OpenSearch docs for more information. Defaults to |
| Boolean |
| Creates an index if it doesn't exist. |
| Any | See the official OpenSearch reference for supported values | Optional arguments that |
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.