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.1.0.tar.gz (3.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.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f176bb3eabdf11b778329720ff8daccf4ceb960a27934b4dcae2d4f8e9cc58a
MD5 f85094a99853748ee6219ad53d8e9a54
BLAKE2b-256 d0fff1032cf781d375db1793801e70ee37ee8e5ce5cfae6c3b36e811055b4b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_google_genai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd18f303d77e7f3eec4667094dc3f3aedca1784f194b3c8af6ec0f4684fd3f81
MD5 935dbc2967eaa6599d14b7eca031fe6c
BLAKE2b-256 0a8ee3e94e3903a4e23f750589497894c16eff8db4587ac722531cc1eb7fdb5b

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