Interview practice question
RAG answers ignore retrieved documents
Machine Learning · Prompt Engineering · Intermediate
In your RAG system, the model sometimes ignores the retrieved documents and answers from general knowledge. How do you fix the prompt?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Instruct to answer only from provided documents.
- Require citations to document IDs.
- Instruct to say when documents don't contain the answer.
- Place documents clearly; question after documents.
- Evaluate faithfulness.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.