The effects a search performs: embedding the query, and asking a collection for its nearest rows. Both are ports; both return Result.
The effects a search performs: embedding the query, and asking a collection for its nearest rows. Both are ports; both return Result.
(-embed this target text)r/ok query-vector in target's space | r/err :search/embed-failed.
r/ok query-vector in `target`'s space | r/err :search/embed-failed.
(-search this target query-vec filter-expr limit)r/ok rows (nearest first, at most limit) | r/err :search/milvus-query-failed.
Rows carry schema/default-read-fields — never the embedding.
r/ok rows (nearest first, at most `limit`) | r/err :search/milvus-query-failed. Rows carry `schema/default-read-fields` — never the embedding.
The metric the memory collections are indexed with. Read from the index that creates them so the query metric and the score→distance conversion below cannot drift from the index.
The metric the memory collections are indexed with. Read from the index that creates them so the query metric and the score→distance conversion below cannot drift from the index.
(score->distance metric s)Milvus reports a COSINE/IP index's proximity as a SIMILARITY (higher is nearer) and milvus-clj carries it under the :distance key. Every consumer of this pipeline — fusion's ascending rank, chroma's merge-and-rerank, proximum's 1/(1+d) — reads :distance as a distance (lower is nearer). Convert once, here, at the only place that knows the metric. L2 is already a distance.
Milvus reports a COSINE/IP index's proximity as a SIMILARITY (higher is nearer) and milvus-clj carries it under the :distance key. Every consumer of this pipeline — fusion's ascending rank, chroma's merge-and-rerank, proximum's 1/(1+d) — reads :distance as a distance (lower is nearer). Convert once, here, at the only place that knows the metric. L2 is already a distance.
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 |