Modality-agnostic embedding helpers. No deps on other easy-onnx sections.
Modality-agnostic embedding helpers. No deps on other easy-onnx sections.
(cosine-distance a b)Cosine distance (1 - similarity). Returns a value in [0, 2].
Cosine distance (1 - similarity). Returns a value in [0, 2].
(cosine-similarity a b)Cosine similarity between two float[] vectors. Returns a value in [-1, 1].
Cosine similarity between two float[] vectors. Returns a value in [-1, 1].
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 |