r/LangChain • • 3d ago

Discussion Does a second model catch citation errors the first model misses

2 Upvotes

9 comments sorted by

1

u/ChemicalExcellent463 2d ago

i'd use a different vendor's model in a fresh session, without the drafting chat; that caught real problems for me, while self-review found nothing and burned tokens anyway. review is a 0 or a 1 to me: if it misses the real problem, making that call cheaper doesn't help.

1

u/idimetrix 2d ago

There's a cheaper check that needs no model at all. Make it return the exact quoted span with every citation, then verify in plain code that the span really exists in the chunk it points to. That kills the made up and wrong-document citations, which is usually most of them.

What it won't catch is "real quote, wrong conclusion". Thats the only part worth spending a second model on, and a different one in a fresh context makes sense there since it only has to judge whether the quote supports the claim.

1

u/LLM-logs 2d ago

Self-review fails for a structural reason: the checker reads the same chunks with the same attention, so the blind spot is correlated, not random. The layering that works is by failure class. Fabricated quotes die to a string match against the source, right-quote-wrong-document dies to checking the span against the chunk the citation points at, and what survives both is the entailment residue, real quote wrong conclusion, which is the only class worth a second model. Use a different vendor in a fresh context for that residue, since it only has to judge whether the quote supports the claim. Before buying any of it, sample a few hundred citations and count the classes, and keep every caught error as a permanent regression case so a model swap shows up as a changed mix rather than a surprise.

1

u/Elmanouzi_Fogosa 1d ago

changing the context outperforms changing the model imo. if you only feed the verifier the specific claim and the raw text of the cited chunk without the original user query, even the same model catches way more hallucinations