Consumer-owned embedding port + injection slot.
IEmbedder is the boundary hive-milvus calls for every provider
lookup, routing decision and remote embed. The host injects a
concrete adapter via set-embedder! at boot; a no-op default keeps
the core loadable and testable standalone (no hive-mcp on the path).
Protocol methods are --prefixed and dispatch on an injected
instance; the public fns below deref the slot so call sites stay
free of (current) threading. Method contracts:
-embed-entry entry+collection+content => (r/ok vec) | (r/err :embedder/no-provider {…}) | (r/err :embedder/embed-failed {…}) -embed-text collection+text => vec (may throw) -routing-for-type[+size] memory-type[+content] => {:collection-name str :dimension int :max-tokens int :provider-key kw} | nil -no-embed-type? memory-type => bool -collection-names => seq of chroma-style names -dimension-for-collection collection => int | nil -configured-collection-names => seq of chroma-style names -provider-available-for? collection => bool -collection-backed? collection => bool
Consumer-owned embedding port + injection slot.
`IEmbedder` is the boundary hive-milvus calls for every provider
lookup, routing decision and remote embed. The host injects a
concrete adapter via `set-embedder!` at boot; a no-op default keeps
the core loadable and testable standalone (no hive-mcp on the path).
Protocol methods are `-`-prefixed and dispatch on an injected
instance; the public fns below deref the slot so call sites stay
free of `(current)` threading. Method contracts:
-embed-entry entry+collection+content => (r/ok vec) |
(r/err :embedder/no-provider {…}) |
(r/err :embedder/embed-failed {…})
-embed-text collection+text => vec (may throw)
-routing-for-type[+size] memory-type[+content] =>
{:collection-name str :dimension int
:max-tokens int :provider-key kw} | nil
-no-embed-type? memory-type => bool
-collection-names => seq of chroma-style names
-dimension-for-collection collection => int | nil
-configured-collection-names => seq of chroma-style names
-provider-available-for? collection => bool
-collection-backed? collection => bool(current)The currently-installed IEmbedder (NoopEmbedder until the host injects).
The currently-installed IEmbedder (NoopEmbedder until the host injects).
(-provider-available-for? this collection-name)(-configured-collection-names this)(-dimension-for-collection this collection-name)(-no-embed-type? this memory-type)(-routing-for-type this memory-type)(-embed-text this collection-name text)(-routing-for-type+size this memory-type content)(-collection-names this)(-embed-entry this entry collection-name content)(-collection-backed? this collection-name)(set-embedder! embedder)Install embedder (an IEmbedder) as the process-wide embedding boundary.
Install `embedder` (an IEmbedder) as the process-wide embedding boundary.
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 |