llm-embed-onnx
Run embedding models using ONNX
This LLM plugin is a wrapper around onnx_embedding_models by Benjamin Anderson.
Installation
Install this plugin in the same environment as LLM.
llm install llm-embed-onnx
Usage
This plugin adds the following embedding models, which can be listed using llm embed-models:
onnx-bge-micro
onnx-gte-tiny
onnx-minilm-l6
onnx-minilm-l12
onnx-bge-small
onnx-bge-base
onnx-bge-large
You can run any of these models using llm embed command:
llm embed -m onnx-bge-micro -c "Example content"
This will output a 384 length JSON array of floating point numbers, starting:
[-0.03910085942622519, -0.0030843335461659795, 0.032797761260860724,
The first time you use any of these models the model will be downloaded to the llm_embed_onnx directory in your LLM data directory. On macOS this defaults to:
~/Library/Application Support/io.datasette.llm/llm_embed_onnx
For more on how to use these embedding models see the LLM embeddings documentation.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-embed-onnx
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for llm-embed-onnx 0.1
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 |
|---|---|---|---|---|
| llm-embed-onnx-0.1.tar.gz | 7.1 kB | Without provenance | Details for llm-embed-onnx-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_embed_onnx-0.1-py3-none-any.whl | Python 3 | none | any | Details for llm_embed_onnx-0.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / llm-embed-onnx-0.1.tar.gz
| Download URL | llm-embed-onnx-0.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b0a5ed0876193aad023a63a72a976daf4fb9250471d573c222a46c94cab819c
|
|
BLAKE2b-256 checksum How to use checksums |
3d341d5c0f5ed5c34a0ee04468d3e149c827280e97c08013fe48669b5e3ed100
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / llm_embed_onnx-0.1-py3-none-any.whl
| Download URL | llm_embed_onnx-0.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
946a9694f046f09965e12d481220dc8a146b0f6bbabe5f37457ebe2b2d4431f0
|
|
BLAKE2b-256 checksum How to use checksums |
4346f2c5df1d94e783874aa5db1bfbb80e88893dde198377a4fe501999baeec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for llm-embed-onnx 0.1
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.