Taal

VectorStoreWriter<T>.WriteAsync Methode

Definitie

Schrijft segmenten asynchroon.

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

Parameters

chunks
IAsyncEnumerable<IngestionChunk<T>>

De segmenten die moeten worden geschreven.

cancellationToken
CancellationToken

Het token dat moet worden gecontroleerd op annuleringsaanvragen.

Retouren

Een taak die de asynchrone schrijfbewerking vertegenwoordigt.

Van toepassing op