Member-only story
The Secret to Foolproof AI Prompts: Prompting With Data
I’ve cracked the code to prevent AI from making stuff up.
3 min readJun 19, 2024
Yes, you read that right. No more hallucinations, no more false evidence, just straight-up facts.
And the best part? I didn’t have to change much. All it took was a slight change in the way I prompt.
If you’re ready to learn what it is, let’s dive in.
Data-Driven Prompting
I call it “prompting with data”. If it’s your first time hearing about it, here’s the basic gist:
- Use Template: Instead of describing your task, provide ChatGPT with a response template.
- Include Data: Attach relevant data directly to the prompt. This could be a URL, a PDF, or even simple text.
- Add Directive: Prompt AI to fill the template using the attached data.
Here’s what a prompt using this technique would look like.
The prompt above takes information from the attached PDF and writes an essay following the provided template.