PROMOTE: pure functions that compute relocation routing decisions from an entry. No I/O, no embedder calls, no Milvus reads — purely data → Result.
Used by hive-milvus.relocate.pipeline/relocate-one to decide
whether an entry needs to move and where it should go before any
BOUNDARY effect fires.
PROMOTE: pure functions that compute relocation routing decisions from an entry. No I/O, no embedder calls, no Milvus reads — purely data → Result. Used by `hive-milvus.relocate.pipeline/relocate-one` to decide whether an entry needs to move and where it should go before any BOUNDARY effect fires.
(classify-relocation-need {:keys [src-coll target-coll] :as bundle})Compare :src-coll (where the entry currently lives) and
:target-coll (where it should live). Tag the bundle with
:relocation ∈ #{:no-op :move} so downstream pipeline stages can
short-circuit when no move is required.
Bundle in: {:src-coll s :target-coll s …} Bundle out: same plus {:relocation :no-op | :move}
Compare `:src-coll` (where the entry currently lives) and
`:target-coll` (where it should live). Tag the bundle with
`:relocation` ∈ #{:no-op :move} so downstream pipeline stages can
short-circuit when no move is required.
Bundle in: {:src-coll s :target-coll s …}
Bundle out: same plus {:relocation :no-op | :move}(compute-target {:keys [entry] :as bundle})Resolve the canonical target collection for entry per current
type-routing config. Pure data lookup against the in-memory
embedder config; no remote calls.
Bundle in: {:entry e} — :entry required Bundle out: {:entry e :target-coll s} — adds :target-coll string
Returns r/err :routing/no-target when routing can't resolve a
collection (rare — the fallback collection in store-routing always
resolves to hive_mcp_memory, so this only fires on completely
broken config).
Resolve the canonical target collection for `entry` per current
type-routing config. Pure data lookup against the in-memory
embedder config; no remote calls.
Bundle in: {:entry e} — :entry required
Bundle out: {:entry e :target-coll s} — adds :target-coll string
Returns r/err :routing/no-target when routing can't resolve a
collection (rare — the fallback collection in store-routing always
resolves to `hive_mcp_memory`, so this only fires on completely
broken config).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 |