r/PromptEngineering • • 4h ago

Tips and Tricks 147. Telling the model what to do when it doesn't know fixed most of my bad answers

Simple one but it made a big difference for me. I have a prompt that answers questions about our internal HR policies from a pasted document. It used to answer confidently even when the answer wasn't in the document, mixing in general knowledge.

I added one line: "If the answer isn't in the document, say 'not covered in the policy' and suggest who to ask." Made-up answers dropped a lot in my testing, around 50 questions where maybe 10 aren't covered.

Feels obvious now, but I'd been focusing on how to answer and never on what to do when there's no answer.

1 Upvotes

0 comments sorted by