Skip to main content

text

Creates, updates, deletes, gets or lists a text resource.

Overview

Nametext
TypeResource
Idgemini.models.text

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_embed_textexecmodelsIdGenerates multiple embeddings from the model given input text in a synchronous call.
generate_textexecmodelsIdGenerates a response from the model given an input message.
embed_textexecmodelsIdGenerates an embedding from the model given an input message.
count_text_tokensexecmodelsIdRuns a model's tokenizer on a text and returns the token count.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
modelsIdstring

Lifecycle Methods

Generates multiple embeddings from the model given input text in a synchronous call.

EXEC gemini.models.text.batch_embed_text
@modelsId='{{ modelsId }}' --required
@@json=
'{
"requests": "{{ requests }}",
"texts": "{{ texts }}"
}'
;