Skip to main content

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)

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.4.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_autoembeddings-0.4.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for llama_index_embeddings_autoembeddings-0.4.0.tar.gz
Algorithm Hash digest
SHA256 634ad68789ca80d161cf6e53103cc049a4482225e852d0d3cc8620997bb1b828
MD5 8b580fd13a0f4d3e09ebeaa66aa70c0c
BLAKE2b-256 d7b950bd59a278319e5a7054162e0ae3a18ef26c4901309758ebd51832d83bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_embeddings_autoembeddings-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for llama_index_embeddings_autoembeddings-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdee99c255dad27692a469671928783b93dde1651554a40ad9e28ec38576e7e7
MD5 d165bc57affbe6ef0b315290ad344f1f
BLAKE2b-256 6d5501c9cd9bd7d0f6c19b6a8073d377aef886ea154d4425257ed67a9dcb329c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page