RMH search API
POST /search/rmh runs hybrid search (vector + keyword), then optionally expands with same-file neighbors and a second hybrid pass seeded from the top hit. Responses match the normal search payload plus an rmh metadata object describing what ran.
Requires the same authentication and search quota as GET/POST /search.
Endpoint
Request body
All fields fromPOST /search are supported, plus:
Number of hybrid search rounds (1–3)
Lines around each hit to pull additional chunks from the same file (0–500)
When true, merge overlapping chunks from the same file as neighbors
When true, run a second hybrid search using the original query plus terms from the top hit
Response
Same as Search API SearchResponse, with an extra top-level object:/search.