Embed a list of strings.
embed(
self,
texts: list[str],
embeddings_task_type: EmbeddingTaskTypes | None = None,
dimensions: int | None = None,
title: str | None = None
) -> list[list[float]]| 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: NoneOutput embeddings dimensions. Only supported on preview models. If not provided, uses the default dimensions specified in the constructor. |
title | str | None | Default: NoneTitle for the text. Only applicable when |