A vector store is a collection of processed files can be used by the file_search tool.

interface VectorStore {
    created_at: number;
    expires_after?: OpenAIClient.VectorStores.VectorStore.ExpiresAfter;
    expires_at?: null | number;
    file_counts: OpenAIClient.VectorStores.VectorStore.FileCounts;
    id: string;
    last_active_at: null | number;
    metadata: null | Metadata;
    name: string;
    object: "vector_store";
    status: "in_progress" | "completed" | "expired";
    usage_bytes: number;
}

Properties

created_at: number

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

The expiration policy for a vector store.

expires_at?: null | number

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

id: string

The identifier, which can be referenced in API endpoints.

last_active_at: null | number

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

metadata: null | Metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.

Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

name: string

The name of the vector store.

object: "vector_store"

The object type, which is always vector_store.

status: "in_progress" | "completed" | "expired"

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.

usage_bytes: number

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