textembedding-gecko
Last updated
Was this helpful?
Last updated
Was this helpful?
A state-of-the-art text embedding model designed to convert textual data into numerical vector representations. It captures semantic meanings and relationships within the text, facilitating various natural language processing (NLP) tasks.
If you don’t have an API key for the AI/ML API yet, feel free to use our .
Input text to embed, encoded as a string or array of tokens.
The number of dimensions the resulting output embeddings should have.
If enabled, this parameter automatically truncates the input text to fit within the model’s maximum token limit. It helps ensure that longer texts are processed without errors.
true
Optional task type for which the embeddings will be used
An optional title for the text. Only applicable when task_type is RETRIEVAL_DOCUMENT.
Note: Specifying a title for RETRIEVAL_DOCUMENT provides better quality embeddings for retrieval.
No content