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.2.0.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.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aa579eb0cd874cf4c783e1e06b924c40f5a83409eac6aab27374dd67edcd836d
MD5 2e09e75d12e2ce1f03277935f342f766
BLAKE2b-256 4a91e6f721aa757fdecbf9a3e58a360e4b34ecd162e8fcf3c168460f616c387f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfaca111b103bb92a32946434a67b986baace4c7d9e1a2db2e123cb1c42eca7c
MD5 b2f4b1c11ffe72b5255971cffb083d43
BLAKE2b-256 100c60d3248f1467c5630de8e419ff47a5726a37845884a06bc2753be7b7ee38

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