VectorStoreWriter<T>.WriteAsync Metod

Definition

Skriver segment asynkront.

public override System.Threading.Tasks.Task WriteAsync(System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<T>> chunks, System.Threading.CancellationToken cancellationToken = default);
override this.WriteAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.DataIngestion.IngestionChunk<'T>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (chunks As IAsyncEnumerable(Of IngestionChunk(Of T)), Optional cancellationToken As CancellationToken = Nothing) As Task

Parametrar

chunks
IAsyncEnumerable<IngestionChunk<T>>

Segmenten som ska skrivas.

cancellationToken
CancellationToken

Token som ska övervakas för annulleringsbegäranden.

Returer

En uppgift som representerar den asynkrona skrivåtgärden.

Gäller för