Skip to main content
POST /v2/retrieve is the main path. In one call it runs:
  1. query maker — classifies what the last message adds (new question, refinement, patient fact) and reformulates it;
  2. two-path retrieval — semantic ‖ concepts + graph, in parallel;
  3. context — the knowledge units retained, their decision tables, their documents;
  4. synthesis — a Markdown answer, cited on those units and nothing else.
No judge, no safety sweep: both are asked for explicitly (see deliberate).

Minimal request

The fields that matter

The retrieval knobs (concept_k, chunk_k, mku_k, mku_weight, table_k, use_cross_refs) are exposed, but their defaults are the measured operating point. Changing them steps outside what the evaluations cover. Each is detailed in the API Reference tab.

What comes back

Three formats, one answer

Negotiation happens on Accept rather than a ?format= parameter: the client states what it can read. In JSON, answer’s newlines are escaped as \n: read it with jq -r '.answer'.

Errors