struct

Crig::Providers::OpenAI::EmbeddingModel

Inherits Crig::Embeddings::EmbeddingModel < Struct < Value < Object

Constants

MAX_DOCUMENTS = 1024

Constructors

make(client : Client, model : String, ndims : Int32 | Nil) : self
Source
new(client : Client, model : String, ndims : Int32, encoding_format : EncodingFormat | Nil = nil, user : String | Nil = nil)
Source
with_encoding_format(client : Client, model : String, ndims : Int32, encoding_format : EncodingFormat) : self
Source
with_model(client : Client, model : String, ndims : Int32) : self
Source

Instance methods

client
Source
encoding_format(encoding_format : EncodingFormat) : self
Source
encoding_format
Source
max_documents
Source
model
Source
ndims
Source
user(user : String) : self
Source
user
Source