Share via


AgentsClient.CreateVectorStoreFileBatch Method

Definition

Overloads

CreateVectorStoreFileBatch(String, RequestContent, RequestContext)

[Protocol Method] Create a vector store file batch.

CreateVectorStoreFileBatch(String, IEnumerable<String>, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken)

Create a vector store file batch.

CreateVectorStoreFileBatch(String, RequestContent, RequestContext)

Source:
AgentsClient.cs

[Protocol Method] Create a vector store file batch.

public virtual Azure.Response CreateVectorStoreFileBatch (string vectorStoreId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateVectorStoreFileBatch : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateVectorStoreFileBatch : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateVectorStoreFileBatch (vectorStoreId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

vectorStoreId
String

Identifier of the vector store.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

vectorStoreId or content is null.

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

Service returned a non-success status code.

Applies to

CreateVectorStoreFileBatch(String, IEnumerable<String>, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken)

Source:
AgentsClient.cs

Create a vector store file batch.

public virtual Azure.Response<Azure.AI.Projects.VectorStoreFileBatch> CreateVectorStoreFileBatch (string vectorStoreId, System.Collections.Generic.IEnumerable<string> fileIds = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.VectorStoreDataSource> dataSources = default, Azure.AI.Projects.VectorStoreChunkingStrategyRequest chunkingStrategy = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVectorStoreFileBatch : string * seq<string> * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.VectorStoreFileBatch>
override this.CreateVectorStoreFileBatch : string * seq<string> * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.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 VectorStoreChunkingStrategyRequest = 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
VectorStoreChunkingStrategyRequest

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