struct VoyageAI::EmbeddingRequest

Included Modules

Defined in:

voyage_ai.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input : Array(String), model : String, input_type : VoyageAI::InputType | Nil = nil, truncation : Bool | Nil = nil, encoding_format : VoyageAI::EncodingFormat | Nil = nil) #

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

[View source]

Instance Method Detail

def encoding_format : EncodingFormat | Nil #

[View source]
def input : Array(String) #

[View source]
def input_type : InputType | Nil #

[View source]
def model : String #

[View source]
def truncation : Bool | Nil #

[View source]