Query - v2 (Legacy)
Query - v2 (Legacy)
Execute the v2 File Search endpoint against a collection. Returns retrieved chunks in search_results with content fields.
Path parameters
collection_name
Request
This endpoint expects an object.
query
Natural-language search query.
top_k
Maximum number of search results to return.
metadata_filter
Filter expression for indexed document metadata. Supports $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $and, and $or.
rerank
Enable reranking for text-only collections. Multimodal collections always rerank and return a warning if rerank=false is ignored.
include_bbox
Legacy v2 layout option retained for clients that already depend on bounding boxes.
Response
Successful Response
success
query
search_results
total_results
top_k
warnings
tokens_used
execution_time_ms
request_id
token_balance