Create a vector store
Creates a new vector store for storing and searching through document embeddings. With file_ids, two files of the same content in the request are refused with 409 before the store is created.
Authorizations
Body
Request body for creating a vector store.
The number of dimensions for the embedding vectors. Must equal the model's size when it is fixed, or lie within its range (embedding_dimension_range on GET /models/{model_id}). If not specified, uses the model's default dimensions. The store stays searchable only while the model's declared dimensions still include this size and the model returns embeddings of this width.
-9007199254740991 < x <= 9007199254740991Retrieval mode, frozen at creation (cannot be changed later). 'hybrid' (default): vector similarity and full-text keyword search over the chunk text, fused by reciprocal rank fusion; the keyword index matches words in their written form in any language. 'vector': vector similarity search only. 'graph': GraphRAG — entities and relations are extracted from every chunk at ingest (metered against your usage) and search traverses the knowledge graph.
vector, hybrid, graph Response
OK
A vector store is a collection of processed files that can be used by the file_search tool.
The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores. If the embedding model's declared dimensions stop including this size, or the model returns embeddings of another width, search fails with 412 and new files fail to ingest.
0 < x <= 9007199254740991Retrieval mode, frozen at creation. 'hybrid' (the default for new stores): vector similarity and full-text keyword search over the chunk text, fused by reciprocal rank fusion. 'vector': vector similarity search only. 'graph': GraphRAG — entities and relations are extracted at ingest and queries traverse the knowledge graph.
vector, hybrid, graph The Unix timestamp (in seconds) for when the vector store was last active: searched (directly or via file_search), modified, or had files ingested, re-tagged or removed. Searches update it at most once a minute; the service's own cleanup, such as removing an expired file, does not count.
-9007199254740991 <= x <= 9007199254740991