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="gemini-embedding-2-preview")
embeddings = embed_model.get_text_embedding("Hello, world!")
print(embeddings)
Vertex AI
embed_model = GoogleGenAIEmbedding(
model_name="gemini-embedding-2-preview",
vertexai_config={
"project": "your-project-id",
"location": "your-location",
},
)
Metadata
Release files for llama-index-embeddings-google-genai 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_embeddings_google_genai-0.6.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_embeddings_google_genai-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / llama_index_embeddings_google_genai-0.6.0.tar.gz
| Download URL | llama_index_embeddings_google_genai-0.6.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1b74c3b82ab7ba68bb7ac698345a1f383657987d1c8bc1f4c93c11e4c7ee59c
|
|
BLAKE2b-256 checksum How to use checksums |
8920d614eaf53e5b2402c681f2805016fab127130ec4efd7625d8903e5cdb964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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_google_genai-0.6.0-py3-none-any.whl
| Download URL | llama_index_embeddings_google_genai-0.6.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20f50c92b66ef1353e77d0dd9516f248ea9bd49520858582c21e8a8d37e68c24
|
|
BLAKE2b-256 checksum How to use checksums |
ce5d6cca75db5ed50ba0017d0a3315063e63e0973e67e9f70e0dd5775fe749ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|