To use a hosted Google AI embedding model, specify the google path in the from field of your configuration.
Include the model ID in the from field; a model ID is required. For example, google:gemini-embedding-2 selects Google's latest generally available embedding model.
The following parameters are specific to Google AI embedding models:
| Parameter | Description | Default |
|---|---|---|
google_api_key | The API key for accessing Google AI. | - |
dimensions | The output dimensionality of the embeddings. Some embedding models support dynamic output sizes. | - |
Below is an example configuration in spicepod.yaml:
See Google AI Embedding Models (opens in a new tab) for a list of supported embedding models.
For detailed instructions and examples on running vector searches, refer to the Vector-Based Search documentation (opens in a new tab).