Query Router
Query Router is a test bench for asking Cortex a question and seeing exactly how it found and built the answer.
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
| Field | What it does |
|---|---|
| Query | Your question. The placeholder reads "Type a question to route through Cortex…". |
| Sample chips | Click 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_mode | Check 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.
| Part | What it shows |
|---|---|
| Synthesised answer | A one-line answer written from the evidence. If none comes back, it says "No answer text returned." |
| Top evidence | A table with the rank (#), the Memory text with a short ID, and a Score to three decimals |
| Raw JSON | The 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.
Open the page
Go to System, then Intelligence, then Query router.
Type a question
Write your own, or click a sample chip.
Choose how much evidence
Move the top_k (evidence memories) slider. Start with the default of 5.
Run it
Click Run. Read the answer, then check the Top evidence table to see what it was built from.