Companion

object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun search(scorer: RandomVectorScorer, knnCollector: KnnCollector, graph: HnswGraph, acceptOrds: Bits)
fun search(scorer: RandomVectorScorer, topK: Int, graph: OnHeapHnswGraph, acceptOrds: Bits, visitedLimit: Int): KnnCollector

Search OnHeapHnswGraph, this method is thread safe.

fun search(scorer: RandomVectorScorer, knnCollector: KnnCollector, graph: HnswGraph, acceptOrds: Bits?, filteredDocCount: Int)

Searches the HNSW graph for the nearest neighbors of a query vector. If entry points are directly provided via the knnCollector, then the search will be initialized at those points. Otherwise, the search will discover the best entry point per the normal HNSW search algorithm.