Citations
When the agent searches the knowledge base during a conversation, every excerpt it receives is labelled with its source — base / document. The agent is instructed to answer only from those excerpts and to mention the source when it states facts. You can audit those searches after the call.
See the searches in a call
- Open Históricos → Chamadas (History → Calls) and click the call.
- Open the Acções (Actions) tab.
- Look for the
search_knowledgeentries — one for each search the agent ran. - Expand Pedido / resposta (request / response) to see:
| Field | What it shows |
|---|---|
query (request) | The question the agent searched for. |
found | true if relevant content was found; false if nothing was found. |
results[].source | Where the excerpt came from, as Base name / Document name. |
results[].content | The exact text the agent received. |
message | The guidance given to the agent — for example, to tell the customer it does not have the information when found is false. |
Compare content with what the agent said in the Transcrição (Transcript) tab: if the answer matches no excerpt, the agent did not rely on the knowledge base.
The same searches appear for test calls made in the agent's test panel, because those are also stored in Históricos. See Calls.
Diagnosis in the Test Center
In the results of a Test Center run, each case shows a Diagnóstico da base de conhecimento (knowledge base diagnosis) block with the mode used and how many documents and excerpts were included (mode=… · docs=… · chunks=…):
| Mode | Meaning |
|---|---|
retrieval | The search found relevant excerpts. |
full_doc_fallback | No relevant excerpts; the full text of the documents was used, up to the context limit. |
instructions_only | Only the bases' instructions were used, with no document content. |
empty | No knowledge available (for example, no base assigned). |
n/a | The case did not use the knowledge base. |
Good practices
- Give bases and documents descriptive names — they are what shows up as the source.
- Split long content into themed documents: excerpts become more precise and the initial context limit covers more topics.
- Write the Quando deve o agente consultar esta base? instruction with concrete situations.
- When the agent answers badly, first check whether the search returned
found: false(missing content) or the wrong excerpt (ambiguous or outdated content). - Make sure documents are Indexado — see document states.

