A lightweight five-way query router for RAG-based dialogue systems using TF–IDF + multinomial logistic regression. Routes user queries to NORAG, LOCALRAG, WEBRAG, MEMORYONLY, or ASKCLARIFICATION with a 0. 45 confidence threshold fallback. Achieves 93. 6% test accuracy, 0. 935 macro F1, and 0. 993 weighted ROC AUC on 470 balanced examples. Includes full pipeline, Streamlit demo, confusion matrices, and 5-fold CV.
Anuj Yadav (Wed,) studied this question.