Skip to main content

llama-index embeddings AutoEmbeddings integration

Project description

LlamaIndex Embeddings Integration: AutoEmbeddings

AutoEmbeddings is a very useful module available within Chonkie that can initialize several different embeddings providers within one single interface:

  • OpenAI
  • Model2Vec
  • Cohere
  • Jina AI
  • Sentence Transformers

You can install it with:

pip install llama-index-embeddings-autoembeddings

And then you can use it in your scripts as:

from llama_index.embeddings.autoembeddings import ChonkieAutoEmbedding

embedder = ChonkieAutoEmbedding(model_name="all-MiniLM-L6-v2")
vector = embedder.get_text_embedding(
    "The quick brown fox jumps over the lazy dog."
)
print(vector)

If you want to use it with a non-local embeddings provider, you should declare the API key as an environment variable:

from llama_index.embeddings.autoembeddings import ChonkieAutoEmbedding
import os

os.environ["OPENAI_API_KEY"] = "YOUR-API-KEY"
embedder = ChonkieAutoEmbedding(model_name="text-embedding-3-large")
vector = embedder.get_text_embedding(
    "The quick brown fox jumps over the lazy dog."
)
print(vector)

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

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_autoembeddings-0.3.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_autoembeddings-0.3.0.tar.gz
  • Upload date:
  • Size: 3.9 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_autoembeddings-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6bffe5eb36a2b32958a00b0713d181c59e1567b1c5d8088e968ef25faaf5e734
MD5 3ea3ea68d1f378205d7f2e7def954c40
BLAKE2b-256 a6c0305feeaa54046fe3acef7754ddc202063929991e8d187735ed48f90a78b3

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_autoembeddings-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_embeddings_autoembeddings-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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_autoembeddings-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 115716ed8119b4aa939e1811fe40c6e8797b7d4a6f4f4b82143350c5fd6b4628
MD5 75ee1b2ed6c534a6c778ba84e239e3c6
BLAKE2b-256 eef905bb7d92324539d8bebb84e91e362605234d22338a0ae8816502abdb75ec

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