Compartilhar via


AIProjectsModelFactory.VectorStore Method

Definition

Initializes a new instance of VectorStore.

public static Azure.AI.Projects.VectorStore VectorStore (string id = default, Azure.AI.Projects.VectorStoreObject object = default, DateTimeOffset createdAt = default, string name = default, int usageBytes = 0, Azure.AI.Projects.VectorStoreFileCount fileCounts = default, Azure.AI.Projects.VectorStoreStatus status = default, Azure.AI.Projects.VectorStoreExpirationPolicy expiresAfter = default, DateTimeOffset? expiresAt = default, DateTimeOffset? lastActiveAt = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default);
static member VectorStore : string * Azure.AI.Projects.VectorStoreObject * DateTimeOffset * string * int * Azure.AI.Projects.VectorStoreFileCount * Azure.AI.Projects.VectorStoreStatus * Azure.AI.Projects.VectorStoreExpirationPolicy * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.AI.Projects.VectorStore
Public Shared Function VectorStore (Optional id As String = Nothing, Optional object As VectorStoreObject = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional name As String = Nothing, Optional usageBytes As Integer = 0, Optional fileCounts As VectorStoreFileCount = Nothing, Optional status As VectorStoreStatus = Nothing, Optional expiresAfter As VectorStoreExpirationPolicy = Nothing, Optional expiresAt As Nullable(Of DateTimeOffset) = Nothing, Optional lastActiveAt As Nullable(Of DateTimeOffset) = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing) As VectorStore

Parameters

id
String

The identifier, which can be referenced in API endpoints.

object
VectorStoreObject

The object type, which is always vector_store.

createdAt
DateTimeOffset

The Unix timestamp (in seconds) for when the vector store was created.

name
String

The name of the vector store.

usageBytes
Int32

The total number of bytes used by the files in the vector store.

fileCounts
VectorStoreFileCount

Files count grouped by status processed or being processed by this vector store.

status
VectorStoreStatus

The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.

expiresAfter
VectorStoreExpirationPolicy

Details on when this vector store expires.

expiresAt
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the vector store will expire.

lastActiveAt
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the vector store was last active.

metadata
IReadOnlyDictionary<String,String>

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

Returns

A new VectorStore instance for mocking.

Applies to