SearchParams

@Serializable
data class SearchParams(val hnswEf: Int? = null, val exact: Boolean? = null, val indexedOnly: Boolean? = null, val idf: IdfParams? = null, val quantization: QuantizationSearchParams? = null)

Fine-tuning for a search's accuracy/speed trade-off.

Constructors

Link copied to clipboard
constructor(hnswEf: Int? = null, exact: Boolean? = null, indexedOnly: Boolean? = null, idf: IdfParams? = null, quantization: QuantizationSearchParams? = null)

Properties

Link copied to clipboard
@SerialName(value = "exact")
val exact: Boolean?

Bypass the ANN index and search exactly.

Link copied to clipboard
@SerialName(value = "hnsw_ef")
val hnswEf: Int?

Size of the HNSW candidate list; higher is more accurate but slower.

Link copied to clipboard
@SerialName(value = "idf")
val idf: IdfParams?

Sparse-vector IDF statistics computed only over IdfParams.corpus.

Link copied to clipboard
@SerialName(value = "indexed_only")
val indexedOnly: Boolean?

Search only already-indexed segments.

Link copied to clipboard
@SerialName(value = "quantization")
val quantization: QuantizationSearchParams?

How a quantized collection is read. See QuantizationSearchParams.