Skip to content

CA-RAG: Constraint-Aligned Retrieval for Structurally Faithful Long-Form Generation

Vimal Kumar Kumar, Meghana Kshirsagar, Conor Ryan

cs.AI

Abstract

Retrieval-augmented generation (RAG) typically optimises evidence selection for semantic relevance, whereas compliance-sensitive long-form generation also requires evidence supporting explicit structural obligations. Semantically relevant retrieval may therefore omit information needed for mandatory downstream clauses. We propose Constraint-Aligned RAG (CA-RAG), a retrieval-conditioning framework that augments section-specific queries with ontology-derived structural constraints and policy-grounded knowledge-graph relations before evidence selection. Retrieval-only evaluation with manually annotated evidence shows consistent improvements across retrieval budgets. At k=6k=6, CA-RAG increases Precision@kk from 0.52680.5268 to 0.56920.5692, pooled Recall@kk from 0.54020.5402 to 0.59500.5950, and F1@kk from 0.53890.5389 to 0.56720.5672 over standard RAG. Generation experiments further show improvements in compliance and reliability in several model--domain settings, while generation-only constraints achieve higher clause coverage but lower overall compliance and reliability. These results indicate that structurally aligned retrieval can improve evidence sufficiency in compliance-sensitive long-form generation.

Create a lesson

Metadata

Categories
cs.AI, cs.CL, cs.IR
Comments
18 pages (including appendix), 5 figures