Google Gemini - Generate text embedding action

The Generate text embedding action generates an embedding from the provided text. Text embedding is a technique for representing text as numerical vectors. It uses deep neural networks trained on large text sets to generate vector representations that capture the meaning and context of a text.

Input

Input fieldDescription
ModelSelect the Gemini model to use.
Text for embedding generationProvide the text to convert into an embedding. Input text must not exceed 8192 tokens (approximately 6000 words).

Output

Output fieldDescription
ValueThe vector (embedding) returned by Gemini.
Sexually explicitThe likelihood that the text contains sexually explicit content. NEGLIGIBLE indicates there is little to no risk of such content being present.
Hate speechThe likelihood that the text contains or promotes hate speech, such as discriminatory symbols or context targeting protected groups. NEGLIGIBLE indicates there is little to no risk of such content being present.
HarassmentThe likelihood that the text contains harassing behavior, threats, or abuse toward individuals or groups. NEGLIGIBLE indicates there is little to no risk of such content being present.
Dangerous contentThe likelihood that the text contains dangerous or harmful content such as violence, self-harm, or instructions for unsafe behavior. NEGLIGIBLE indicates there is little to no risk of such content being present.

Last updated: