class
Qdrant::Api::Vector
- Qdrant::Api::Vector
- Reference
- Object
Overview
Vector Data Vectors can be described directly with values Or specified with source "objects" for inference Vector (OpenAPI anyOf): a value matching at least one of the listed schemas. Implemented as a thin wrapper that (de)serialises by trying each member in order (the first that parses wins), so it transparently handles scalar, array and object members.
Defined in:
qdrant-api/models/vector.crConstructors
- .from_json(string_or_io) : self
- .from_json_any(data : JSON::Any) : self
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(value : Array(Array(Float32)))
- .new(value : Array(Float32))
- .new(value : Document)
- .new(value : Image)
- .new(value : InferenceObject)
- .new(value : SparseVector)
- .new(pull : JSON::PullParser)
Class Method Summary
-
.openapi_any_of
List of classes defined in anyOf (OpenAPI v3)
Instance Method Summary
- #to_json(builder : JSON::Builder)
- #to_yaml(builder : YAML::Nodes::Builder)
- #value : Array(Array(Float32)) | Array(Float32) | Qdrant::Api::Document | Qdrant::Api::Image | Qdrant::Api::InferenceObject | Qdrant::Api::SparseVector
Constructor Detail
Class Method Detail
Instance Method Detail
def value : Array(Array(Float32)) | Array(Float32) | Qdrant::Api::Document | Qdrant::Api::Image | Qdrant::Api::InferenceObject | Qdrant::Api::SparseVector
#