Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Arcana::AI::Embed::Result
Inherits
Struct
<
Value
<
Object
Constructors
new
(embeddings :
Array
(
Array
(
Float64
)), token_counts :
Array
(
Int32
) = [] of
Int32
, total_tokens :
Int32
= 0, model :
String
= "", provider :
String
= "", raw_request :
String
= "", raw_response :
String
= "")
Source
Instance methods
dimensions
Source
embedding
Convenience accessor for single-text embeddings.
Source
embeddings
Source
embeddings=
(embeddings :
Array
(
Array
(
Float64
)))
Source
model
Source
model=
(model :
String
)
Source
provider
Source
provider=
(provider :
String
)
Source
raw_request
Source
raw_request=
(raw_request :
String
)
Source
raw_response
Source
raw_response=
(raw_response :
String
)
Source
token_counts
Source
token_counts=
(token_counts :
Array
(
Int32
))
Source
total_tokens
Source
total_tokens=
(total_tokens :
Int32
)
Source