Skip to main content

llama-index embeddings baseten integration

Project description

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!"]
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_embeddings_baseten-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_embeddings_baseten-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_baseten-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_embeddings_baseten-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4d480bd957cef56467d9e574005e4dc49d177eff8c96f6238b9235a887022288
MD5 91a991432eb5beebd0054ba2f3c503f0
BLAKE2b-256 cf9eef0feacf4e2240e27d2531f7fa8e0cc0abe9b7e5313a118f58b378ca5340

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_baseten-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_embeddings_baseten-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for llama_index_embeddings_baseten-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f4ef96a32d690fcc9bd3fd0a5c1b64259f3e90cae86c74f78a762222bd4fd9e
MD5 28f6f53e26dee4182710d6f47cff69fe
BLAKE2b-256 6389d72cf6da32cea8c4a0cb138036a6f897346ec4c4210c070f0f270d6d3a12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page