class
Qdrant::Api::QueryRequest
- Qdrant::Api::QueryRequest
- Reference
- Object
Included Modules
- JSON::Serializable
- Qdrant::Api::Serializable
- Qdrant::Api::Validation
- YAML::Serializable
Defined in:
qdrant-api/models/query_request.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
-
.new(shard_key : ShardKeySelector | Nil = nil, prefetch : QueryRequestPrefetch | Nil = nil, query : QueryInterface | Nil = nil, using : String | Nil = nil, filter : Filter | Nil = nil, params : SearchParams | Nil = nil, score_threshold : Float32 | Nil = nil, limit : Int32 | Nil = nil, offset : Int32 | Nil = nil, with_vector : WithVector | Nil = nil, with_payload : WithPayloadInterface | Nil = nil, lookup_from : LookupLocation | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#filter : Filter | Nil
Filter conditions - return only those points that satisfy the specified conditions.
-
#filter=(filter : Filter | Nil)
Filter conditions - return only those points that satisfy the specified conditions.
-
#hash(hasher)
See
Object#hash(hasher) -
#limit : Int32 | Nil
Max number of points to return.
-
#limit=(value : Int32 | Nil)
Max number of points to return.
- #limit_validation_error(value) : String | Nil
-
#list_invalid_properties
Show invalid properties with the reasons.
-
#lookup_from : LookupLocation | Nil
The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector Note: the other collection vectors should have the same vector size as the 'using' vector in the current collection
-
#lookup_from=(lookup_from : LookupLocation | Nil)
The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector Note: the other collection vectors should have the same vector size as the 'using' vector in the current collection
-
#offset : Int32 | Nil
Offset of the result.
-
#offset=(value : Int32 | Nil)
Offset of the result.
- #offset_validation_error(value) : String | Nil
-
#params : SearchParams | Nil
Search params for when there is no prefetch
-
#params=(params : SearchParams | Nil)
Search params for when there is no prefetch
- #prefetch : QueryRequestPrefetch | Nil
- #prefetch=(prefetch : QueryRequestPrefetch | Nil)
-
#query : QueryInterface | Nil
Query to perform.
-
#query=(query : QueryInterface | Nil)
Query to perform.
-
#score_threshold : Float32 | Nil
Return points with scores better than this threshold.
-
#score_threshold=(score_threshold : Float32 | Nil)
Return points with scores better than this threshold.
-
#shard_key : ShardKeySelector | Nil
Optional properties
-
#shard_key=(shard_key : ShardKeySelector | Nil)
Optional properties
-
#using : String | Nil
Define which vector name to use for querying.
-
#using=(using : String | Nil)
Define which vector name to use for querying.
-
#valid?
Check to see if the all the properties in the model are valid @return true if the model is valid
-
#with_payload : WithPayloadInterface | Nil
Options for specifying which payload to include or not.
-
#with_payload=(with_payload : WithPayloadInterface | Nil)
Options for specifying which payload to include or not.
-
#with_vector : WithVector | Nil
Options for specifying which vectors to include into the response.
-
#with_vector=(with_vector : WithVector | Nil)
Options for specifying which vectors to include into the response.
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Filter conditions - return only those points that satisfy the specified conditions.
Filter conditions - return only those points that satisfy the specified conditions.
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector Note: the other collection vectors should have the same vector size as the 'using' vector in the current collection
The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector Note: the other collection vectors should have the same vector size as the 'using' vector in the current collection
Query to perform. If missing without prefetches, returns points ordered by their IDs.
Query to perform. If missing without prefetches, returns points ordered by their IDs.
Return points with scores better than this threshold.
Define which vector name to use for querying. If missing, the default vector is used.
Define which vector name to use for querying. If missing, the default vector is used.
Check to see if the all the properties in the model are valid @return true if the model is valid
Options for specifying which payload to include or not. Default is false.
Options for specifying which payload to include or not. Default is false.
Options for specifying which vectors to include into the response. Default is false.
Options for specifying which vectors to include into the response. Default is false.