google.generativeai.protos.BatchEmbedTextRequest
Batch request to get a text embedding from the model.
Attributes |
`model`
|
`str`
Required. The name of the ``Model`` to use for generating
the embedding. Examples: models/embedding-gecko-001
|
`texts`
|
`MutableSequence[str]`
Optional. The free-form input texts that the
model will turn into an embedding. The current
limit is 100 texts, over which an error will be
thrown.
|
`requests`
|
`MutableSequence[google.ai.generativelanguage.EmbedTextRequest]`
Optional. Embed requests for the batch. Only one of
``texts`` or ``requests`` can be set.
|