<< Home | Prompting craft
AI stops hallucinating by grounding answers in sources
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2026-03-04 |
The move
Force the model to retrieve information from specific sources before generating an answer.Steps
- Identify reliable source URLs for your topic.
- Instruct the AI to search those specific sources first.
- Require the AI to answer strictly based on retrieved evidence.
- Mandate citations for every claim made.
- Explicitly command the AI to say 'I don't know' if information is missing.
Prompt for your AI
Before answering, search {sources} for {number} credible references. Answer {my_question} strictly based on evidence found. Include the source URL for each claim. If verified information is unavailable, respond with 'I don't know' instead of making assumptions.
What happened
The user struggled with ChatGPT hallucinating facts due to its predictive nature. They implemented a 'manual RAG' technique that forces the model to search specific, reliable sources and cite them before answering. This change significantly improved accuracy and allowed the model to admit when it lacks information. Commenters confirmed that allowing the model to admit ignorance yields superior results.Who confirmed it
The user noted the 'improvement in accuracy is striking,' and a commenter added that 'letting it admit when it doesn't have an answer can yield superior outcomes.'Watch out
None explicitly stated, though it relies on the model's ability to accurately access and interpret the specified external sources.Give it to your agent
Read https://howtheyuse.ai/p/ai-stops-hallucinating-by-grounding-answers-in-sources.md and help me do this.