Appearance
EmbedBatchAsync Method
Definition
- Namespace:
JASE.Embeddings - Assembly:
JASE.Embeddings.dll
Task<IReadOnlyList<EmbeddingResult>> EmbedBatchAsync(IReadOnlyList<string> texts, EmbeddingRole role, CancellationToken cancellationToken = null)
csharp
Task<IReadOnlyList<EmbeddingResult>> EmbedBatchAsync(IReadOnlyList<string> texts, EmbeddingRole role, CancellationToken cancellationToken = null)Embeds multiple text values with the same role.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token used to cancel the operation. |
role | The role shared by all texts. |
texts | The texts to embed. |
Returns
One embedding result per input text, in the same order.