llama-index-embeddings-kjarni
LlamaIndex embeddings with Kjarni: local models in your own process, with no PyTorch, no ONNX Runtime, no GPU and no server.
Kjarni produces the same vectors as sentence-transformers for the same model. The model downloads once on first use and is cached; after that everything works offline.
Install
pip install llama-index-embeddings-kjarni
Usage
from llama_index.core import Settings, VectorStoreIndex, SimpleDirectoryReader
from llama_index.embeddings.kjarni import KjarniEmbedding
Settings.embed_model = KjarniEmbedding(model_name="minilm-l6-v2")
documents = SimpleDirectoryReader("./data").load_data()
index = VectorStoreIndex.from_documents(documents)
nodes = index.as_retriever().retrieve("What does the contract say about renewal?")
| Setting | Default | |
|---|---|---|
model_name |
"minilm-l6-v2" |
Any Kjarni embedding model, e.g. mpnet-base-v2, bge-m3 (multilingual). kjarni model list shows all. |
device |
"cpu" |
"gpu" runs on Vulkan, Metal or DirectX 12. |
embed_batch_size |
32 |
Texts per call into the engine. |
query_prefix, text_prefix |
"" |
For models trained with prefixes, e.g. "query: " and "passage: " for E5. |
cache_dir |
Kjarni's cache | Where models are stored. |
The model loads on first use, so constructing KjarniEmbedding is free.
License
MIT
llama-index-embeddings-kjarni
Metadata
Release files for llama-index-embeddings-kjarni 0.1.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_kjarni-0.1.0.tar.gz | 4.8 kB | Without provenance | Details for llama_index_embeddings_kjarni-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_embeddings_kjarni-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_embeddings_kjarni-0.1.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / llama_index_embeddings_kjarni-0.1.0.tar.gz
| Download URL | llama_index_embeddings_kjarni-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93944f695539002a8749a6c79464148ee82fbedb3fa1ee44cd916a86c9a856e4
|
|
BLAKE2b-256 checksum How to use checksums |
16e25434555f78f2b35af1bc34b85dd46a13cd3fcb34fb8c09cae17dc9a927fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / llama_index_embeddings_kjarni-0.1.0-py3-none-any.whl
| Download URL | llama_index_embeddings_kjarni-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbabfa0ffe340ea025c3965ce526a90f12af82cae4c8df947d6f3e8a737e06ea
|
|
BLAKE2b-256 checksum How to use checksums |
3668f6571a790ead400a9313b719aaf16ed7afea162c245119218c4f6961c7ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for llama-index-embeddings-kjarni 0.1.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.