Diska
Knowledge base

Citations

Confirm which base and document each of the agent's answers came from.

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

  1. Open Históricos → Chamadas (History → Calls) and click the call.
  2. Open the Acções (Actions) tab.
  3. Look for the search_knowledge entries — one for each search the agent ran.
  4. Expand Pedido / resposta (request / response) to see:
FieldWhat it shows
query (request)The question the agent searched for.
foundtrue if relevant content was found; false if nothing was found.
results[].sourceWhere the excerpt came from, as Base name / Document name.
results[].contentThe exact text the agent received.
messageThe 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=…):

ModeMeaning
retrievalThe search found relevant excerpts.
full_doc_fallbackNo relevant excerpts; the full text of the documents was used, up to the context limit.
instructions_onlyOnly the bases' instructions were used, with no document content.
emptyNo knowledge available (for example, no base assigned).
n/aThe 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.
Copyright © 2026