Every HOST service the Chroma backend consumes, in one place.
hive-chroma depends on hive-spi and never on its host by name: not at
compile time, and not by resolving host symbols at runtime. The host
publishes what a vector-store backend needs as capability -> fn through
hive-spi.vector.host-services (hive-mcp does it in
hive-mcp.embeddings.host-services), and each fn below calls through that
registry at CALL time. The pure embedding-space layer needs no host at all
and comes straight from hive-spi.embeddings.space.
Every namespace here loads with no host, and each call site declares the degraded value it expects when the host published nothing:
Every HOST service the Chroma backend consumes, in one place.
hive-chroma depends on hive-spi and never on its host by name: not at
compile time, and not by resolving host symbols at runtime. The host
publishes what a vector-store backend needs as capability -> fn through
`hive-spi.vector.host-services` (hive-mcp does it in
hive-mcp.embeddings.host-services), and each fn below calls through that
registry at CALL time. The pure embedding-space layer needs no host at all
and comes straight from `hive-spi.embeddings.space`.
Every namespace here loads with no host, and each call site declares the
degraded value it expects when the host published nothing:
- a lookup (provider, route, space, config value) answers nil,
- a predicate answers false,
- a pure shaping helper falls back to the identity of its input,
- an embed call or the embedding guard THROWS, because a write or a
search that silently skipped its vector would store or answer garbage.(consumed-capabilities)Every host capability this backend asks for, as a set. Each must be a key
of hive-spi.vector.host-services/catalog.
Every host capability this backend asks for, as a set. Each must be a key of `hive-spi.vector.host-services/catalog`.
(install-vector-store! store)Install STORE as the host's vector-collection store when the host publishes its store slot and no store is installed yet. Answers :installed, :kept (one was already installed; an addon never overrides another backend) or :host-absent.
Install STORE as the host's vector-collection store when the host publishes its store slot and no store is installed yet. Answers :installed, :kept (one was already installed; an addon never overrides another backend) or :host-absent.
(lane)The caller's current embedding lane, or nil when the host published none.
The caller's current embedding lane, or nil when the host published none.
(process-gate)The host's process-wide embedding gate, or nil when the host published none.
The host's process-wide embedding gate, or nil when the host published none.
(vector-port)The IVectorCollectionStore protocol the host consumes, else the published hive-spi.vector.ports one. Resolved at factory time.
The IVectorCollectionStore protocol the host consumes, else the published hive-spi.vector.ports one. Resolved at factory time.
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 |