Interface IVectorStoreFiles
- Namespace
- OpenAI.
Interfaces
- Assembly
- AntRunnerLib.dll
Methods
CancelVectorStoreFileBatch(String, String, CancellationToken)
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Task<VectorStoreFileBatchObject> CancelVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String batchId
System.String cancellationToken
CancellationToken
Returns
CreateVectorStoreFile(String, CreateVectorStoreFileRequest, CancellationToken)
Create a vector store file by attaching a File to a vector store.
Task<VectorStoreFileObject> CreateVectorStoreFile(string vectorStoreId, CreateVectorStoreFileRequest requestBody, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String requestBody
CreateVector Store File Request cancellationToken
CancellationToken
Returns
- Task<Vector
Store >File Object
CreateVectorStoreFileBatch(String, CreateVectorStoreFileBatchRequest, CancellationToken)
Create a vector store file batch.
Task<VectorStoreFileBatchObject> CreateVectorStoreFileBatch(string vectorStoreId, CreateVectorStoreFileBatchRequest requestBody, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String requestBody
CreateVector Store File Batch Request cancellationToken
CancellationToken
Returns
DeleteVectorStoreFile(String, String, CancellationToken)
Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the delete file endpoint.
Task<DeletionStatusResponse> DeleteVectorStoreFile(string vectorStoreId, string fileId, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String fileId
System.String cancellationToken
CancellationToken
Returns
- Task<Deletion
Status >Response
GetVectorStoreFile(String, String, CancellationToken)
Retrieves a vector store file.
Task<VectorStoreFileObject> GetVectorStoreFile(string vectorStoreId, string fileId, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String fileId
System.String cancellationToken
CancellationToken
Returns
- Task<Vector
Store >File Object
GetVectorStoreFileBatch(String, String, CancellationToken)
Retrieves a vector store file batch.
Task<VectorStoreFileBatchObject> GetVectorStoreFileBatch(string vectorStoreId, string batchId, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String batchId
System.String cancellationToken
CancellationToken
Returns
ListFilesInVectorStoreBatch(String, String, PaginationRequest, CancellationToken)
Returns a list of vector store files in a batch.
Task<VectorStoreFileBatchListObjectResponse> ListFilesInVectorStoreBatch(string vectorStoreId, string batchId, PaginationRequest baseListRequest, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String batchId
System.String baseListRequest
PaginationRequest cancellationToken
CancellationToken
Returns
ListVectorStoreFiles(String, VectorStoreFileListRequest, CancellationToken)
Returns a list of vector store files.
Task<VectorStoreFileListObject> ListVectorStoreFiles(string vectorStoreId, VectorStoreFileListRequest baseListRequest, CancellationToken cancellationToken = null)
Parameters
vectorStoreId
System.String baseListRequest
VectorStore File List Request cancellationToken
CancellationToken