Skip to main content
POST
Search a vector store for relevant chunks based on a query and file attributes filter.

Path Parameters

string
required
The ID of the vector store to search.

Request Body

string
required
A query string for a search. Can also be an array of strings for multi-query search.
integer
The maximum number of results to return. This number should be between 1 and 50 inclusive.
object
A filter to apply based on file attributes.Example:
object
Ranking options for search.
boolean
Whether to rewrite the natural language query for vector search.

Response

Returns a list of search results with relevant chunks.
array
Array of search result objects.