Hybrid search
query(required, max 4096 chars) — Search query.k(optional, default 10, max 100) — Number of hits to return.path_prefix(optional) — Restrict to files under this folder prefix.categories(optional) — Restrict to files assigned these document categories (from classification).
hits— Ordered by score. EachEvidenceitem:file_id,path,locator(required — page/position in the source),relevance_score,snippet(verbatim passage),why(retrieval rationale),component(which public component of the file the hit came from — a spreadsheet tab name or a split document’s section;nullfor single-component files or when attribution is unavailable). Act on a hit by passingcomponentstraight toqa-file/read-fileascomponent=(withpagesfrom the locator for documents).candidates_seen— Pre-access-filter count; compare tohitslength to tell when the access gate truncated results.truncated—truewhen the index found more thankcandidates before access filtering.coverage— Labels required to see withheld candidates.
Choosing a search method
Errors
workspace_not_found(404) — No such workspace.invalid_request(422) —queryis empty,kis out of range, or bothpath_prefixandcategoriesproduce an empty scope.