You are developing a RAG pipeline and notice that the model often hallucinates when retrieving documents with low relevance. Which prompt engineering technique should you implement to improve grounding?
Trap 1: Disable the system message.
Disabling the system message removes control over model behavior.
Trap 2: Increase the temperature parameter to 1.0.
High temperature increases randomness, worsening hallucinations.
Trap 3: Switch from GPT-4o to GPT-3.5 Turbo.
Smaller models are generally more prone to hallucinations in complex RAG tasks.
- A
Implement Chain-of-Thought reasoning with negative constraints.
Explicit instructions to avoid guessing combined with CoT improve factual accuracy.
- B
Disable the system message.
Why wrong: Disabling the system message removes control over model behavior.
- C
Increase the temperature parameter to 1.0.
Why wrong: High temperature increases randomness, worsening hallucinations.
- D
Switch from GPT-4o to GPT-3.5 Turbo.
Why wrong: Smaller models are generally more prone to hallucinations in complex RAG tasks.