Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Providers::Doubleword::EmbeddingModel
Inherits
Crig::Embeddings::EmbeddingModel
<
Struct
<
Value
<
Object
Constants
MAX_DOCUMENTS = 1024
Constructors
make
(client :
Client
, model :
String
, dims :
Int32
|
Nil
) : self
Source
new
(client :
Client
, model :
String
, ndims :
Int32
= 0)
Source
Instance methods
client
Source
embed_texts
(texts :
Enumerable
(
String
)) :
Array
(
Crig::Embeddings::Embedding
)
Source
max_documents
Source
model
Source
ndims
Source