Skip to main content

Epistemic Validation

Model confidence and uncertainty in generated content. Use epistemic markers to capture when the AI is uncertain and needs to express probabilistic information.

Overview

Epistemic uncertainty allows you to:

  • Capture confidence levels in generated facts
  • Express probabilistic information when certainty is low
  • Flag uncertain data for human review
  • Generate with awareness of knowledge limitations

World Building with Uncertainty Example

This example generates a fantasy world's technological landscape with epistemic uncertainty markers:

curl -X POST http://localhost:2008/objectGen \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"prompt": "Generate a schema that defines the technological landscape of the world",
"definition": {
"type": "object",
"instruction": "Defines the technological landscape of the world, including its level of advancement and notable innovations.",
"properties": {
"Level": {
"type": "string",
"instruction": "Categorize the overall technological sophistication of the world, such as medieval, industrial, or advanced futuristic.",
"epistemic": {
"active": true
}
},
"Inventions": {
"type": "string",
"instruction": "Describe the most significant technological discoveries and their transformative impact on the society, economy, and daily life.",
"epistemic": {
"active": true
}
}
}
}
}'

Expected Response

{
"Level": "Advanced Industrial Revolution with Early Electrical Age characteristics",
"Inventions": "Steam-powered mechanization and electrical telegraphy have fundamentally transformed manufacturing efficiency and long-distance communication, enabling rapid urbanization and global trade networks.",
"epistemic_metadata": {
"Level": {
"confidence": 0.75,
"reasoning": "The categorization is based on typical technological markers, but the specific world context may have unique factors that affect this classification.",
"alternatives": [
"Late Industrial with Experimental Electrical",
"Proto-Modern Transitional Era"
]
},
"Inventions": {
"confidence": 0.68,
"reasoning": "While these are historically significant innovations, without specific context about this particular world's history, there's uncertainty about which inventions had the most transformative impact.",
"caveats": [
"Impact may vary based on cultural adoption rates",
"Regional differences in technological distribution not accounted for"
]
}
}
}

Epistemic Configuration

Basic Epistemic Flag

Enable epistemic uncertainty tracking for a field:

{
"type": "string",
"instruction": "Your instruction here",
"epistemic": {
"active": true
}
}

Advanced Epistemic Options

{
"type": "string",
"instruction": "Your instruction here",
"epistemic": {
"active": true,
"confidence_threshold": 0.7,
"require_alternatives": true,
"require_reasoning": true
}
}

Epistemic Metadata Structure

When epistemic uncertainty is active, the response includes metadata:

FieldTypeDescription
confidencenumberConfidence level (0.0 - 1.0)
reasoningstringExplanation of the confidence level
alternativesarrayAlternative possible values (if applicable)
caveatsarrayImportant qualifications or limitations
sourcesarrayKnowledge sources referenced (if applicable)

Use Cases

  1. Factual Content Generation: Flag uncertain facts for verification
  2. Research Summaries: Express confidence in synthesized information
  3. Prediction Tasks: Model uncertainty in forecasts
  4. Knowledge Extraction: Identify areas where more information is needed
  5. Content Moderation: Flag content that may need review

Practical Example: Scientific Paper Summary

{
"prompt": "Summarize the key findings of a hypothetical research paper on quantum computing",
"definition": {
"type": "object",
"properties": {
"main_finding": {
"type": "string",
"instruction": "State the primary conclusion of the research",
"epistemic": {
"active": true,
"require_alternatives": true
}
},
"methodology": {
"type": "string",
"instruction": "Describe the research methodology used",
"epistemic": {
"active": true
}
},
"impact_assessment": {
"type": "string",
"instruction": "Evaluate the potential impact on the field",
"epistemic": {
"active": true,
"confidence_threshold": 0.6
}
}
}
}
}

Best Practices

  1. Use Selectively: Enable epistemic tracking only for fields where uncertainty matters
  2. Set Thresholds: Use confidence_threshold to filter low-confidence outputs
  3. Request Alternatives: Use require_alternatives for multi-option scenarios
  4. Combine with Decision Points: Route low-confidence outputs for refinement
  5. Document Usage: Track which fields commonly have low confidence

Confidence Interpretation Guide

Confidence RangeInterpretationAction
0.9 - 1.0Very HighAccept as-is
0.7 - 0.89HighUse with minor review
0.5 - 0.69MediumReview and verify
0.3 - 0.49LowManual verification required
0.0 - 0.29Very LowRegenerate or research
Combining Features

Combine epistemic uncertainty with decision points to automatically route low-confidence outputs for regeneration or human review.

Next Steps