Skip to content

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 ​

NameDescription
cancellationTokenA token used to cancel the operation.
textsThe passage texts.

Returns ​

One embedding result per input text.