Skip to content
Blog

Product · 6 min read

Why every answer needs a source

An answer you cannot check is a rumour with good grammar. Here is how we decided that citations come first, even when they make answers slower.

Mara LindqvistCo-founder and CEO

The first version of Tarn gave great answers. Clear, short and confident. In our first pilot, a support lead asked it how long refunds take, got a crisp “14 days” and sent it to a customer. The policy had changed to 30 days the month before.

The answer was well written and wrong, and there was no way to tell from the answer alone. That afternoon we made a rule we have kept since: no claim leaves Tarn without the passage it came from.

What a source has to be

A file name is not enough. “Refund policy.pdf” tells you where to start reading, not what to trust. So a source in Tarn is a passage: the exact lines that back the claim, opened in place and highlighted.

Refund policy · section 4

Customers on annual plans can ask for a refund

within 30 days of the renewal date.1

After that, credit is given for the unused months.

A citation opens the passage it points to, not just the file.

Cutting what cannot be cited

Language models are good at filling gaps. That is the problem. When the sources do not cover part of a question, a model will often write something plausible anyway. We handle it in the plainest way we could find:

  1. Find the passages that match the question, within what the asker can see.
  2. Write the answer from those passages only.
  3. Match every claim in the answer to a passage. Cut the ones that do not match.
answer.py (simplified)
# The rule every answer goes through
if not passages:
    return "I could not find this in your sources."
answer = write(question, passages)
for claim in answer.claims:
    claim.source = best_match(claim, passages)
    # A claim with no match is cut, not guessed
    if claim.source is None:
        answer.remove(claim)

Step three costs us about 300 milliseconds per answer. It also means Tarn sometimes says “I could not find this” when a competitor would answer. We think that is the right trade, and our customers keep telling us the same.

People do not need an assistant that is always sure. They need one that is honest about when it is not.

What changed for customers

Once answers carried sources, people started clicking them. In the first month, 38% of answers had at least one source opened. That number has settled at about 20%, which we read as trust: people check until they do not need to.

The other effect was on the docs themselves. When an answer is wrong, the source shows why, and the owner of that page gets a note. Customers tell us their wikis are in better shape than before. Read how Halden Freight fixed 46 stale pages in two weeks.

Get started

Ask your company anything.

Free for up to five people. Connect three sources and ask your first question in about fifteen minutes.