Get Embeddings

Generates a text embedding vector from the input content. See more information here.

Action Settings

Setting Description
Model Enum, required. The Model's resource name. This serves as an ID for the Model to use.
Task Type Enum, optional. The task type for which the embeddings will be used. Valid values are: TASK_TYPE_UNSPECIFIED, RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, QUESTION_ANSWERING, FACT_VERIFICATION, CODE_RETRIEVAL_QUERY.
Title String, optional. An optional title for the text. Only applicable for RETRIEVAL_DOCUMENT TaskType.
Output Dimensionality Int64, optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.

Action Parameters

Parameter Description
Input String, required. The text to embed.

Result

The execution result is returned in the Embedding JSON array field.