HnswFlags

public enum HnswFlags : UInt32

Flags as a part of the HNSW configuration.

  • T

    Undocumented

    Declaration

    Swift

    public typealias T = UInt32
  • Undocumented

    Declaration

    Swift

    public static var byteSize: Int { get }
  • Undocumented

    Declaration

    Swift

    public var value: UInt32 { get }
  • Enables debug logs.

    Declaration

    Swift

    case debugLogs = 1
  • Enables “high volume” debug logs, e.g. individual gets/puts.

    Declaration

    Swift

    case debugLogsDetailed = 2
  • Padding for SIMD is enabled by default, which uses more memory but may be faster. This flag turns it off.

    Declaration

    Swift

    case vectorCacheSimdPaddingOff = 4
  • If the speed of removing nodes becomes a concern in your use case, you can speed it up by setting this flag. By default, repairing the graph after node removals creates more connections to improve the graph’s quality. The extra costs for this are relatively low (e.g. vs. regular indexing), and thus the default is recommended.

    Declaration

    Swift

    case reparationLimitCandidates = 8
  • max

    Undocumented

    Declaration

    Swift

    public static var max: HnswFlags { get }
  • min

    Undocumented

    Declaration

    Swift

    public static var min: HnswFlags { get }