Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Arcana::AI::Embed::Request
Inherits
Struct
<
Value
<
Object
Constructors
new
(texts :
Array
(
String
), model :
String
= "", dimensions :
Int32
|
Nil
= nil, input_type :
String
|
Nil
= nil, trace_tags :
Hash
(
String
,
String
) |
Nil
= nil)
Source
single
(text :
String
, model :
String
= "", dimensions :
Int32
|
Nil
= nil) : self
Convenience for embedding a single text.
Source
Instance methods
dimensions
Source
dimensions=
(dimensions :
Int32
|
Nil
)
Source
input_type
Source
input_type=
(input_type :
String
|
Nil
)
Source
model
Source
model=
(model :
String
)
Source
texts
Source
texts=
(texts :
Array
(
String
))
Source
trace_tags
Source
trace_tags=
(trace_tags :
Hash
(
String
,
String
) |
Nil
)
Source