Formula

data class Formula(val formula: Expression, val defaults: Map<String, JsonPrimitive> = emptyMap()) : QueryInterface

Rescore the candidates with an arithmetic formula instead of by vector distance.

Constructors

Link copied to clipboard
constructor(formula: Expression, defaults: Map<String, JsonPrimitive> = emptyMap())

Properties

Link copied to clipboard
val defaults: Map<String, JsonPrimitive>

values substituted for payload keys a candidate does not have. Without an entry, a missing key fails the query rather than being treated as zero.

Link copied to clipboard