generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
Based on my comprehensive analysis, I've identified the root cause of your pet clinic chatbot hallucination issue. Here's what's happening:
Root Cause Analysis
The Problem: Your pet clinic chatbot is recommending nutritional products you don't offer because the nutrition agent is hallucinating responses when
the nutrition service returns 404 errors.
Key Findings:
- High 404 Error Rate: The nutrition-service-nodejs is returning 60% 404 responses (10,816 out of 18,008 requests), indicating customers are asking
about pet types not in your database. - Agent Hallucination Pattern: When the nutrition service returns "Error: Nutrition service could not find information for pet: [pet_type]", the
nutrition agent is fabricating product recommendations instead of gracefully handling the missing data. - Service Architecture Issue: The nutrition agent is designed to provide recommendations but lacks proper fallback logic when the underlying
nutrition service doesn't have data for specific pet types. - Error Propagation: The sample error logs show the nutrition agent receiving tool results like:
"Nutrition info for gecko: Error: Nutrition service could not find information for pet: gecko"
"Nutrition info for fish: Error: Nutrition service could not find information for pet: fish"
But instead of saying "we don't carry products for that pet type," it's making up recommendations.
Hi @awsapm my pet clinic chat bot is recommending nutritional pet products we do not have in our clinic. The above is context we got from an initial troubleshooting. Can you help confirm the issue?
Metadata
Metadata
Assignees
Labels
No labels