Create Vector Store
openai_create_vector_storeCreate a new vector store to organize documents for semantic search and RAG. Attach files, set expiration, and configure chunking strategy.
Instructions
Create a new OpenAI vector store — a collection of processed files that can be used with the file_search tool.
Use this when you need a new vector store to hold uploaded documents for semantic search or retrieval-augmented generation (RAG).
You can optionally provide file_ids to attach already-uploaded files, a chunking strategy, and metadata (up to 16 key-value pairs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the vector store. | |
| file_ids | No | A list of File IDs that the vector store should use. Useful for tools like `file_search`. | |
| expires_after | No | The expiration policy for the vector store. | |
| metadata | No | Set of 16 key-value pairs attached to the object. Keys max 64 chars, values max 512 chars. | |
| chunking_strategy | No | Chunking strategy for files. Default is auto (800 tokens, 400 overlap). |