Query - v2 (Legacy)

Execute the v2 File Search endpoint against a collection. Returns retrieved chunks in search_results with content fields.

Path parameters

collection_namestringRequired

Request

This endpoint expects an object.
querystringRequired

Natural-language search query.

top_kinteger or nullOptionalDefaults to 10
Maximum number of search results to return.
metadata_filtermap from strings to any or nullOptional

Filter expression for indexed document metadata. Supports $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $and, and $or.

rerankboolean or nullOptionalDefaults to false

Enable reranking. Multimodal collections default to reranking; pass false to opt out and a warning is returned noting reduced cross-modal ranking quality. Text-only collections use the value as sent. Adds roughly 200 ms.

include_bboxboolean or nullOptionalDefaults to false
Legacy v2 layout option retained for clients that already depend on bounding boxes.

Response

Successful Response
successboolean
querystring
search_resultslist of objects
total_resultsinteger
top_kinteger
warningslist of strings or nullOptional
tokens_usedmap from strings to integers or nullOptional
execution_time_msinteger or nullOptional
request_idstring or nullOptional
token_balanceobject or nullOptional
© 2026 Captain