skillfed

llama-index-embeddings-google-genai

llama-index embeddings google genai integration

llama-index-embeddings-google-genai v0.5.1 404.9K downloads/30d#6,909 on PyPI
Permissive license MIT Active released

What it is and what it does

This package wraps Google's embedding APIs (Gemini and Vertex AI) for use within the llama-index framework. It lets you generate text embeddings using Google's models without writing the integration layer yourself. The package handles both direct GenAI API calls and Vertex AI deployments, accepting configuration like project ID and location for the latter.

You instantiate an embedding model by specifying the model name (e.g., "gemini-embedding-2-preview") and optional Vertex AI credentials, then call get_text_embedding() to convert text into vector form. It's designed as a drop-in embedding provider for llama-index workflows that need Google's embedding models.

Use it for:

  • Building RAG pipelines with llama-index using Google's embedding models
  • Generating embeddings for semantic search over document collections via Gemini or Vertex AI
  • Integrating Google's embeddings into multi-step llama-index workflows without custom API glue code
  • Using Vertex AI embeddings in enterprise GCP environments with project-scoped authentication

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Google's Gemini and Vertex AI embedding models with llama-index for generating text embeddings in your applications.

Yes, if you are already using llama-index and need Google's embedding models. The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a straightforward choice. No if you don't use llama-index or prefer other embedding providers.

Install

llama-index-embeddings-google-genai on PyPI

pip

pip install llama-index-embeddings-google-genai

uv

uv add llama-index-embeddings-google-genai

poetry

poetry add llama-index-embeddings-google-genai

Installing llama-index-embeddings-google-genai

Before you install

Low install friction with only 2 runtime dependencies (google-genai and llama-index-core). Maintenance status is active, with the latest release dated 2026-05-19.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install llama-index-embeddings-google-genai

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!")

Requires Python 3.10 or later (supports_current). Google GenAI API credentials must be configured.

Verify before relying

  • Whether google-genai dependency requires API credentials or authentication setup beyond standard environment variables
  • Performance characteristics and rate limits when used with Vertex AI vs. direct GenAI API
  • Compatibility guarantees with specific versions of llama-index-core

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — google-genai, llama-index-core
Maintenance actively maintained — 87 days since the last release
First released
Downloads 404,945/month — #6,909 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: llama_index_embeddings_google_genai-0.5.1-py3-none-any.whl

Tags

google gemini embeddingsvertex ai embeddingsllama-index google embeddingstext embedding api wrappergemini embedding integration
embeddingsllama-index-integrationgoogle-cloud

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

llama-index-embeddings-ollama

Integrates Ollama's local embedding models with…

permissive · top 15,000 on PyPI

llama-index-embeddings-vertex

Integrates Google Vertex AI embedding models…

permissive · top 15,000 on PyPI

llama-index-llms-vertex

Integrates Google Vertex AI's LLM capabilities…

permissive · top 15,000 on PyPI

llama-index-llms-gemini

Integrates Google's Gemini LLM with LlamaIndex,…

permissive · top 15,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

llama-index-embeddings-bedrock

Provides Amazon Bedrock embedding models…

permissive · top 5,000 on PyPI

google-genai

Python SDK for integrating Google's Gemini…

permissive · top 1,000 on PyPI

llama-index-llms-google-genai

Integrates Google's Gemini models into…

permissive · top 15,000 on PyPI

llama-index-embeddings-langchain

Integrates Langchain embedding models with…

permissive · top 15,000 on PyPI

llama-index-embeddings-huggingface

Integrates Hugging Face embedding models with…

permissive · top 15,000 on PyPI