Anchor
Validate information chunks against the full document argument using a hierarchical model to prevent LLMs from citing internally refuted or out-of-context information.
Anchor is a Spring Boot service designed to significantly improve Retrieval-Augmented Generation (RAG) by moving beyond simple keyword matching to deeply validate information chunks against the full hierarchical structure and inherent arguments of source documents. It tackles the critical flaw in vanilla RAG where LLMs might confidently present information that is technically present in a chunk but refuted elsewhere in the same document. Anchor offers both a machine-facing interface for synchronous chunk validation, providing explicit argumentative roles and document stances, and a human-facing interface for asynchronous three-agent deliberation. In this deliberation, a critic with a restricted, macro-only view ensures structural consistency and honest synthesis, making Anchor a robust primitive for building more reliable and source-grounded AI agents.