Appearance
EmbedPassagesAsync Method
Definition
- Namespace:
JASE.Embeddings - Assembly:
JASE.Embeddings.dll
Task<IReadOnlyList<EmbeddingResult>> EmbedPassagesAsync(IReadOnlyList<string> texts, CancellationToken cancellationToken = null)
csharp
Task<IReadOnlyList<EmbeddingResult>> EmbedPassagesAsync(IReadOnlyList<string> texts, CancellationToken cancellationToken = null)Embeds multiple passages in one provider call when supported.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token used to cancel the operation. |
texts | The passage texts. |
Returns
One embedding result per input text.