Rachis

How should an answer cite your documents?

19 November 2026, updated 28 November 2026

Part 5 of 7: Start here

Once your application has chosen passages for a request, the answer can point to the passage behind each statement. A citation is that pointer: a link from a statement in the answer to the passage, page or text span that supports it. If it opens the wrong page, or text that does not back the statement, it misleads anyone checking the answer.

Knowing what documented citation features return, and the two ways a citation fails, helps you decide what your application must store to build these links. Start with a setup that keeps each passage's location, then check where each citation leads and whether its passage supports the statement.

Follow a statement to its source

The application builds a request for the model containing selected passages and the question. The answer can mark which supplied passage supports each statement, and the application turns those marks into links or highlights. Which passages can be cited depends on how search results are ordered and where the list is cut for the request.

Take a traveller who asks whether their insurance covers a flight cancelled by a strike. The request contains a general cancellation-cover clause and an exclusion for industrial action. The answer can correctly say the strike-cancelled flight is not covered while citing only the general cover clause.

A traveller who opens that citation finds wording that grants cover, with nothing about the exclusion. To support the answer, the citation has to open the industrial-action exclusion on its page.

What citation features return

Anthropic's Claude citations return cited text and source locations: character positions for plain text, page ranges for PDFs, and block positions for custom content. Anthropic's documentation says citations are guaranteed to contain valid pointers to the provided documents. You still need to check whether the cited text supports the statement.

Anthropic's search result blocks let an application supply its own passages with a source and title, and each citation carries the source and title you provided. Claude cites whole text blocks within them, and the documentation says to split your search result content into smaller blocks for finer-grained citations. Your passage boundaries set how precisely citations can point in that setup.

OpenAI's file search documentation shows an example answer with file-citation annotations, references to files placed in the answer text. Each holds a file ID, a filename and an index the page does not explain, with no page or quoted passage.

OpenAI's file search omits its search results from the response by default; use the include parameter to return them when you need to inspect the passages found.

When a feature returns only a file reference, your application needs its own record of the supplied passage to make a link open that passage.

When a citation opens the wrong place

A LangChain forum user building a textbook study assistant reported citations to pages that did not contain the claimed information. The application's sidebar also showed different pages from those referenced in the answer.

Three RAGFlow users reported citations that went wrong. With the DeepDOC (Go) parser, a table crossing a page break kept correct passage text while its citation thumbnail and PDF highlight showed the wrong page.

On wide tables parsed with the MinerU OCR engine, highlights landed on the page header instead of the cited table rows. In a third report, an agent's citations could not open the original PDF.

The wrong or unverifiable citations collection gathers related reports. Check the destination in the interface readers use, including the displayed page and highlighted region.

When the cited passage does not support the statement

A citation that opens the right place can still fail the second check. One Hacker News commenter wrote that an LLM's RAG citations routinely point to articles that do not support its assertions.

Read each statement against its cited text, including conditions, exceptions and limits. For the traveller, a passage granting cancellation cover does not support the statement that industrial action is excluded, even though both passages concern the same question.

What automatic checks can tell you

Google Cloud's Check grounding scores how well an answer is supported by, or grounded in, reference texts you supply and, for each claim, cites the supplied texts that support it. In its current version, a sentence is one claim, and one that is only partly supported is not considered grounded.

A 2026 study of scientific-paper questions checked the same answers with automatic checkers validated against human labels. Depending only on checker strictness, about 3% to about 18% of citations were flagged as unsupported. The checkers agreed weakly on what to flag. The authors say the automatic citation check they built must not be the only gate in safety-critical settings.

A 2026 stress test paired each cited passage with a justified claim and an overstated one, labelled by two people. Models judging support failed to score the stronger claim lower in 47.2% of comparisons with a generic prompt and 24.5% when asked how strongly the passage justifies it. The study does not measure how often real systems overstate.

A first setup and a check

A practical first setup is to preserve each passage's source file, page or text position, and identifier, then use the citation feature's returned references to build links. Save the exact passages supplied to the model, the answer and its citation data together.

For a few real questions, pair each statement with its cited passage. Open each link, check that it shows the passage the application supplied, and check whether the text supports the full statement. Record wrong locations separately from unsupported statements.

A wrong location sends you to the source and page data kept when text was pulled from the file and divided into passages. An unsupported statement sends you to the answer: what the model wrote from the passages it was given. The next piece covers when an answer should say "I don't know".

Join the waitlist: one email when there is something to try.

Read the pain map: Retrieval and citations.