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.
Properties
- bruteForceMaxCandidates → int?
-
See HnswIndex.bruteForceMaxCandidates.
final
- buildLevel → int?
-
See HnswIndex.buildLevel.
final
- dimensions → int?
-
See HnswIndex.dimensions.
final
- distanceType → int?
-
See HnswIndex.distanceType.
final
- filteredSearchMaxNodes → int?
-
See HnswIndex.filteredSearchMaxNodes.
final
- flags → int?
-
See HnswIndex.flags.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexingSearchCount → int?
-
See HnswIndex.indexingSearchCount.
final
- neighborsPerNode → int?
-
See HnswIndex.neighborsPerNode.
final
- quantization → int?
-
See HnswIndex.quantization.
final
- quantizationOversample → double?
-
See HnswIndex.quantizationOversample.
final
- quantizationRescoreFactor → double?
-
See HnswIndex.quantizationRescoreFactor.
final
- randomSeed → int?
-
See HnswIndex.randomSeed.
final
- reparationBacklinkProbability → double?
-
See HnswIndex.reparationBacklinkProbability.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchLevel → int?
-
See HnswIndex.searchLevel.
final
- vectorCacheHintSizeKB → int?
-
See HnswIndex.vectorCacheHintSizeKB.
final
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.