Liking cljdoc? Tell your friends :D

embeddings.core


closeclj

(close model)
source

dimensionclj

(dimension model)
source

embedclj

(embed model text)
(embed model text opts)
source

embed-batchclj

(embed-batch model texts)
(embed-batch model texts {:keys [prefix]})
source

load-modelclj

(load-model model-dir)
(load-model model-dir opts)

Load a local model directory containing model.onnx and tokenizer.json.

Options include :pooling (:mean, :mean-sqrt-len, :cls, :max), :normalize?, :max-length, and :execution-providers, a vector of provider keywords or maps such as [:coreml], [:cuda], or [{:provider :cuda :device-id 0}]. CPU remains the implicit fallback when execution providers are absent or empty.

Load a local model directory containing `model.onnx` and `tokenizer.json`.

Options include `:pooling` (`:mean`, `:mean-sqrt-len`, `:cls`, `:max`),
`:normalize?`, `:max-length`, and `:execution-providers`, a vector of
provider keywords or maps such as `[:coreml]`, `[:cuda]`, or
`[{:provider :cuda :device-id 0}]`. CPU remains the implicit fallback when
execution providers are absent or empty.
sourceraw docstring

with-modelcljmacro

(with-model [sym dir opts] & body)
source

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