class
Qdrant::Api::VectorNameConfig
- Qdrant::Api::VectorNameConfig
- Reference
- Object
Overview
Configuration for creating a new named vector. Contains only the immutable properties that define a vector space. Storage type, index, and quantization are determined automatically based on the segment type and can be configured separately later. Example JSON for a dense vector: json { \"dense\": { \"size\": 768, \"distance\": \"Cosine\" } } Example JSON for a sparse vector: json { \"sparse\": { \"modifier\": \"Idf\" } }
VectorNameConfig (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_name_config.crConstructors
- .from_json(string_or_io) : self
- .from_json_any(data : JSON::Any) : self
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(value : DenseVectorNameConfig)
- .new(value : SparseVectorNameConfig)
- .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 : Qdrant::Api::DenseVectorNameConfig | Qdrant::Api::SparseVectorNameConfig