Docs
Sign in

Query Router

Query Router is a test bench for asking Cortex a question and seeing exactly how it found and built the answer.

Screenshot to add: The Query Router with a question entered on the left and the answer and top evidence on the right.

What it is for

Use it to debug retrieval and to tune your memory. You see the answer, the memories behind it and how they scored. It is not end-user chat. For that, open Chat.

The Query panel

FieldWhat it does
QueryYour question. The placeholder reads "Type a question to route through Cortex…".
Sample chipsClick one to fill the question. The samples are "Why did Q3 OTIF drop?", "Which suppliers caused the most delays last month?", "What is our refund policy for orders above $500?" and "How do we onboard a new procurement vendor?"
top_k (evidence memories)How many memories to use as evidence. A slider from 1 to 10. The default is 5.
voice_modeCheck it to show the answer in a spoken style. The answer box is also highlighted.

The Run button is disabled until you type a question. You can also press Ctrl+Enter (Cmd+Enter on Mac) in the question box.

The Result panel

Before your first run you see No query yet, with a link to Open Cortex chat. While it works, the panel shows loading rows and the button reads Routing….

Once it finishes, the panel heading shows a summary line. It lists the time taken in milliseconds, the number of evidence items and, if Cortex followed a chain of causes, the number of hops and a confidence figure.

PartWhat it shows
Synthesised answerA one-line answer written from the evidence. If none comes back, it says "No answer text returned."
Top evidenceA table with the rank (#), the Memory text with a short ID, and a Score to three decimals
Raw JSONThe complete response, for developers

Click an evidence row to open the memory in a side panel. If nothing ranked high enough, you see No evidence.

If the run fails, you see Route failed with the reason and a retry option.

  1. Open the page

    Go to System, then Intelligence, then Query router.

  2. Type a question

    Write your own, or click a sample chip.

  3. Choose how much evidence

    Move the top_k (evidence memories) slider. Start with the default of 5.

  4. Run it

    Click Run. Read the answer, then check the Top evidence table to see what it was built from.