How a question becomes a cited answer, and how to read the result.
{
"id": "qry_01j9x3k2m7",
"answer": "Supplier invoices above €5,000 require approval by a Finance lead before posting. [1] New suppliers require approval regardless of amount. [2]",
"confidence": 0.91,
"citations": [
{ "n": 1, "document": "Approval policy v3", "source": "notion", "url": "https://…", "excerpt": "Invoices above 5 000 € …" },
{ "n": 2, "document": "#finance-approvals", "source": "slack", "url": "https://…", "excerpt": "For new suppliers we always…" }
],
"knowledge_bases": ["ops-eu"],
"as_user": "marja@example.com",
"latency_ms": 1840
}
Confidence is the agent's own estimate that the answer is fully supported by the citations. Below 0.6 the agent adds a caveat; below 0.4 it declines to answer and explains what it did find.
@brewmycode /sources in a thread to see everything the agent considered, not only what it cited.Click Flag on an answer (or POST /queries/{id}/feedback). Flags go to knowledge base editors, who can fix or add the source document. Feedback also feeds the evaluation set for the knowledge base.