In advanced RAG (Retrieval Augmented Generation), we can use query routing to implement this functionality. Query routing allows us to easily achieve an If/Else-like feature in code.
Today, we'll introduce the principles of query routing, demonstrate how it works, and explore its application in real projects through code examples.



