Citations and sources
How Mojar references source documents in answers, and how to view the exact passage behind a citation.
When an agent answers a question using its knowledge base, it includes numbered citations inline — for example, [1], [2] — that link each claim to the specific passage it came from. This lets you verify answers and read the original source with one click.
How citations appear
In the chat, citations appear as small numbered markers embedded in the response text. Each number corresponds to a passage (chunk) retrieved from one of the agent's documents.
Beneath the response, a View N sources button shows how many source chunks were used. Clicking this button opens the Sources panel.
The Sources panel
The Sources panel lists every document that contributed to the answer. Each document is expandable to show the individual passages that were retrieved.
For each passage you can see:
- The document it came from (with its file name)
- The page number or chunk position within the document
- A relevance score showing how closely the passage matched your question
- The excerpt of text that was retrieved
- A View button to open a document preview
Jumping to a specific citation
Clicking a numbered citation marker in the message — for example [1] — opens the Sources panel and scrolls directly to the chunk that citation refers to, highlighted in the list.
Viewing the original document
Within the Sources panel, click View on any passage to open a document preview alongside the source list. For PDF documents, the preview opens at the relevant page.
Source feedback
Each passage in the Sources panel has thumbs-up and thumbs-down buttons. Use these to mark whether a retrieved passage was relevant to your question. This feedback helps improve retrieval quality over time.
When no sources appear
If the agent's response is not grounded in the knowledge base — for example, a greeting or a general question answered from the model's own training — no citation markers appear and the View sources button is not shown.
Citations only appear for documents with a Completed status. If a document is still processing when you ask a question, the agent will not cite it yet. See managing documents for status details.