
A fast structural gate for RAG that reduces wrong-entity and “Frankenstein context” failures. This paper introduces TL Filter, a drop-in middleware layer derived from Triad Logic (TL) that verifies retrieved context before generation. TL Filter operationalizes three closure conditions—Identity (stable referents), Distinction (non-collapse / optional typed disjointness diagnostics), and Binding (query-connectedness)—by building an induced constraint graph over mentions and chunks. The system filters disconnected snippets, provides explainable drop reasons, and optionally proposes bridge search (bounded multi-hop retrieval) to reconnect relevant information. The paper includes a paper-executable algorithm specification, a production-shaped Python reference implementation, integration guidance, and an evaluation template with metrics targeting entity drift and unsupported narrative stitching.
Middleware, Artificial intelligence, TL Filter, Hallucinations, Artificial Intelligence, Triad Logic, Knowledge graphs, Identity clustering, Context filtering, LLM reliability, Retrieval-Augmented Generation, Hallucination, Rag
Middleware, Artificial intelligence, TL Filter, Hallucinations, Artificial Intelligence, Triad Logic, Knowledge graphs, Identity clustering, Context filtering, LLM reliability, Retrieval-Augmented Generation, Hallucination, Rag
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
