All posts
Product design

How to Show Sources and Citations in AI Answers

AI citations UI compared: inline markers, footnotes, source cards and side panels, and how each choice changes trust and clicks to your sources.

By Mehdi Hassan7 min read

The short answer

AI citations UI should attach a source to each claim a user might act on, close to the claim itself. Inline numbered markers with a hover or tap preview suit most answers, footnotes suit long reports, and a side panel suits research and compliance work. Always show the exact passage used, and say clearly when an answer has no source.

Key takeaways

  • Cite at the claim level, not with one list of links at the end of the answer.
  • Inline markers favor reading flow; side panels favor checking; source cards favor clicking through.
  • Preview the exact passage the model used, highlighted, not just a file name or page title.
  • Label answers that come from the model's general knowledge so users don't assume a source exists.
  • Let users flag a wrong citation in one click and send that signal to your retrieval team.

Part of AI Product UX: How to Design AI Features Users Trust

How should an AI product show sources and citations?

An AI product should show sources next to the specific claims they support, with a quick way to see the passage behind each one. Source attribution in AI is a checking tool first and a trust badge second. If users can't verify a claim in a few seconds, the citation is decoration.

Most AI products that use retrieval, often called RAG, already know which documents fed an answer. The design problem is turning that list into something people use. This guide compares the main patterns and what each one does to reading, checking and clicking. It's part of our hub on AI product UX, which covers the other trust patterns around citations, such as confidence and approvals.

One thing worth saying up front: there's very little published user data on which citation style performs best. What follows is grounded in how the patterns work and what we see in products, so test the choice with your own users.

What are the main AI citations UI patterns?

There are four main AI citations UI patterns: inline markers, footnotes, source cards and a side panel. They trade reading flow against ease of checking and click-through, so the right one depends on what users do after reading the answer.

Pattern

How it looks

Strength

Weakness

Best for

Inline markers

Small numbers after sentences, preview on hover or tap

Keeps reading flow, ties source to claim

Easy to ignore, small tap targets

Chat answers, assistants

Footnotes

Numbered list of sources below the answer

Clean text, familiar from documents

Claim-to-source link is weaker

Long reports, exports

Source cards

Row of cards with title, site and favicon above or below

Invites clicks, shows breadth at a glance

Not tied to specific claims

Search-style answers, web sources

Side panel

Answer on the left, sources and passages on the right

Best for verifying, shows full context

Takes space, heavy on mobile

Research, legal, compliance, support

Many products combine two. Perplexity style citations, for example, pair inline numbered markers with a row of source cards, so users get both claim-level links and a quick view of where the answer came from. That combination is a sensible default for web-sourced answers.

How do inline markers and footnotes affect trust?

Inline markers build trust by tying each claim to evidence at the point of reading, while footnotes build trust through completeness but make users work to match a claim with its source. If your users act on individual facts, such as a policy detail or a contract date, inline markers are the better choice.

  • Place markers after the claim, not the paragraph. A single marker at the end of a long paragraph tells users nothing about which sentence it supports.
  • Open a preview, not a new tab. Hover on desktop and tap on mobile should show the source title and the highlighted passage. Opening the full source is a second, deliberate step.
  • Merge repeated sources. If three sentences cite the same document, reuse the same number so users can see how much of the answer leans on one source.
  • Make tap targets big enough. Tiny superscript numbers are hard to hit on phones. Pad the target even if the visual stays small.

When does a side panel beat inline citations?

A side panel beats inline citations when checking the source is part of the job, not an optional extra. Grounded answers UX in legal, compliance, finance or support work often means reading the answer and its evidence side by side, and a panel makes that comparison easy.

In a side panel, clicking a claim should scroll the panel to the matching passage and highlight it. Clicking a passage should highlight the claims it supports. That two-way link is what makes the panel worth its space. On mobile, collapse the panel into a bottom sheet that opens from the marker, since a split view won't fit. Our guide to AI chat interface design covers how the panel fits into the wider chat layout.

Pros

  • Fastest way to verify claims against full context
  • Room to show passage, document metadata and dates
  • Natural place for flag-this-source feedback

Cons

  • Takes horizontal space from the answer
  • Needs a separate mobile design
  • Overkill for casual or low-stakes questions

