ModelHnswParams class

Describes HNSW index parameters for a float vector property.

Constructors

ModelHnswParams({int? dimensions, int? neighborsPerNode, int? indexingSearchCount, int? flags, int? distanceType, double? reparationBacklinkProbability, int? vectorCacheHintSizeKB, int? quantization, double? quantizationOversample, double? quantizationRescoreFactor, int? searchLevel, int? buildLevel, int? bruteForceMaxCandidates, int? filteredSearchMaxNodes, int? randomSeed})
Create an instance. For use from generated code.

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCodeString(String libraryPrefix) → String
Convert to code string for generated code.
toMap() → Map<String, Object>
Convert to string map to store in entity info cache file.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromAnnotation(HnswIndex hnsw) → ModelHnswParams
Create with values from an HnswIndex annotation.
fromMap(Map<String, dynamic>? map) → ModelHnswParams?
Create from a string map created by toMap.