
Answer-first summary for fast verification
Answer: The chatbot should be implemented as a multi-step LLM workflow. First, identify the type of question asked, then route the question to the appropriate model. If it’s an upcoming event question, send the query to a text-to-SQL model. If it’s about ticket purchasing, the customer should be redirected to a payment platform.
Option C is the correct answer because it describes a multi-step LLM workflow that first classifies the user's question type and then routes it to the appropriate specialized model or system. This approach directly addresses the business requirement of handling different question types (event details vs. ticket purchasing) with appropriate routing. For upcoming event questions, a text-to-SQL model can query databases for event information, while for ticket purchasing, redirecting to a payment platform is the proper solution. Option A is incorrect because it only handles previous events, not upcoming ones. Option B suggests separate chatbots, which is inefficient and creates a poor user experience. Option D is incorrect as it only handles payments, ignoring event information queries entirely. The community discussion shows 100% consensus on C, with users noting it effectively meets the different business requirements through proper classification and routing.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A Generative AI Engineer is designing a chatbot that must classify user questions by type and route them to appropriate models for generating answers. For instance, one user may ask for details about an upcoming event, while another may inquire about purchasing tickets for a specific event. What is the ideal workflow for this chatbot?
A
The chatbot should only look at previous event information
B
There should be two different chatbots handling different types of user queries.
C
The chatbot should be implemented as a multi-step LLM workflow. First, identify the type of question asked, then route the question to the appropriate model. If it’s an upcoming event question, send the query to a text-to-SQL model. If it’s about ticket purchasing, the customer should be redirected to a payment platform.
D
The chatbot should only process payments
No comments yet.