← All questions
RAGHard· Retrieval· Compliance· System Design

Compliance requires generated claims to cite a span no...

The conflict arises from conflating the citation unit with the retrieval unit. By indexing at a granular level, you maintain high retrieval precision and satisfy compliance requirements. Before the generator processes the retrieved content, expand the hit to its parent window to restore necessary context. Measurement should also be adjusted: compute IoU on the expanded span (which affects prompt cost and context) while scoring the citation span separately against the annotated excerpt. Be prepared to account for the added costs of more vectors and a routing step.

Code playground (Python)