llama-index embeddings google genai integration
Project Links
Meta
Author: Your Name
Requires Python: <4.0,>=3.10
Classifiers
Google GenAI Embeddings
This package provides a wrapper around the Google GenAI API, allowing you to use Gemini and Vertex AI embeddings in your projects.
Installation
pip install llama-index-embeddings-google-genai
Usage
from llama_index.embeddings.google_genai import GoogleGenAIEmbedding
embed_model = GoogleGenAIEmbedding(model_name="gemini-embedding-2-preview")
embeddings = embed_model.get_text_embedding("Hello, world!")
print(embeddings)
Vertex AI
embed_model = GoogleGenAIEmbedding(
model_name="gemini-embedding-2-preview",
vertexai_config={
"project": "your-project-id",
"location": "your-location",
},
)
0.5.0
Mar 12, 2026
0.4.0
Mar 10, 2026
0.3.2
Jan 22, 2026
0.3.1
Sep 08, 2025
0.3.0
Jul 30, 2025
0.2.1
Jul 02, 2025
0.2.0
May 26, 2025
0.1.1
May 25, 2025
0.1.0
Mar 10, 2025