SearchMatrixBuilder

DSL for the distance-matrix analytics endpoints (searchMatrixPairs / searchMatrixOffsets).

val pairs = qdrant.searchMatrixPairs("docs") {
sample = 100
limit = 5
filter { must { "lang" eq "en" } }
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var limit: Int?

How many nearest neighbours to keep per sampled point (server default 3, minimum 1).

Link copied to clipboard
var sample: Int?

How many points to sample and compute distances within (server default 10, minimum 2).

Link copied to clipboard

Named vector to compute distances on; null uses the collection's default vector.

Functions

Link copied to clipboard
fun filter(configure: FilterBuilder.() -> Unit)

Restrict the sampled points to those matching this filter.