struct VoyageAI::EmbeddingRequest
- VoyageAI::EmbeddingRequest
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
voyage_ai.crConstructors
- .new(input : Array(String), model : String, input_type : VoyageAI::InputType | Nil = nil, truncation : Bool | Nil = nil, encoding_format : VoyageAI::EncodingFormat | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #encoding_format : EncodingFormat | Nil
- #input : Array(String)
- #input_type : InputType | Nil
- #model : String
- #truncation : Bool | Nil
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)
#