AgentsClient.CreateVectorStoreFileBatchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateVectorStoreFileBatchAsync(String, RequestContent, RequestContext) |
[Protocol Method] Create a vector store file batch.
|
CreateVectorStoreFileBatchAsync(String, IEnumerable<String>, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken) |
Create a vector store file batch. |
CreateVectorStoreFileBatchAsync(String, RequestContent, RequestContext)
- Source:
- AgentsClient.cs
[Protocol Method] Create a vector store file batch.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler CreateVectorStoreFileBatchAsync(String, IEnumerable<String>, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> CreateVectorStoreFileBatchAsync (string vectorStoreId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateVectorStoreFileBatchAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateVectorStoreFileBatchAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateVectorStoreFileBatchAsync (vectorStoreId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of 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
CreateVectorStoreFileBatchAsync(String, IEnumerable<String>, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken)
- Source:
- AgentsClient.cs
Create a vector store file batch.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.VectorStoreFileBatch>> CreateVectorStoreFileBatchAsync (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 CreateVectorStoreFileBatchAsync : string * seq<string> * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.VectorStoreFileBatch>>
override this.CreateVectorStoreFileBatchAsync : string * seq<string> * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.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 VectorStoreChunkingStrategyRequest = 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
- 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
Azure SDK for .NET