class Qdrant::Api::Vector

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_json(string_or_io) : self #

[View source]
def self.from_json_any(data : JSON::Any) : self #

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

[View source]
def self.new(value : Array(Array(Float32))) #

[View source]
def self.new(value : Array(Float32)) #

[View source]
def self.new(value : Document) #

[View source]
def self.new(value : Image) #

[View source]
def self.new(value : InferenceObject) #

[View source]
def self.new(value : SparseVector) #

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

[View source]

Class Method Detail

def self.openapi_any_of #

List of classes defined in anyOf (OpenAPI v3)


[View source]

Instance Method Detail

def to_json(builder : JSON::Builder) #

[View source]
def to_yaml(builder : YAML::Nodes::Builder) #

[View source]
def value : Array(Array(Float32)) | Array(Float32) | Qdrant::Api::Document | Qdrant::Api::Image | Qdrant::Api::InferenceObject | Qdrant::Api::SparseVector #

[View source]