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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_embeddings_google_genai-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_embeddings_google_genai-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f176bb3eabdf11b778329720ff8daccf4ceb960a27934b4dcae2d4f8e9cc58a
|
|
| MD5 |
f85094a99853748ee6219ad53d8e9a54
|
|
| BLAKE2b-256 |
d0fff1032cf781d375db1793801e70ee37ee8e5ce5cfae6c3b36e811055b4b0a
|
File details
Details for the file llama_index_embeddings_google_genai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_embeddings_google_genai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd18f303d77e7f3eec4667094dc3f3aedca1784f194b3c8af6ec0f4684fd3f81
|
|
| MD5 |
935dbc2967eaa6599d14b7eca031fe6c
|
|
| BLAKE2b-256 |
0a8ee3e94e3903a4e23f750589497894c16eff8db4587ac722531cc1eb7fdb5b
|