AI::Provider::EmbeddingModel::V3
Embedding Model V3 interface.
Implement this module to create an embedding model provider. This interface is specific to text embeddings.
Instance methods
do_embed(options : CallOptions) : Result
Generates a list of embeddings for the given input text.
The embeddings in the result are in the same order as the input values.
max_embeddings_per_call
Limit of how many embeddings can be generated in a single API call. Return nil for models that do not have a limit.