How It Works
Extract Claims
TraceLM parses LLM responses and extracts individual factual claims that can be verified.
Verifiers
Knowledge Base
Check claims against your uploaded facts and domain knowledge.
- Best for: Domain-specific verification
- Speed: Fast
- Accuracy: High (when facts are available)
Web Search
Search the web for evidence supporting or contradicting claims.
- Best for: Current events, general facts
- Speed: Medium
- Accuracy: Good
Multi-Model
Cross-reference claims with other LLMs for consistency checking.
- Best for: Complex claims, reasoning validation
- Speed: Slow
- Accuracy: Good
Citation Validator
Validate cited sources by fetching and checking them.
- Best for: Responses with citations
- Speed: Medium
- Accuracy: High
Trust Score
The trust score is a 0-100 value indicating confidence in the LLM output’s accuracy.| Score Range | Level | Interpretation |
|---|---|---|
| 80-100 | High | Response is well-supported by evidence |
| 60-79 | Medium | Most claims verified, some uncertain |
| 40-59 | Low | Significant unverified or contradicted claims |
| 0-39 | Very Low | Response likely contains hallucinations |
Claim Verdicts
Each extracted claim receives one of three verdicts:Supported
Supported
Evidence was found that supports the claim. The claim is likely accurate.
Contradicted
Contradicted
Evidence was found that contradicts the claim. The claim is likely a hallucination.
Unverifiable
Unverifiable
No sufficient evidence was found to verify or contradict the claim.
Quick Start
Automatic Verification
Enable verification for all requests:- Python
- TypeScript
Manual Verification
Verify specific traces on demand:- Python
- TypeScript
Knowledge Base
The knowledge base verifier is most effective when you provide domain-specific facts. You can manage your knowledge base from the TraceLM dashboard:- Create and manage facts
- Bulk import from files
- Organize by categories and sources
- Configure verification settings
Best Practices
Choose the right verifiers
Choose the right verifiers
- Use knowledge base for domain-specific applications
- Use web search for current events and general knowledge
- Use multi-model for complex reasoning tasks
- Use citation validator when responses include references
Build a comprehensive knowledge base
Build a comprehensive knowledge base
The knowledge base verifier is only as good as your facts. Invest in building a comprehensive set of verified facts for your domain.
Handle verification async
Handle verification async
Verification can add latency. Consider running it asynchronously and displaying results when ready, rather than blocking the user experience.
Set appropriate thresholds
Set appropriate thresholds
Define trust score thresholds for your use case. A customer support bot may need 80+ while a creative writing assistant may accept 60+.