Legal Citation Hallucination Detector
ProseAI, via Break Through Tech
An NLP pipeline that flags hallucinated legal citations in AI-generated documents.
the problem
AI-generated legal documents can cite cases or quotes that do not exist. The pipeline needed to catch fabricated citations in a document and flag misquoted ones, favoring recall on fabricated citations.
what i made
- Building a pipeline using citation parsing, existence checking and semantic similarity against a frozen Alaska family-law corpus.
- Implementing a citation extractor and existence checker with sentence-transformers and rapidfuzz.
- Developing a quote-fidelity checker that combines string and semantic similarity.
- Evaluating with precision, recall and F1 on a labeled benchmark of 200 documents, prioritizing recall on fabricated citations.
- Packaging findings into a failure taxonomy and an open-source Python module for ProseAI.
stack and timeline
- stack
- Python
- sentence-transformers
- rapidfuzz
- NLP
- timeline
- 2026 to now