Skip to main content

LlamaIndex Embeddings Integration: Vertex

Implements Vertex AI Embeddings Models:

Model Release Date
textembedding-gecko@003 December 12, 2023
textembedding-gecko@002 November 2, 2023
textembedding-gecko-multilingual@001 November 2, 2023
textembedding-gecko@001 June 7, 2023
multimodalembedding

Note: Currently Vertex AI does not support async on multimodalembedding. Otherwise, VertexTextEmbedding supports async interface.


New Features

  • Flexible Credential Handling:

    • Credential Management: Supports both direct credentials and service account info for secure API access.
  • Model Name Handling in Embedding Requests:

    • The _get_embedding_request function now accepts the model_name parameter, allowing it to manage models that do not support the task_type parameter, like textembedding-gecko@001.

Example Usage

from google.oauth2 import service_account
from llama_index.embeddings.vertex import VertexTextEmbedding

credentials = service_account.Credentials.from_service_account_file(
    "path/to/your/service-account.json"
)

embedding = VertexTextEmbedding(
    model_name="textembedding-gecko@003",
    project="your-project-id",
    location="your-region",
    credentials=credentials,
)

Alternatively, you can directly pass the required service account parameters:

from llama_index.embeddings.vertex import VertexTextEmbedding

embedding = VertexTextEmbedding(
    model_name="textembedding-gecko@003",
    project="your-project-id",
    location="your-region",
    client_email="your-service-account-email",
    token_uri="your-token-uri",
    private_key_id="your-private-key-id",
    private_key="your-private-key",
)

Metadata

Release files for llama-index-embeddings-vertex 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-embeddings-vertex 0.7.0
File Size Uploaded Provenance Actions
llama_index_embeddings_vertex-0.7.0.tar.gz 6.0 kB Without provenance Details for llama_index_embeddings_vertex-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-embeddings-vertex 0.7.0
File Interpreter ABI Platform Actions
llama_index_embeddings_vertex-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_embeddings_vertex-0.7.0-py3-none-any.whl

Total release size: 11.6 kB

Release files / llama_index_embeddings_vertex-0.7.0.tar.gz

Download URL llama_index_embeddings_vertex-0.7.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f26c6df22addae608dccbcf76ddc40f4a955f60b5f6d12e7179904232c9537ea
BLAKE2b-256 checksum
How to use checksums
5346ca782bf968819cece83a227ddc9784c1165a0d4c820a8359959ab9be7503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_embeddings_vertex-0.7.0-py3-none-any.whl

Download URL llama_index_embeddings_vertex-0.7.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aa2738125930ccd968f36212a45a63342b28b93a84dac44f58ce89e960b98e1
BLAKE2b-256 checksum
How to use checksums
85edb6759a9394713a31d071d771146af7aa5868e030b413a7ec70cb12ca2a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-embeddings-vertex 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page