A source of text embeddings with a fixed width.
A source of text embeddings with a fixed width.
(dimension provider)(embed provider text)(embed provider text opts)(embed-batch provider texts)(embed-batch provider texts opts)(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.
(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.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 |