Loop Engineering for RAG Question Parsing: The Small Loop That Runs Before Retrieval
A user asks the pipeline: “what is the premium?” on a fifty-page insurance policy. The parser looks at the doc profile it just got from the parsing brick: doc_type: insurance_policy n_pages: 47 toc_df names General Information, Coverages, Exclusions, Endorsements. No section called Premium. Naive top-k embeds “premium” and scans the whole document. It returns exclusion…