Share via


VectorStores.CreateVectorStoreFileBatchAsync Method

Definition

Create a vector store file batch.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch>> CreateVectorStoreFileBatchAsync(string vectorStoreId, System.Collections.Generic.IEnumerable<string> fileIds = default, System.Collections.Generic.IEnumerable<Azure.AI.Agents.Persistent.VectorStoreDataSource> dataSources = default, Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy chunkingStrategy = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVectorStoreFileBatchAsync : string * seq<string> * seq<Azure.AI.Agents.Persistent.VectorStoreDataSource> * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch>>
override this.CreateVectorStoreFileBatchAsync : string * seq<string> * seq<Azure.AI.Agents.Persistent.VectorStoreDataSource> * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch>>
Public Overridable Function CreateVectorStoreFileBatchAsync (vectorStoreId As String, Optional fileIds As IEnumerable(Of String) = Nothing, Optional dataSources As IEnumerable(Of VectorStoreDataSource) = Nothing, Optional chunkingStrategy As VectorStoreChunkingStrategy = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VectorStoreFileBatch))

Parameters

vectorStoreId
String

Identifier of the vector store.

fileIds
IEnumerable<String>

List of file identifiers.

dataSources
IEnumerable<VectorStoreDataSource>

List of Azure assets.

chunkingStrategy
VectorStoreChunkingStrategy

The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vectorStoreId is null.

vectorStoreId is an empty string, and was expected to be non-empty.

Applies to