Databricks Certified Generative AI Engineer Associate — Question 68
A Generative AI Engineer is creating a customer support bot that should respond differently to an end user based on the sentiment in their initial message. For example, if the end user’s message was angry, the bot should try to de-escalate their negative sentiments as it solves the customer query. They want to make sure their approach follows best practices.
Which approach will do this?
Answer options
- A. Use an encoder-only LLM model to both detect sentiment and generate replies based upon the detected sentiment.
- B. Implement a RAG architecture for how to respond to users depending on detected sentiment.
- C. Use linear regression model to classify sentiment and feed the result to a system prompt for the LLM to respond.
- D. Create a chain which first uses an LLM to classify sentiment, then changes system prompt for the customer interaction LLM based upon the initial customer query sentiment.
Correct answer: D
Explanation
The correct answer is D because it effectively combines sentiment classification and response generation in a systematic way, allowing for tailored responses based on user sentiment. Options A, B, and C do not appropriately integrate the sentiment analysis with the response generation or may use inappropriate methods for sentiment detection, making them less effective for the desired outcome.