Skip to navigation

Search the index

Runs a query the way the prompt hook does, with the hook’s threshold and token budget, and returns what each retrieval stage found, the fused list that cleared the gate, and which chunks would be injected. A failure the user can act on (embedding unavailable, a pack that must be rebuilt, a missing vector extension, an empty query) is a 200 with only an error field.

Query parameters

qstringRequired

The query text. An empty or whitespace-only value returns {"error": "empty query"}. If q is given more than once, the last one is used.

tierintegerOptional0-255

Quality tier to search with: 0 instant, 1 fast, 2 balanced, 3 thorough, 4 exhaustive. Values above 4 are treated as 4. A value that is not an integer from 0 to 255 is ignored. Without it, the hook’s configured tier is used. If given more than once, the last one is used.

Response

The search ran, or failed in a way that is reported in error.

SearchExplainobject
OR
SearchFailedobject

Errors

421
Misdirected Request Error
503
Service Unavailable Error