Liking cljdoc? Tell your friends :D

embeddings-clj

Clojars Project cljdoc test

Local text-embedding inference for Clojure. Runs sentence-transformers ONNX exports on the JVM via ONNX Runtime.

Stack

Clojure ONNX Runtime tokenizers-clj

Installation

deps.edn:

net.clojars.savya/embeddings-clj {:mvn/version "0.3.0"}

Leiningen:

[net.clojars.savya/embeddings-clj "0.3.0"]

Documentation

Running tests

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

License

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

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close