Why RAG on legal text keeps hallucinating dates - and what actually fixed it
A model was hallucinating dates in legal text because the source was laid out in a way that made it hard for the model to understand. The problem was fixed by restructuring the source into clear articles, setting source priorities, and adding verification dates. This approach removed the error and improved the model's accuracy. Engineers can use the same approach and a pre-built repository to improve their own RAG pipelines.