Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
voyage_ai
main
VoyageAI
Client
Embedding
EmbeddingRequest
EncodingFormat
Error
InputType
List
Usage
Generated using Crystal 1.14.0
2024-11-26 08:20:54 UTC
class
VoyageAI::
Client
VoyageAI::Client
Reference
Object
Defined in:
voyage_ai.cr
Constructors
.new
(api_key : String =
ENV
[
"VOYAGE_AI_API_KEY"
])
Instance Method Summary
#embed
(input : Array(String), model : String, input_type : InputType | Nil =
nil
, truncation : Bool | Nil =
nil
)
Constructor Detail
def self.
new
(api_key : String =
ENV
[
"VOYAGE_AI_API_KEY"
])
#
[
View source
]
Instance Method Detail
def
embed
(input : Array(String), model : String, input_type :
InputType
| Nil =
nil
, truncation : Bool | Nil =
nil
)
#
[
View source
]