AgentsClient.CreateVectorStoreFile 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
CreateVectorStoreFile(String, RequestContent, RequestContext) |
[Protocol Method] Create a vector store file by attaching a file to a vector store.
|
CreateVectorStoreFile(String, String, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken) |
Create a vector store file by attaching a file to a vector store. |
CreateVectorStoreFile(String, RequestContent, RequestContext)
- Source:
- AgentsClient.cs
[Protocol Method] Create a vector store file by attaching a file to a vector store.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler CreateVectorStoreFile(String, String, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response CreateVectorStoreFile (string vectorStoreId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateVectorStoreFile : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateVectorStoreFile : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateVectorStoreFile (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
CreateVectorStoreFile(String, String, IEnumerable<VectorStoreDataSource>, VectorStoreChunkingStrategyRequest, CancellationToken)
- Source:
- AgentsClient.cs
Create a vector store file by attaching a file to a vector store.
public virtual Azure.Response<Azure.AI.Projects.VectorStoreFile> CreateVectorStoreFile (string vectorStoreId, string fileId = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.VectorStoreDataSource> dataSources = default, Azure.AI.Projects.VectorStoreChunkingStrategyRequest chunkingStrategy = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVectorStoreFile : string * string * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.VectorStoreFile>
override this.CreateVectorStoreFile : string * string * seq<Azure.AI.Projects.VectorStoreDataSource> * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.VectorStoreFile>
Public Overridable Function CreateVectorStoreFile (vectorStoreId As String, Optional fileId As String = Nothing, Optional dataSources As IEnumerable(Of VectorStoreDataSource) = Nothing, Optional chunkingStrategy As VectorStoreChunkingStrategyRequest = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VectorStoreFile)
Parameters
- vectorStoreId
- String
Identifier of the vector store.
- fileId
- String
Identifier of the file.
- dataSources
- IEnumerable<VectorStoreDataSource>
Azure asset ID.
- 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