Learn how you can configure SentenceTransformersDocumentEmbedder to calculate embeddings for documents.
YAML Init Parameters
Parameter | Type | Possible values | Description |
---|---|---|---|
| String | Default: | Local path or ID of the model on Hugging Face. |
| ComponentDevice | Default: | Overrides the default device used to load the model. |
| Secret | Default: | The API token used to download private models from Hugging Face. |
| String | Default: | A string to add at the beginning of each text. Can be used to prepend the text with an instruction, as required by some embedding models, such as E5 and bge. |
| String | Default: | A string to add at the end of each text. |
| Integer | Default: | Number of documents to encode at once. |
| Boolean |
| If |
| Boolean |
| If |
| List of strings | Default: | List of meta fields that will be embedded along with the document text. |
| String | Default: | Separator used to concatenate the meta fields to the document text. |
| Boolean |
| If |
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.