Skip to content

IEmbeddingProvider Interface ​

Definition ​

Produces embedding vectors for indexed content and search queries.

  • Namespace: JASE.Embeddings
  • Assembly: JASE.Embeddings.dll

Properties ​

NameDescription
DimensionsGets the dimensionality of vectors produced by this provider.
ModelIdGets the model identifier configured for this provider instance.
ProviderNameGets the stable provider name (for example, lm-kit).

Methods ​

NameDescription
Task<EmbeddingResult> EmbedAsync(EmbeddingRequest request, CancellationToken cancellationToken = null)Embeds a single text value.
Task<IReadOnlyList<EmbeddingResult>> EmbedBatchAsync(IReadOnlyList<string> texts, EmbeddingRole role, CancellationToken cancellationToken = null)Embeds multiple text values with the same role.