Liking cljdoc? Tell your friends :D

hive-chroma.gate

Concurrency gates for ChromaDB reads/writes and the shared embed port.

ChromaDB uses SQLite internally: read (4 permits) and write (1 permit) derefs retain their hive-weave gates. Embeddings use the ONE process-wide provider gate from embeddings.shared-gate, never a Chroma-only pool. Do not nest with-embedding-gate around a decorated provider call.

Concurrency gates for ChromaDB reads/writes and the shared embed port.

ChromaDB uses SQLite internally: read (4 permits) and write (1 permit)
derefs retain their hive-weave gates. Embeddings use the ONE process-wide
provider gate from embeddings.shared-gate, never a Chroma-only pool.
Do not nest with-embedding-gate around a decorated provider call.
raw docstring

deref-readclj

(deref-read promise)
(deref-read promise timeout-ms)

Deref a Chroma read promise with concurrency gate + timeout. Replaces: @(chroma/query ...) or @(chroma/get ...)

Deref a Chroma read promise with concurrency gate + timeout.
Replaces: @(chroma/query ...) or @(chroma/get ...)
sourceraw docstring

deref-writeclj

(deref-write promise)
(deref-write promise timeout-ms)

Deref a Chroma write promise with exclusive gate + timeout. Replaces: @(chroma/add ...) or @(chroma/delete ...)

Deref a Chroma write promise with exclusive gate + timeout.
Replaces: @(chroma/add ...) or @(chroma/delete ...)
sourceraw docstring

gate-statsclj

(gate-stats)

Current state of Chroma read/write and the one shared embedding provider gate. With no host the embed gate reports one permit, all available.

Current state of Chroma read/write and the one shared embedding provider
gate. With no host the embed gate reports one permit, all available.
sourceraw docstring

GateStatsclj

Diagnostic snapshot of the read, write and embed gates.

Diagnostic snapshot of the read, write and embed gates.
sourceraw docstring

Pendingclj

A deref-able vendor result (promise, future, deferred). Generates a realized promise.

A deref-able vendor result (promise, future, deferred). Generates a
realized promise.
sourceraw docstring

read-gateclj

source

with-embedding-gatecljmacro

(with-embedding-gate & body)

Legacy macro for callers outside the EmbeddingProvider port. Never wrap a decorated provider call with it: admission there already owns the permit. Admits through the host's ONE process-wide embedding gate; with no host, the body runs ungated (there is no provider to protect).

Legacy macro for callers outside the EmbeddingProvider port. Never wrap a
decorated provider call with it: admission there already owns the permit.
Admits through the host's ONE process-wide embedding gate; with no host,
the body runs ungated (there is no provider to protect).
sourceraw docstring

write-gateclj

source

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