Liking cljdoc? Tell your friends :D

hive-chroma.store

ChromaDB implementation of IMemoryStore protocol.

Wraps existing hive-chroma.core functions into protocol methods. This is Phase 1 of vectordb abstraction - enabling pluggable backends later (e.g., Milvus, DataScript-for-testing).

DDD: Repository pattern - ChromaMemoryStore is the Chroma aggregate adapter.

ChromaDB implementation of IMemoryStore protocol.

Wraps existing hive-chroma.core functions into protocol methods.
This is Phase 1 of vectordb abstraction - enabling pluggable backends
later (e.g., Milvus, DataScript-for-testing).

DDD: Repository pattern - ChromaMemoryStore is the Chroma aggregate adapter.
raw docstring

capabilitiesclj

What callers may rely on beyond the IMemoryStore port, declared under :capabilities in store-status (the hive-spi.memory.decorate contract).

:embed-text an entry's transient :embed-text is embedded in place of the document built from its :content, and is never persisted (chroma.crud/strip-transient). A decorator that changes :content at rest (hive-knowledge's seal encrypts it) hands the store the text it may index this way; without it the collection would index ciphertext.

What callers may rely on beyond the IMemoryStore port, declared under
:capabilities in store-status (the hive-spi.memory.decorate contract).

:embed-text  an entry's transient :embed-text is embedded in place of the
             document built from its :content, and is never persisted
             (chroma.crud/strip-transient). A decorator that changes
             :content at rest (hive-knowledge's seal encrypts it) hands the
             store the text it may index this way; without it the
             collection would index ciphertext.
sourceraw docstring

create-storeclj

(create-store)
(create-store opts)

Create a new Chroma-backed memory store.

Options (optional, also configurable via connect!): :host - Chroma server host (default: localhost) :port - Chroma server port (default: 8000) :collection-name - Collection name (default: hive-mcp-memory)

Returns an IMemoryStore implementation.

Example: (def store (create-store)) (proto/connect! store {:host "localhost" :port 8000}) (proto/set-store! store)

Create a new Chroma-backed memory store.

Options (optional, also configurable via connect!):
  :host            - Chroma server host (default: localhost)
  :port            - Chroma server port (default: 8000)
  :collection-name - Collection name (default: hive-mcp-memory)

Returns an IMemoryStore implementation.

Example:
  (def store (create-store))
  (proto/connect! store {:host "localhost" :port 8000})
  (proto/set-store! store)
sourceraw docstring

field-keyclj

(field-key field)

Entry key for an :output-fields name. Shared callers (catchup bundle and hierarchy) pass Milvus column names such as "project_id"; Chroma entries carry kebab keys such as :project-id, so underscores map to hyphens. Total: a value that is not a string, keyword or symbol is read through str.

Entry key for an :output-fields name. Shared callers (catchup bundle and
hierarchy) pass Milvus column names such as "project_id"; Chroma entries
carry kebab keys such as :project-id, so underscores map to hyphens.
Total: a value that is not a string, keyword or symbol is read through str.
sourceraw docstring

hit->entryclj

(hit->entry hit)

A Chroma search hit as the entry map the IMemoryStore port promises. The vendor answers {:id :document :metadata :distance ...} with every entry field (:type, :project-id, :tags, ...) nested under :metadata; the port's readers, and the hive-spi conformance filter case, read them top level. The raw hit keys (:metadata, :document, :distance) are kept so callers that read the vendor shape are unaffected.

A Chroma search hit as the entry map the IMemoryStore port promises.
The vendor answers {:id :document :metadata :distance ...} with every entry
field (:type, :project-id, :tags, ...) nested under :metadata; the port's
readers, and the hive-spi conformance filter case, read them top level.
The raw hit keys (:metadata, :document, :distance) are kept so callers that
read the vendor shape are unaffected.
sourceraw docstring

project-fieldsclj

(project-fields entries output-fields)

ENTRIES trimmed to OUTPUT-FIELDS (entry-key names as strings or keywords, kebab-case or Milvus snake_case column names, see field-key). :id always survives, so a projected row stays addressable. ENTRIES are returned unchanged when OUTPUT-FIELDS is empty.

ENTRIES trimmed to OUTPUT-FIELDS (entry-key names as strings or keywords,
kebab-case or Milvus snake_case column names, see field-key). :id always
survives, so a projected row stays addressable. ENTRIES are returned
unchanged when OUTPUT-FIELDS is empty.
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