Skip to main content

llama-index embeddings google genai integration

Project description

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="text-embedding-004")

embeddings = embed_model.get_text_embedding("Hello, world!")
print(embeddings)

Vertex AI

embed_model = GoogleGenAIEmbedding(
    model_name="text-embedding-004",
    vertexai_config={
        "project": "your-project-id",
        "location": "your-location",
    },
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_embeddings_google_genai-0.3.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_embeddings_google_genai-0.3.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2514e276dae2a9d44801861bdd9b9a60f566ad861f5fd803e9cb7fba15c5b6d6
MD5 e1595985fe7be183d246597ffc34a495
BLAKE2b-256 62850f95fd3a9e99cddc4d1dec0f168842959f6e3aa0c2570144b452300c8162

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_google_genai-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07d16431d33ac694325e2279417573a33f35c34d3d98284573b5d58caf3b3b27
MD5 b3084031282e843295fac72ef07ec9f6
BLAKE2b-256 2c8e217c16fd0699410af986dddded765a5d3a6051823402aa24db61a737576b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page