Balvinder Singh — BS monogramBalvinder SinghPaymentsAIArchitecture
← Writing
AI in Commerce1 min read

Grounding LLM answers with source citations

For commerce applications, an LLM answer without a citation is not an answer — it's a liability. The engineering pattern that actually works.

For commerce applications — merchant support, policy Q&A, dispute analysis — an LLM answer without a source citation is not useful. It's a liability. The engineering pattern for grounded answers is well documented; the implementation discipline is where teams fall down.

Written August 2026 from retrieval-augmented generation integration reviews.

The pattern

  • Retrieve source documents relevant to the query.
  • Provide the sources as context to the LLM.
  • Instruct the LLM to answer only from the sources.
  • Return the answer with explicit citations.
  • Refuse if no sources are relevant.

That's the pattern. Implementing it well requires each step to be tight.

Where implementations get sloppy

  • Retrieval is broad, not tight. Ten sources returned when three would suffice. The LLM blends them, and citations become fuzzy.
  • The refusal path isn't tested. The system almost always finds "something", and produces a plausible-sounding answer that isn't grounded.
  • Citations are trusted without verification. The LLM claims a citation; the citation is present in the source; but the LLM's paraphrase is subtly wrong.
  • The source corpus drifts. The retrieval index is a snapshot from six months ago; the actual policy has changed.

What good looks like

  • Retrieval returns a small, ranked set — three sources is often enough.
  • The system explicitly says "I don't have information on that" when retrieval returns nothing relevant.
  • A verification step compares the answer's claims against the cited sources, flagging inconsistencies.
  • The index is rebuilt on a defined schedule that matches the source's update cadence.

Grounding is the difference between a system that helps merchants and a system that misinforms them. Getting it right is unglamorous engineering.