Installation
Install the Google Generative AI package:Setup
Set your Google API key as an environment variable:Usage
Create a Google embedder:Configuration Options
- model - The embedding model to use (e.g., “text-embedding-004”)
- api_key - Your Google API key
For the full list of available models and parameters, see the Google AI Embeddings documentation.