LlamaIndex Embeddings Integration: Baseten
This integration allows you to use Baseten's hosted models with LlamaIndex.
Installation
Install the required packages:
pip install llama-index-embeddings-baseten
pip install llama-index
Baseten embeddings are offered through dedicated deployments. You need to deploy your preferred embeddings model in your Baseten dashboard and provide the 8 character model id like abcd1234.
Usage
from llama_index.embeddings.baseten import BasetenEmbedding
# Using dedicated endpoint
# You can find the model_id by in the Baseten dashboard here: https://app.baseten.co/overview
embed_model = BasetenEmbedding(
model_id="MODEL_ID",
api_key="YOUR_API_KEY",
)
# Single embedding
embedding = embed_model.get_text_embedding("Hello, world!")
# Batch embeddings
embeddings = embed_model.get_text_embedding_batch(
["Hello, world!", "Goodbye, world!"]
)
Metadata
Release files for llama-index-embeddings-baseten 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| llama_index_embeddings_baseten-0.3.0.tar.gz | 4.3 kB | Without provenance | Details for llama_index_embeddings_baseten-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_embeddings_baseten-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_embeddings_baseten-0.3.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / llama_index_embeddings_baseten-0.3.0.tar.gz
| Download URL | llama_index_embeddings_baseten-0.3.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96267e62cc7b9a6519e1f7c8c1bd1c4cb40e6da27b540694fd31dedb800cb6a7
|
|
BLAKE2b-256 checksum How to use checksums |
215934bdee422e8ef7d1222376ce1bcf5806a6057102dc884ea52088d564b835
|
| 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_baseten-0.3.0-py3-none-any.whl
| Download URL | llama_index_embeddings_baseten-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac94d32ea46b00acc4d5349bc71de2e6b773d13506cdc9dbb112de920e2b0eda
|
|
BLAKE2b-256 checksum How to use checksums |
ab5f17365076d8dc5fcf7d5e0656030352bab6efb344aa555cd497aaa071144d
|
| 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}
|
Security for llama-index-embeddings-baseten 0.3.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.