Liking cljdoc? Tell your friends :D

hive-milvus.store.search.boundary

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.
raw docstring

collection-embedderclj

(collection-embedder)
source

IQueryEmbeddercljprotocol

-embedclj

(-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.
source

IVectorSearchcljprotocol

(-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.
source

memory-metricclj

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.
sourceraw docstring

(milvus-vector-search)
source

score->distanceclj

(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.
sourceraw docstring

stub-embedderclj

(stub-embedder vec-by-space)
source

(stub-vector-search rows-by-collection)
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