Skip to main content
POST
Search vector store

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vector_store_id
string
required

The ID of the vector store to search.

Example:

"vs_abc123"

Body

application/json
query
required

A query string for a search

rewrite_query
boolean
default:false

Whether to rewrite the natural language query for vector search.

max_num_results
integer
default:10

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

Required range: 1 <= x <= 50
filters
Comparison Filter · object

A filter to apply based on file attributes.

ranking_options
object

Ranking options for search.

Response

200 - application/json

OK

object
enum<string>
required

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

Available options:
vector_store.search_results.page
search_query
string[]
required

The query used for this search.

data
object[]
required

The list of search result items.

has_more
boolean
required

Indicates if there are more results to fetch.

next_page
string | null
required

The token for the next page, if any.