Registry /
llm-agents / llama-index-embeddings-vertex
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 457.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 30.6s · import 0.000s · 451MB
479MB installed
● package 479MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
VertexEmbedding
✓ from llama_index.embeddings.vertex import VertexEmbedding
✗ from llama_index.embeddings.vertex import VertexEmbedding
Initialize VertexEmbedding with model name and project. Authentication via GOOGLE_APPLICATION_CREDENTIALS env var (service account) or default credentials.
import os
from llama_index.embeddings.vertex import VertexEmbedding
# Set credentials (recommended: service account JSON path)
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/service-account.json"
embed_model = VertexEmbedding(
model_name="text-embedding-004", # or "textembedding-gecko@003"
project="your-gcp-project-id",
location="us-central1",
)
embeddings = embed_model.get_text_embedding("Hello, world!")
print(len(embeddings)) # 768 for text-embedding-004
Upgrade
Version history
0.5.0latest on PyPI · released Mar 12, 2026
Audit
Dependencies
llama-index-corerequiredBase classes and embeddings interface
google-cloud-aiplatformrequiredVertex AI SDK for API calls
google-authrequiredAuthentication and service account handling