Semantic search operations for Chroma memory entries.
Semantic search operations for Chroma memory entries.
(build-where-clause {:keys [type project-ids]})Build Chroma where clause from type and project-id filters. Pure function — no IO.
Build Chroma where clause from type and project-id filters. Pure function — no IO.
(build-where-document-clause exclude-tags)Build Chroma where-document clause for tag exclusion. Uses document-level $not_contains since tags are embedded in document text. Pure function — no IO.
Build Chroma where-document clause for tag exclusion. Uses document-level $not_contains since tags are embedded in document text. Pure function — no IO.
A search result record as the vendor returns it.
A search result record as the vendor returns it.
Trailing keyword options (& {:keys ...}): key/value pairs, or one map.
Trailing keyword options (`& {:keys ...}`): key/value pairs, or one map.
One document-level tag exclusion.
One document-level tag exclusion.
(search-by-id id)Get a specific entry by ID from Chroma.
Get a specific entry by ID from Chroma.
(search-federated query-text
&
{:keys [limit type project-ids exclude-tags] :or {limit 10}})Search default memory collection + all ingest collections. Merges results, deduplicates by ID, re-ranks by distance (ascending). Returns unified result vector matching search-similar output shape.
Search default memory collection + all ingest collections. Merges results, deduplicates by ID, re-ranks by distance (ascending). Returns unified result vector matching search-similar output shape.
(search-similar query-text
&
{:keys [limit type project-ids exclude-tags query-template]
:or {limit 10}})Search for memory entries similar to the query text. Routes to type-specific collection when type is provided. Fans out to all collections when type is nil. :exclude-tags — seq of tags to exclude via where-document $not_contains. :query-template overrides embeddings.query-template (:raw by default).
Search for memory entries similar to the query text. Routes to type-specific collection when type is provided. Fans out to all collections when type is nil. :exclude-tags — seq of tags to exclude via where-document $not_contains. :query-template overrides embeddings.query-template (:raw by default).
Tags or project ids as callers hold them: any sequential or a set.
Tags or project ids as callers hold them: any sequential or a set.
A Chroma metadata where clause, nil when no filter applies.
A Chroma metadata where clause, nil when no filter applies.
Document-level exclusion: one $not_contains, or an $and of several.
Document-level exclusion: one $not_contains, or an $and of several.
The filters build-where-clause reads.
The filters build-where-clause reads.
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 |