generative-ai-python

google.generativeai.protos.BatchEmbedContentsRequest

Batch request to get embeddings from the model for a list of prompts.

`model` `str` Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the ``ListModels`` method. Format: ``models/{model}``
`requests` `MutableSequence[google.ai.generativelanguage.EmbedContentRequest]` Required. Embed requests for the batch. The model in each of these requests must match the model specified BatchEmbedContentsRequest.model.