Appearance
FakeEmbeddingProvider Class
Definition
Deterministic embedding provider used by unit tests and local development.
- Namespace:
JASE.Embeddings - Assembly:
JASE.Embeddings.dll
Constructors
| Name | Description |
|---|---|
FakeEmbeddingProvider(int dimensions = null, string modelId = null) | Initializes a new FakeEmbeddingProvider. |
Properties
| Name | Description |
|---|---|
Dimensions | Gets the dimensionality of vectors produced by this provider. |
ModelId | Gets the model identifier configured for this provider instance. |
ProviderName | Gets the stable provider name (for example, lm-kit). |
Methods
| Name | Description |
|---|---|
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. |