Skip to content

CreateVectorStoreRequest ​

Request body for creating a vector store.

Example Usage ​

typescript
import { CreateVectorStoreRequest } from "@meetkai/mka1/models/components";

let value: CreateVectorStoreRequest = {
  name: "Product Documentation",
  description: "Vector store for product manuals and documentation",
  expiresAfter: {
    anchor: "last_active_at",
    days: 30,
  },
};

Fields ​

FieldTypeRequiredDescription
namestring➖The name of the vector store.
descriptionstring➖A description for the vector store. Can be used to describe the vector store's purpose.
fileIdsstring[]➖A list of File IDs that the vector store should use. Useful for tools like file_search that can access files. At most 500 per request.
expiresAftercomponents.ExpiresAfter➖The expiration policy for a vector store.
chunkingStrategycomponents.CreateVectorStoreRequestChunkingStrategy➖The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty.
metadataRecord<string, string>➖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.
embeddingModelstring➖The embedding model to use. Defaults to the auto-configured model if not specified.
embeddingDimensionsnumber➖The number of dimensions for the embedding vectors. Only supported for models with flexible dimensions. If not specified, uses the model's default dimensions.
retrievalModecomponents.RetrievalMode➖Retrieval mode, frozen at creation (cannot be changed later). 'vector' (default): standard vector similarity search. 'graph': GraphRAG — entities and relations are extracted from every chunk at ingest (metered against your usage) and search traverses the knowledge graph.
extractionModelstring➖Model used for entity/relation extraction on graph stores (ingest-time triplet extraction and query-entity extraction). Defaults to the auto-configured model, resolved at creation time — same contract as embedding_model. Only valid when retrieval_mode is 'graph'.
maxHopsnumber➖Graph expansion depth for graph-mode queries (1-4, engine default 2). Only valid for graph stores.