Prompt LibraryEngineering
Hallucination Canary & Detector Prompt
Inject a canary to detect when the model invents facts.
The prompt
Design a hallucination canary for the task below:
1. A fictional entity or fact the model should NOT know about, planted in a system note.
2. The detection rule: if the output references the canary as real, flag as hallucination.
3. A second test: ask about a real entity the model should know — if it denies the real one, that's a different failure.
4. The threshold for action.
Task: {{task}}Replace the {{fields}} with your own context and tighten the rules to match your domain.



