LLM or SetFit to identify user intent?
Today I was studying how to identify a user's intent when they reach out via chat.
The question that came up was: since I already have an integration with an LLM, does it make sense to use the AI itself to identify the intent? Or would it be better to use something more specific for classification, like SetFit?
I found it interesting to think about SetFit because it's more focused on this kind of problem: classifying short texts into known categories.
For example, in a banking chatbot, the user's message could be:
I want to pay a boleto today
And the classifier would return something like:
{
"intent": "payment_boleto",
"confidence": 0.92
}
After that, the LLM could come in for a second step, just to extract the necessary data, like amount, due date, barcode, or scheduled date.
My conclusion for now is that maybe the best architecture isn't to use an LLM for everything, but to combine tools: a lightweight classifier to identify the intent, and the LLM to handle more open-ended language and information extraction.