# What to do instead: route by question type def chunk_for_question(question: str, line_df, toc_df): intent = classify_intent(question) if intent == "point_lookup": # "what is the effective date?" return chunk_by_line(line_df) elif intent == "section_retrieval": # "what are the exclusions?" return chunk_by_toc_section(line_df, toc_df) elif intent == "comparison": # "compare clauses A and B" return chunk_by_full_section(line_df, toc_df)