HnswIndex constructor

const HnswIndex({
  1. required int dimensions,
  2. int? neighborsPerNode,
  3. int? indexingSearchCount,
  4. HnswFlags? flags,
  5. VectorDistanceType? distanceType,
  6. double? reparationBacklinkProbability,
  7. int? vectorCacheHintSizeKB,
})

Parameters to configure HNSW-based approximate nearest neighbor (ANN) search. Some of the parameters can influence index construction and searching. Changing these values causes re-indexing, which can take a while due to the complex nature of HNSW.

Implementation

const HnswIndex(
    {required this.dimensions,
    this.neighborsPerNode,
    this.indexingSearchCount,
    this.flags,
    this.distanceType,
    this.reparationBacklinkProbability,
    this.vectorCacheHintSizeKB});