module

Crig::Client::EmbeddingsClient(M)

Shared client mixin for embedding-capable providers. The builder helpers here are the most ergonomic way to construct embedding jobs.

Instance methods

embedding_model(model : String) : M
Source
embedding_model_with_ndims(model : String, ndims : Int32) : M
Source
embeddings(type : D.class, model : String) : Crig::Embeddings::EmptyEmbeddingsBuilder(M) forall D

Typed overload kept for parity with the Rust method-level generic call sites.

Source

Start an embeddings builder from the provider's default dimensions for a model.

Source
embeddings_with_ndims(type : D.class, model : String, ndims : Int32) : Crig::Embeddings::EmptyEmbeddingsBuilder(M) forall D

Typed overload kept for parity with the Rust method-level generic call sites.

Source
embeddings_with_ndims(model : String, ndims : Int32) : Crig::Embeddings::EmptyEmbeddingsBuilder(M)

Start an embeddings builder with explicit dimensions.

Source