Local text-embedding inference for Clojure. Runs sentence-transformers ONNX exports on the JVM via ONNX Runtime.
deps.edn:
net.clojars.savya/embeddings-clj {:mvn/version "0.3.0"}
Leiningen:
[net.clojars.savya/embeddings-clj "0.3.0"]
clojure -M:test
The unit suite runs against tiny deterministic ONNX fixtures generated by
python3 dev/gen_fixture.py (requires pip install onnx; tests skip cleanly
when fixtures are absent, so the suite is green either way).
The opt-in integration suite exercises a real all-MiniLM-L6-v2 model:
./dev/fetch-model.sh # ~90MB download from HuggingFace
clojure -M:test --focus-meta :integration
Copyright © 2026 Savyasachi.
Distributed under the Eclipse Public License 2.0.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |