embed(
self,
texts: list[str],
embeddings_task_type: EmbeddingTaskTypes | None = | Name | Type | Description |
|---|---|---|
texts* | list[str] | The list of strings to embed. |
embeddings_task_type | EmbeddingTaskTypes | None | Default: NoneOptional embeddings task type, one of the following:
The following are only supported on preview models:
|
dimensions | int | None | Default: None |
title | str | None | Default: None |
Embed a list of strings.
Output embeddings dimensions.
Only supported on preview models. If not provided, uses the default dimensions specified in the constructor.
Title for the text.
Only applicable when TaskType is RETRIEVAL_DOCUMENT.