Skip to content

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

FieldTypeRequiredDescription
idstring✔️The identifier, which can be referenced in API endpoints.
object"vector_store"✔️The object type, which is always 'vector_store'.
createdAtnumber✔️The Unix timestamp (in seconds) for when the vector store was created.
namestring✔️The name of the vector store.
usageBytesnumber✔️The total number of bytes used by the files in the vector store.
fileCountscomponents.FileCounts✔️File processing status counts.
statuscomponents.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.
expiresAftercomponents.VectorStoreExpiresAfterThe expiration policy for a vector store.
expiresAtnumberThe Unix timestamp (in seconds) for when the vector store will expire.
lastActiveAtnumber✔️The Unix timestamp (in seconds) for when the vector store was last active.
metadataRecord<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.
descriptionstringA description for the vector store. Can be used to describe the vector store's purpose.
lastUsedAtnumber✔️The Unix timestamp (in seconds) for when the vector store was last used.