Liking cljdoc? Tell your friends :D

embeddings.core


closeclj

(close model)
source

EmbeddingProvidercljprotocol

A source of text embeddings with a fixed width.

A source of text embeddings with a fixed width.

dimensionclj

(dimension provider)

embedclj

(embed provider text)
(embed provider text opts)

embed-batchclj

(embed-batch provider texts)
(embed-batch provider texts opts)
sourceraw docstring

execution-provider-discoveryclj

(execution-provider-discovery)

Return runtime-available, configured, and unresolved ONNX providers.

:available is obtained from ONNX Runtime's native runtime rather than inferred from the Java enum, so it reflects the artifact and platform in use.

Return runtime-available, configured, and unresolved ONNX providers.

`:available` is obtained from ONNX Runtime's native runtime rather than
inferred from the Java enum, so it reflects the artifact and platform in
use.
sourceraw docstring

load-modelclj

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

Load a local model directory that contains 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}]. Session performance options include :intra-op-num-threads, :inter-op-num-threads, :graph-optimization-level (:no-opt, :basic, :extended, :layout, or :all), :memory-pattern-optimization?, :cpu-arena-allocator?, :profiling-output-path, and :session-log-level (:verbose, :info, :warning, :error, or :fatal). CPU is the implicit fallback if execution providers are absent or empty.

Load a local model directory that contains `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}]`. Session performance options include
`:intra-op-num-threads`, `:inter-op-num-threads`,
`:graph-optimization-level` (`:no-opt`, `:basic`, `:extended`, `:layout`,
or `:all`), `:memory-pattern-optimization?`, `:cpu-arena-allocator?`,
`:profiling-output-path`, and `:session-log-level` (`:verbose`, `:info`,
`:warning`, `:error`, or `:fatal`). CPU is the implicit fallback if
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