HnswGraphBuilder

Builder for HNSW graph. See HnswGraph for a gloss on the algorithm and the meaning of the hyper-parameters.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

A restricted, specialized knnCollector that can be used when building a graph.

Properties

Link copied to clipboard
open override val completedGraph: OnHeapHnswGraph
Link copied to clipboard
open override val graph: OnHeapHnswGraph

Functions

Link copied to clipboard
open override fun addGraphNode(node: Int)

Inserts a doc with vector value to the graph

Link copied to clipboard
open override fun build(maxOrd: Int): OnHeapHnswGraph

Adds all nodes to the graph up to the provided maxOrd.

Link copied to clipboard
fun finish()
Link copied to clipboard
open override fun setInfoStream(infoStream: InfoStream)

Set info-stream to output debugging information