In this tutorial, we will explore how to implement a intent detection agent. This agent aims to reduce the cost of retrieving answers from vector store. Sending irrelevant queries to a cheaper model that doesnt access the vector store.
This notebook is based in one of my projects. There you can find an implemention with chainlit.