Most retrieval failures are not model failures. They are context failures. A retrieval step that can return documents, chunks or rows from anywhere gives the model a wide field of plausible facts to blend, and blending is exactly what a language model is good at. When the authoritative table is the only thing retrievable, the question changes from "is this answer true" to "is this identifier in the table", which is a question code can answer.
That distinction matters because schema-valid output is not the same as correct output. Constrained decoding and JSON Schema enforcement can guarantee that a response matches the schema, but they do not guarantee that the values inside it are real, and teams that stop measuring after adding a schema trade a visible failure mode for an invisible one, as a production write-up on structured output puts it. The same write-up notes that the enum violation case is syntactically valid, schema-invalid, and semantically reasonable from the model's point of view. A validator that checks membership against the table is what closes that gap.
The same lesson shows up in research on citation. A system that only retrieves documents improves the probability that output is correct, but a system that attributes claims creates verifiability, which is the stronger property (attribution and citation chapter). Your table's primary keys are that verifiability layer for structured data.
Worked example. Suppose a support team asks a model to write a summary of a customer's balance activity and to name the balance transaction IDs involved. There are 412 payments in the month, and the gap between 412 and the balance transaction count is expected, not a bug: a balance transaction is created for every movement of money into or out of the Stripe balance, not only for sales (Stripe balance transaction types). If the model can name any string that looks like a transaction ID, a reader has no way to check it. If the only legal values are the keys in a closed table, the reader can join on every one of them.



