Truth Knowledge Base
The Truth Knowledge Base is a repository of verified facts and information that TruthVouch uses to detect hallucinations and verify AI-generated content.
What are Truth Nuggets?
Truth Nuggets are bite-sized pieces of verified information:
Characteristics:
- Factual — Verified as accurate
- Specific — Focused on a single claim
- Sourceable — Tied to authoritative sources
- Certified — Cryptographically signed
- Versioned — Track changes over time
Examples:
"The Great Wall of China is approximately 13,171 miles long."Source: UNESCO World HeritageVerified by: history@company.comCertified: 2024-01-15"Our product minimum order is 100 units."Source: Sales TeamVerified by: sales-manager@company.comCertified: 2024-01-01"Anthropic was founded in 2021."Source: Public RecordsVerified by: research@company.comCertified: 2023-12-01Why They Matter
1. Detect Hallucinations
Compare AI responses against your verified knowledge:
AI Response: "The Great Wall is 5,000 miles long"Truth Nugget: "13,171 miles long"Result: HALLUCINATION DETECTED ❌2. Maintain Accuracy
Ensure AI outputs are consistent with company facts:
AI Response: "Minimum order is 50 units"Truth Nugget: "Minimum order is 100 units"Result: ACCURACY CHECK FAILED ❌3. Standardize Information
Prevent contradictory information in customer-facing AI:
Chatbot 1: "We're founded in 2020"Chatbot 2: "We're founded in 2021"Truth Nugget: "Founded in 2021"Result: Chatbot 1 marked unreliableKnowledge Base Structure
Categories
Organize nuggets by domain:
- Company Facts — Founded date, locations, products
- Product Information — Features, pricing, compatibility
- Compliance — Legal requirements, regulations
- Industry Data — Market size, competitor info
- Historical Facts — Verified past events
Metadata
Each nugget includes:
- Content — The fact itself
- Category — Domain classification
- Source — Where fact came from
- Verified by — Person who confirmed accuracy
- Verification date — When confirmed
- Expiration (optional) — When fact becomes outdated
- Confidence (1-5) — How certain the fact is
- Related nuggets — Linked facts
Creating Truth Nuggets
Via Dashboard
1. Navigate to Knowledge Base → Platform → Knowledge Base → Truth Nuggets
2. Click “Create Nugget”
3. Fill in details:
- Fact (required)
- Category (required)
- Source (required)
- Confidence level (1-5 stars)
- Expiration date (optional)
4. Add sources
- URL links
- Document references
- Contact information
5. Verify
- Add internal approver
- Request review from team
6. Publish
- Nugget becomes active
- Certificate generated
- Available for scanning
Via API
curl -X POST https://api.truthvouch.io/v1/nuggets \ -H "Authorization: Bearer token_abc123..." \ -H "Content-Type: application/json" \ -d '{ "content": "The Great Wall of China is approximately 13,171 miles long", "category": "historical_facts", "source": "UNESCO World Heritage", "confidence": 5, "verified_by": "history@company.com", "sources": [ { "type": "url", "url": "https://whc.unesco.org/..." } ] }'Bulk Import
Upload CSV with nuggets:
content,category,source,confidence,verified_by"The Great Wall of China is 13,171 miles long",historical_facts,UNESCO,5,history@company.com"Our minimum order is 100 units",product_info,Sales Team,5,sales@company.com"Founded in San Francisco in 2021",company_facts,Public Records,5,hr@company.comDashboard:
- Knowledge Base → Bulk Import
- Download template
- Fill in facts
- Upload CSV
- Review and approve
Managing Your Knowledge Base
View Nuggets
Dashboard:
- Platform → Knowledge Base → Truth Nuggets
- Filter by category, status, age
- Search by content or source
- Sort by confidence, date
Columns:
- Content preview
- Category
- Confidence level
- Verified by
- Verification date
- Status (active/expired/pending)
- Usage (# of scans that checked this)
Edit Nuggets
Update information:
- Click nugget
- Edit fields
- Save (creates new version)
- Old version retained (audit trail)
Deprecate:
- Mark as “Deprecated”
- Set expiration date
- Scanning still uses it until expiration
- Generates new certificate
Archive Nuggets
Move outdated nuggets to archive:
- Select nuggets
- Click “Archive”
- No longer used in scanning
- Can be restored later
Verification & Certification
Verification Workflow
1. Create Nugget State: DRAFT
2. Request Review State: PENDING_REVIEW Assigned to: Approver
3. Approver Reviews Options:
- Approve → State: VERIFIED
- Request changes → State: NEEDS_REVISION
- Reject → State: REJECTED
4. Publish State: ACTIVE Certificate generated
Cryptographic Certification
Each verified nugget receives a certificate:
{ "certificate_id": "cert-abc123", "nugget_id": "nugget-xyz789", "content_hash": "sha256:abcdef...", "verified_at": "2024-01-15T10:00:00Z", "verified_by": "history@company.com", "signature": "...", "expires_at": "2025-01-15T10:00:00Z"}Signature covers:
- Content (prevents tampering)
- Verification date
- Verifier identity
- Expiration date
Validation:
- Verify signature using issuer’s public key
- Check expiration date
- Confirm content hash matches
Blockchain Transparency (Optional)
For maximum transparency, certificates can be:
- Hashed and stored on blockchain
- Publicly verifiable via blockchain explorer
- Permanent audit trail
Enable in settings: Organization → Settings → Knowledge Base → Blockchain transparency
Using Nuggets for Scanning
Automatic Hallucination Detection
When Gateway scans responses:
1. Extract claims from response2. Search knowledge base for related nuggets3. Compare claims against nuggets4. Calculate similarity score5. If contradiction found: - Log detection - Create alert - Mark response as potentially false6. Return risk score to applicationManual Verification
Users can manually check responses:
Dashboard:
- Alerts → View response
- Click “Check against Knowledge Base”
- See matching nuggets
- Compare with response claims
- Mark as verified or false
API-Based Verification
curl -X POST https://api.truthvouch.io/v1/verify \ -H "Authorization: Bearer token_abc123..." \ -H "Content-Type: application/json" \ -d '{ "content": "AI response text to verify", "context": "conversation context" }'
# Response{ "score": 0.85, "matches": [ { "nugget_id": "nugget-xyz789", "confidence": 0.92, "content": "The Great Wall is 13,171 miles long", "status": "contradicts" } ], "hallucination_risk": 0.8}Analytics & Insights
Knowledge Base Metrics
Dashboard: Platform → Analytics → Knowledge Base
Metrics:
- Total nuggets
- Nuggets by category
- Verification coverage
- Most-used nuggets
- Detected contradictions
Scanning Impact
See how nuggets affect scanning:
- % of responses checked against nuggets
- Hallucinations detected per nugget
- False positive rate
- Time to detect hallucination
Usage Reports
Generate reports:
- Analytics → Reports
- Select “Knowledge Base Usage”
- Choose date range
- View:
- Nuggets verified
- Contradictions found
- Response modifications
- Team contributions
Best Practices
1. Keep Nuggets Fresh
- Review quarterly
- Update dates when facts change
- Archive outdated information
- Monitor expiration dates
2. Be Specific
Good: “Apple Inc. was founded on April 1, 1976” Bad: “Apple is an old company”
3. Cite Sources
- Link to authoritative sources
- Include verification details
- Track who verified
- Note verification date
4. Organize by Category
- Create category hierarchy
- Use consistent naming
- Train team on structure
- Update categories as needed
5. Get Team Input
- Invite subject matter experts
- Use approvers from relevant teams
- Track verification history
- Encourage collaboration
Troubleshooting
Nugget Not Detecting Hallucinations
Possible causes:
- Response doesn’t directly contradict nugget
- Similarity threshold too high
- Nugget is too vague
- Response is mostly correct with minor error
Solution:
- Review response vs nugget
- Adjust confidence/specificity
- Split vague nuggets into specific ones
- Adjust similarity threshold
High False Positive Rate
Possible causes:
- Nuggets are too broad
- Confidence scores too high
- Contradictions are acceptable
- Different phrasings are marked as contradictions
Solution:
- Lower confidence for ambiguous nuggets
- Review and adjust contradicting nuggets
- Mark acceptable variations
- Tune similarity algorithm
Nuggets Not Used in Scanning
Check:
- Is knowledge base enabled? (Settings → Scanning)
- Are nuggets verified/active?
- Is response actually checked? (May need broader category)
- Is similarity high enough? (Adjust threshold)
Integration Examples
Company with Multi-Product Lines
Create nuggets for each product:
Category: Product Info- Product A: Min order 100 units- Product B: Min order 50 units- Product C: Min order 200 unitsAI chatbot scans responses against product-specific nuggets.
Compliance-Heavy Organization
Create compliance nuggets:
Category: GDPR Compliance- Max data retention: 90 days- Required consent: Must be explicit- Data processors: Must sign DPA
Category: HIPAA Compliance- Minimum encryption: AES-256- Access logs: Required for all systemsGateway compares AI responses about compliance.
Global Organization
Create region-specific nuggets:
Category: Company Facts (US)- Founded: 1995 in San Francisco
Category: Company Facts (EU)- Founded: 1998 in London- Headquarters: Berlin
Nuggets tagged by region, checked based on context.Next Steps
Ready to create nuggets? → Go to Dashboard
Need more details? → Hallucination Detection → API Reference
Want examples? → Knowledge Base Examples