🚨 Issue Detected
What type of problem?
↓
Is it accuracy-related?
Wrong answers, hallucinations, irrelevant responses
↓ Yes
1️⃣ Check Prompt Quality
Is the prompt clear, specific, and well-structured?
↓
2️⃣ Evaluate Retrieval (RAG)
Are the right documents being retrieved? Check similarity scores.
↓
3️⃣ Assess Embeddings
Is the embedding model appropriate for your domain?
↓
4️⃣ Review Chunking
Are chunks too small (missing context) or too large (noise)?
↓
5️⃣ Check Context Window
Is important info being truncated? Token count within limits?
↓
6️⃣ Tune Model Settings
Adjust temperature, top_p, frequency_penalty
↓
7️⃣ Analyze Logs
Review evaluation metrics, user feedback, error patterns
↓
✅ Issue Resolved?
If not, iterate or escalate