class Qdrant::Api::HnswConfigDiff

Included Modules

Defined in:

qdrant-api/models/hnsw_config_diff.cr

Constructors

Instance Method Summary

Macros inherited from module Qdrant::Api::Validation

validates(name, klass, nilable, **rules) validates

Instance methods inherited from module Qdrant::Api::Serializable

eql?(other) eql?, to_body : Hash(String, JSON::Any) to_body, to_h : Hash(String, JSON::Any) to_h, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(m : Int32 | Nil = nil, ef_construct : Int32 | Nil = nil, full_scan_threshold : Int32 | Nil = nil, max_indexing_threads : Int32 | Nil = nil, on_disk : Bool | Nil = nil, payload_m : Int32 | Nil = nil, inline_storage : Bool | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def ef_construct : Int32 | Nil #

Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.


[View source]
def ef_construct=(value : Int32 | Nil) #

Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.


[View source]
def ef_construct_validation_error(value) : String | Nil #

[View source]
def full_scan_threshold : Int32 | Nil #

Minimal size threshold (in KiloBytes) below which full-scan is preferred over HNSW search. This measures the total size of vectors being queried against. When the maximum estimated amount of points that a condition satisfies is smaller than full_scan_threshold_kb, the query planner will use full-scan search instead of HNSW index traversal for better performance. Note: 1Kb = 1 vector of size 256


[View source]
def full_scan_threshold=(value : Int32 | Nil) #

Minimal size threshold (in KiloBytes) below which full-scan is preferred over HNSW search. This measures the total size of vectors being queried against. When the maximum estimated amount of points that a condition satisfies is smaller than full_scan_threshold_kb, the query planner will use full-scan search instead of HNSW index traversal for better performance. Note: 1Kb = 1 vector of size 256


[View source]
def full_scan_threshold_validation_error(value) : String | Nil #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def inline_storage : Bool | Nil #

Store copies of original and quantized vectors within the HNSW index file. Default: false. Enabling this option will trade the search speed for disk usage by reducing amount of random seeks during the search. Requires quantized vectors to be enabled. Multi-vectors are not supported.


[View source]
def inline_storage=(inline_storage : Bool | Nil) #

Store copies of original and quantized vectors within the HNSW index file. Default: false. Enabling this option will trade the search speed for disk usage by reducing amount of random seeks during the search. Requires quantized vectors to be enabled. Multi-vectors are not supported.


[View source]
def list_invalid_properties #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def m : Int32 | Nil #

Optional properties Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.


[View source]
def m=(value : Int32 | Nil) #

Optional properties Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.


[View source]
def m_validation_error(value) : String | Nil #

[View source]
def max_indexing_threads : Int32 | Nil #

Number of parallel threads used for background index building. If 0 - automatically select from 8 to 16. Best to keep between 8 and 16 to prevent likelihood of building broken/inefficient HNSW graphs. On small CPUs, less threads are used.


[View source]
def max_indexing_threads=(value : Int32 | Nil) #

Number of parallel threads used for background index building. If 0 - automatically select from 8 to 16. Best to keep between 8 and 16 to prevent likelihood of building broken/inefficient HNSW graphs. On small CPUs, less threads are used.


[View source]
def max_indexing_threads_validation_error(value) : String | Nil #

[View source]
def on_disk : Bool | Nil #

Store HNSW index on disk. If set to false, the index will be stored in RAM. Default: false


[View source]
def on_disk=(on_disk : Bool | Nil) #

Store HNSW index on disk. If set to false, the index will be stored in RAM. Default: false


[View source]
def payload_m : Int32 | Nil #

Custom M param for additional payload-aware HNSW links. If not set, default M will be used.


[View source]
def payload_m=(value : Int32 | Nil) #

Custom M param for additional payload-aware HNSW links. If not set, default M will be used.


[View source]
def payload_m_validation_error(value) : String | Nil #

[View source]
def valid? #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]