Skip to content

FakeEmbeddingProvider Class ​

Definition ​

Deterministic embedding provider used by unit tests and local development.

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

Constructors ​

NameDescription
FakeEmbeddingProvider(int dimensions = null, string modelId = null)Initializes a new FakeEmbeddingProvider.

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.