VectorStores.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.
Create a vector store file by attaching a file to a vector store.
public virtual Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile> CreateVectorStoreFile(string vectorStoreId, string fileId = default, Azure.AI.Agents.Persistent.VectorStoreDataSource dataSource = default, Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy chunkingStrategy = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVectorStoreFile : string * string * Azure.AI.Agents.Persistent.VectorStoreDataSource * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile>
override this.CreateVectorStoreFile : string * string * Azure.AI.Agents.Persistent.VectorStoreDataSource * Azure.AI.Agents.Persistent.VectorStoreChunkingStrategy * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile>
Public Overridable Function CreateVectorStoreFile (vectorStoreId As String, Optional fileId As String = Nothing, Optional dataSource As VectorStoreDataSource = Nothing, Optional chunkingStrategy As VectorStoreChunkingStrategy = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VectorStoreFile)
Parameters
- vectorStoreId
- String
Identifier of the vector store.
- fileId
- String
Identifier of the file.
- dataSource
- VectorStoreDataSource
Azure asset ID.
- chunkingStrategy
- VectorStoreChunkingStrategy
The chunking strategy used to chunk the file. If not set, uses 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.