v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB
Vector stores

Search vector store

Search a vector store for relevant chunks based on a query and file attributes filter.

post/vector_stores/{vector_store_id}/search

Path parameters

vector_store_idstring required
Example:vs_abc123

The ID of the vector store to search.

Request body

rewrite_queryboolean

Whether to rewrite the natural language query for vector search.

max_num_resultsinteger

The maximum number of results to return. This number should be between 1 and 50 inclusive.

Response

OK

object'vector_store.search_results.page' required

The object type, which is always vector_store.search_results.page

search_querystring[] required
has_moreboolean required

Indicates if there are more results to fetch.

next_pagestring nullable required

The token for the next page, if any.