Share via


VectorStores.CreateVectorStoreFileBatch Method

Definition

Create a vector store file batch.

public virtual Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch> CreateVectorStoreFileBatch(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 CreateVectorStoreFileBatch : string * seq<string> * seq<Azure.AI.Agents.Persistent.VectorStoreDataSource> * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch>
override this.CreateVectorStoreFileBatch : string * seq<string> * seq<Azure.AI.Agents.Persistent.VectorStoreDataSource> * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFileBatch>
Public Overridable Function CreateVectorStoreFileBatch (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 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