Appearance
EmbeddingService Class
Definition
Default IEmbeddingService implementation that delegates to a configured IEmbeddingProvider.
- Namespace:
JASE.Embeddings - Assembly:
JASE.Embeddings.dll
Constructors
| Name | Description |
|---|---|
EmbeddingService(IEmbeddingProvider provider) | Initializes a new EmbeddingService. |
Properties
| Name | Description |
|---|---|
Provider | Gets the active provider metadata. |
Methods
| Name | Description |
|---|---|
Task<EmbeddingResult> EmbedPassageAsync(string text, CancellationToken cancellationToken = null) | Embeds indexed content such as a ticket chunk. |
Task<IReadOnlyList<EmbeddingResult>> EmbedPassagesAsync(IReadOnlyList<string> texts, CancellationToken cancellationToken = null) | Embeds multiple passages in one provider call when supported. |
Task<EmbeddingResult> EmbedQueryAsync(string text, CancellationToken cancellationToken = null) | Embeds a search query phrase. |