Skip to main content

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 from POST /search are supported, plus:
integer
default:"2"
Number of hybrid search rounds (1–3)
integer
default:"80"
Lines around each hit to pull additional chunks from the same file (0–500)
boolean
default:"true"
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:
If no evidence is found, the API may return the same no evidence payload as /search.