Liking cljdoc? Tell your friends :D

hive-milvus.embed.port

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
raw docstring

collection-backed?clj

(collection-backed? collection-name)
source

collection-namesclj

(collection-names)
source

configured-collection-namesclj

(configured-collection-names)
source

currentclj

(current)

The currently-installed IEmbedder (NoopEmbedder until the host injects).

The currently-installed IEmbedder (NoopEmbedder until the host injects).
sourceraw docstring

dimension-for-collectionclj

(dimension-for-collection collection-name)
source

embed-entryclj

(embed-entry entry collection-name content)
source

embed-textclj

(embed-text collection-name text)
source

Embedderclj

source

IEmbeddercljprotocol

-provider-available-for?clj

(-provider-available-for? this collection-name)

-configured-collection-namesclj

(-configured-collection-names this)

-dimension-for-collectionclj

(-dimension-for-collection this collection-name)

-no-embed-type?clj

(-no-embed-type? this memory-type)

-routing-for-typeclj

(-routing-for-type this memory-type)

-embed-textclj

(-embed-text this collection-name text)

-routing-for-type+sizeclj

(-routing-for-type+size this memory-type content)

-collection-namesclj

(-collection-names this)

-embed-entryclj

(-embed-entry this entry collection-name content)

-collection-backed?clj

(-collection-backed? this collection-name)
source

no-embed-type?clj

(no-embed-type? memory-type)
source

provider-available-for?clj

(provider-available-for? collection-name)
source

reset-embedder!clj

(reset-embedder!)
source

routing-for-typeclj

(routing-for-type memory-type)
source

routing-for-type+sizeclj

(routing-for-type+size memory-type content)
source

set-embedder!clj

(set-embedder! embedder)

Install embedder (an IEmbedder) as the process-wide embedding boundary.

Install `embedder` (an IEmbedder) as the process-wide embedding boundary.
sourceraw docstring

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