How do citations affect click-through to sources?

Citation design changes how often users click through to sources: visible source cards with titles and site names invite clicks, while small inline markers with full previews tend to answer the question without a click. Neither is wrong. Decide whether you want users to leave, or to check and stay.

If your sources are your own help center or product records, a preview that answers the question in place is usually better, because the user's task is in your product. If the sources are third-party web pages and you want to be a fair citizen of the web, make cards and titles prominent so publishers get the visit. This same dynamic is why marketing sites now care about being cited by AI answers at all, which we cover in keeping AI Overview and ChatGPT citations through a migration.

For example, suppose a support assistant cites help articles

For example, suppose a support assistant answers How do I change my billing date. A good design shows a two-sentence answer with one inline marker. Tapping the marker opens a preview with the article title, last-updated date and the highlighted paragraph, plus Open article. Most users get what they need from the preview. Users with an edge case open the article.

If the answer instead showed three large source cards and no inline marker, users would likely click away to read, even though the two-sentence answer was enough. This is an illustrative walkthrough, not measured data.

What should the UI do when there's no source?

When there's no source, the UI should say so plainly instead of leaving a gap users fill with assumptions. Answers that come from the model's general knowledge, or from reasoning rather than retrieval, need a label like Not based on your documents, so users know to check before acting.

  • Label unsourced sentences or answers with a short, neutral note rather than a warning color on everything.
  • Show when sources disagree. Two policies with different dates should both be cited, with a line saying they conflict.
  • Show source freshness where it matters, such as last updated dates on policies and prices.
  • Never generate a citation the system didn't use. If the retrieval layer can't map a claim to a passage, drop the marker rather than guess.

Missing and wrong sources are a close cousin of hallucinations. Our guide to AI error handling UX covers how to phrase low-confidence answers and recovery.

How do you turn citations into a feedback loop?

Turn citations into a feedback loop by letting users mark a source as wrong, irrelevant or outdated right inside the preview. Each flag tells your team exactly which retrieval result failed for which question, which is far more useful than a thumbs-down on the whole answer.

  1. Add a flag action to every preview

    Keep it small: Wrong source, Outdated, Doesn't support this claim.

  2. Log the claim, passage and query together

    The flag only helps if your team can see what was asked, what was cited and what the user objected to.

  3. Review flags on a schedule

    Group them by document. Repeated flags on one source usually mean it needs updating or should be excluded.

  4. Close the loop visibly

    When a flagged document gets fixed, a short note like Updated based on feedback shows users their input mattered.

Citations, previews and flags are reusable parts, so they belong in your component library. Our guide to design systems for AI products covers the citation marker, preview and panel as shared components.

Frequently asked questions

Do citations make users trust AI answers more?
Citations help when users can actually check them. A visible source that leads to the exact passage gives users a way to verify, and verified answers earn trust over time. Citations that point to whole documents or unrelated pages can do the opposite, because users who check once and find nothing tend to stop trusting the other citations too.
How many sources should an AI answer show?
Show the sources the answer actually used, and no more. For most answers that's a handful. Padding the list with loosely related documents makes the answer look better researched while making it harder to check. If retrieval returned more candidates than were used, keep them out of the citations or behind a separate See related link.
Should citations open in a new tab?
The first interaction should be a preview inside your product, showing the title and highlighted passage. Opening the full source can then use a new tab for external web pages, so users don't lose the answer. For internal records, such as a ticket or contract in your own app, open them in place or in a side panel instead.
What is RAG UI design?
RAG UI design is the interface work around retrieval-augmented generation, where an AI fetches documents and uses them to answer. It covers how sources are cited, previewed and flagged, how retrieval steps are shown while loading, and how answers without a source are labeled. Good RAG UI makes the retrieved evidence as easy to use as the answer.
How should citations work in voice or mobile AI interfaces?
On mobile, use larger tap targets for markers and open previews in a bottom sheet instead of hover cards. In voice, mention the main source by name in the spoken answer, such as according to your March billing policy, and send the full citations to the screen or a follow-up message so users can check them later.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Brand & design sprint, $3,000.

A brand refresh or redesign, plus design explorations for your website and product. $3,000, one-time, fixed price. Book a free 30-minute call to see if it fits.

Schedule Call