AIProjectsModelFactory.VectorStoreFile 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.
Initializes a new instance of VectorStoreFile.
public static Azure.AI.Projects.VectorStoreFile VectorStoreFile (string id = default, Azure.AI.Projects.VectorStoreFileObject object = default, int usageBytes = 0, DateTimeOffset createdAt = default, string vectorStoreId = default, Azure.AI.Projects.VectorStoreFileStatus status = default, Azure.AI.Projects.VectorStoreFileError lastError = default, Azure.AI.Projects.VectorStoreChunkingStrategyResponse chunkingStrategy = default);
static member VectorStoreFile : string * Azure.AI.Projects.VectorStoreFileObject * int * DateTimeOffset * string * Azure.AI.Projects.VectorStoreFileStatus * Azure.AI.Projects.VectorStoreFileError * Azure.AI.Projects.VectorStoreChunkingStrategyResponse -> Azure.AI.Projects.VectorStoreFile
Public Shared Function VectorStoreFile (Optional id As String = Nothing, Optional object As VectorStoreFileObject = Nothing, Optional usageBytes As Integer = 0, Optional createdAt As DateTimeOffset = Nothing, Optional vectorStoreId As String = Nothing, Optional status As VectorStoreFileStatus = Nothing, Optional lastError As VectorStoreFileError = Nothing, Optional chunkingStrategy As VectorStoreChunkingStrategyResponse = Nothing) As VectorStoreFile
Parameters
- id
- String
The identifier, which can be referenced in API endpoints.
- object
- VectorStoreFileObject
The object type, which is always vector_store.file
.
- usageBytes
- Int32
The total vector store usage in bytes. Note that this may be different from the original file size.
- createdAt
- DateTimeOffset
The Unix timestamp (in seconds) for when the vector store file was created.
- vectorStoreId
- String
The ID of the vector store that the file is attached to.
- status
- VectorStoreFileStatus
The status of the vector store file, which can be either in_progress
, completed
, cancelled
, or failed
. The status completed
indicates that the vector store file is ready for use.
- lastError
- VectorStoreFileError
The last error associated with this vector store file. Will be null
if there are no errors.
- chunkingStrategy
- VectorStoreChunkingStrategyResponse
The strategy used to chunk the file. Please note VectorStoreChunkingStrategyResponse is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include VectorStoreAutoChunkingStrategyResponse and VectorStoreStaticChunkingStrategyResponse.
Returns
A new VectorStoreFile instance for mocking.
Applies to
Azure SDK for .NET