VectorStore
A vector store is a collection of processed files that can be used by the file_search tool.
Example Usage
typescript
import { VectorStore } from "@meetkai/mka1/models/components";
let value: VectorStore = {
id: "<id>",
object: "vector_store",
createdAt: 990446,
name: "<value>",
usageBytes: 50618,
fileCounts: {
inProgress: 462505,
completed: 156749,
failed: 176251,
cancelled: 719879,
total: 515581,
},
status: "in_progress",
lastActiveAt: 597754,
metadata: {
"key": true,
},
lastUsedAt: 442101,
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | The identifier, which can be referenced in API endpoints. |
object | "vector_store" | ✔️ | The object type, which is always 'vector_store'. |
createdAt | number | ✔️ | The Unix timestamp (in seconds) for when the vector store was created. |
name | string | ✔️ | The name of the vector store. |
usageBytes | number | ✔️ | The total number of bytes used by the files in the vector store. |
fileCounts | components.FileCounts | ✔️ | File processing status counts. |
status | components.VectorStoreStatus | ✔️ | The status of the vector store. 'expired' means the store has expired, 'in_progress' means files are still being processed, 'completed' indicates that the vector store is ready for use. |
expiresAfter | components.VectorStoreExpiresAfter | ➖ | The expiration policy for a vector store. |
expiresAt | number | ➖ | The Unix timestamp (in seconds) for when the vector store will expire. |
lastActiveAt | number | ✔️ | The Unix timestamp (in seconds) for when the vector store was last active. |
metadata | Record<string, components.VectorStoreMetadata> | ✔️ | Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers. |
description | string | ➖ | A description for the vector store. Can be used to describe the vector store's purpose. |
lastUsedAt | number | ✔️ | The Unix timestamp (in seconds) for when the vector store was last used. |