Prompt Engineering Tutorial and Prompt PracticePrompt Library
Truthfulness
Truthfulness prompts (overview)
CHAPTER PROMPT DECISION
01Prompt problem
Truthfulness prompts (overview)
02Reviewable output
A reusable prompt, example set, evaluation record or safety rule with its task boundary preserved.
03Definition of done
Run at least one representative case, inspect the result and record what still requires human review.
The point of truthfulness isn't "making the LLM never wrong." It's: when evidence is insufficient, explicitly say you don't know, surface the uncertainty, and verify claims against given facts.
Learning Path (suggested order)
- Beginner: Fix output format (conclusion + evidence + uncertainty)
- Intermediate: Verify claims within given facts/context
- Advanced: Traceable answers for business use
What Is a Truthfulness Prompt?
A Truthfulness Prompt specifies evidence sources and output constraints, requiring the model to answer within verifiable facts and output uncertainty or refuse when information is insufficient.
┌─────────────────────────────────────────────────────────────┐
│ Truthfulness Prompt Flow │
├─────────────────────────────────────────────────────────────┤
│ │
│ Question/claim → Available facts → Conclusion → Evidence/uncertainty │
│ (statement) (facts) (holds/not) (citation/note) │
│ │
└─────────────────────────────────────────────────────────────┘
Why Truthfulness Matters
| Use Case | Specific Application | Business Value |
|---|---|---|
| Content production | Fact-checking, source citing | Lower misinformation risk |
| Customer service | Standardized replies, no guessing | Higher trust |
| Compliance/legal | Traceable evidence | Lower compliance risk |
| Research/writing | Fact consistency checks | Better credibility |
Business Output (PM Perspective)
With Truthfulness Prompts you can deliver:
- Traceable answers: Conclusion + evidence citations
- Safe fallback: Explicit refusal when info is insufficient
- Auditable output: Easy for human review and compliance checks
Completion criteria (suggested):
- Read this page + complete 1 exercise + self-check once
Core Prompt Structure
Goal: Draw a conclusion based on facts
Evidence: Only cite the given facts
Format: Conclusion + evidence + uncertainty
Input: Question or claim
General Template
You are a fact-checker. You can only answer based on the given facts.
Question/claim:
{claim}
Known facts:
{facts}
Requirements:
1) If facts are insufficient, output "Cannot determine"
2) Conclusion must cite corresponding fact numbers
3) Fixed output format
Output format:
- Conclusion:
- Evidence:
- Uncertainty:
Quick Start: Simple Verification
Question: Did Company A's revenue grow in 2023?
Known facts:
1) Company A's 2022 revenue was $1 billion
2) Company A's 2023 revenue was $1.2 billion
Output format:
- Conclusion:
- Evidence:
- Uncertainty:
Example 1: Correcting Hallucination
Claim: The Sun is 3 million km from Earth.
Known facts:
1) The average Earth-Sun distance is approximately 150 million km
Output format:
- Conclusion:
- Evidence:
- Uncertainty:
Example 2: Refusing When Info Is Insufficient
Question: Is Company B planning layoffs?
Known facts:
1) Company B launched a new product last quarter
2) No public financial reports or announcements available
Output format:
- Conclusion:
- Evidence:
- Uncertainty:
Example 3: Comparing Multiple Facts
Claim: The course conversion rate improved because of the price drop.
Known facts:
1) This month's price is 10% lower than last month
2) Conversion rate increased by 8%
3) A new landing page launched this month
Output format:
- Conclusion:
- Evidence:
- Uncertainty:
Migration Template (swap variables to reuse)
Claim/question: {claim}
Known facts: {facts}
Output: Conclusion + evidence numbers + uncertainty note
Self-check Checklist (review before submitting)
- Is the conclusion based only on the given facts?
- Are evidence source numbers clearly indicated?
- Does it refuse when info is insufficient?
- Is the output format fixed and parseable?
Advanced Tips
- Evidence numbering: Require citing fact numbers to avoid vague references.
- Confidence level: Output
high/medium/low. - Conflict handling: When facts contradict, output "Cannot determine."
- Two-way verification: Have the model output both supporting and opposing evidence.
- Step-by-step verification: First check whether facts cover the claim, then draw a conclusion.
Common Problems & Solutions
| Problem | Cause | Solution |
|---|---|---|
| Over-confident conclusion | Missing refusal rule | Add "Cannot determine" |
| Uses external knowledge | Evidence unrestricted | Specify "facts only" |
| Unclear evidence | No numbering required | Force citation numbers |
| Explanation too long | No format limits | Fix fields and length |
Recent Research Highlights (external summaries)
- TruthfulQA: A benchmark measuring "whether models avoid mimicking common human misconceptions," emphasizing truthfulness on commonly misunderstood questions.
- SelfCheckGPT: Uses self-consistency / diverse sampling in black-box settings to detect hallucinations, improving output credibility assessment.
Hands-on Exercises
Exercise 1: Refusal Scenario
Question: Was Company C profitable in 2024?
Known facts:
1) Company C lost $200M in 2023
2) 2024 financial report has not been released yet
Exercise 2: Evidence Numbering
Claim: Product D's sales dropped because of insufficient inventory.
Known facts:
1) Product D inventory decreased 30% this month
2) Sales dropped 15%
3) A competitor launched a promotion
Exercise Scoring Rubric (self-assessment)
| Dimension | Passing Criteria |
|---|---|
| Accurate conclusion | Consistent with facts |
| Clear evidence | Citation numbers included |
| Reasonable refusal | Refuses when info is insufficient |
| Stable format | Output fields consistent |
Index
References
Takeaways
- The core of Truthfulness is verifiability and refusal mechanism.
- Evidence numbering significantly improves auditability.
- Specifying "use given facts only" suppresses hallucination.
- Uncertainty should be explicitly output.
- Build stable output through templates and self-checks.