Extraction Results
Source Documents
-
test_policy.md
SuccessType: MD Size: 0.4 KB TokensTokens are the basic units of text that AI models process. A token is roughly 4 characters or 0.75 words on average.: 103 Words: 64
Extraction summary
- 2 definition
- 1 eligibility
Validation Passed
The generated JSON Rules code passed syntax validation.
The following 3 rules were extracted from your document:
Filter Rules
-
meets-income-threshold-requirement
definition A policy rule extracted from the document Low (60%)meets-income-threshold-requirement
-
meets-income-documentation-requirement
definition A policy rule extracted from the document Low (60%)meets-income-documentation-requirement
-
meets-financial-eligibility-criteria
eligibility Determines who qualifies for a benefit or service Low (60%)meets-financial-eligibility-criteria
No Conflicts Detected
The extracted rules are consistent. No conflicts were found between the policy rules.
Referenced External Documents
No external document references were detected in this document.
{
"_metadata": {
"source": "Policy logic extracted from: test_policy.md",
"generator": "Policy Logic Extractor",
"format": "json-rules-engine"
},
"rules": [
{
"name": "Monthly Income Threshold Requirement",
"priority": 20,
"conditions": {
"all": [
{
"fact": "monthlyIncome",
"operator": "greaterThan",
"value": {
"fact": "monthlyRentTripled"
}
}
]
},
"event": {
"type": "meets-income-threshold-requirement",
"params": {
"ruleId": "rule-001",
"ruleName": "Monthly Income Threshold Requirement",
"consequence": "meets_income_threshold_requirement",
"confidence": 0.97,
"sourceDocument": "test_policy.md",
"sourceChunks": [
"Section 3",
"chunk-2ec2b384e46c",
"Section 2: Income Requirements",
"chunk-fdb48a0a1101"
],
"note": "Condition: monthlyIncome > monthlyRent * 3. Evaluate monthlyRentTripled as a computed fact equal to monthlyRent * 3."
}
}
},
{
"name": "Proof of Income Documentation Requirement",
"priority": 20,
"conditions": {
"all": [
{
"fact": "proofOfIncomeMonthsProvided",
"operator": "greaterThanInclusive",
"value": 3
}
]
},
"event": {
"type": "meets-income-documentation-requirement",
"params": {
"ruleId": "rule-002",
"ruleName": "Proof of Income Documentation Requirement",
"consequence": "meets_income_documentation_requirement",
"confidence": 0.94,
"sourceDocument": "test_policy.md",
"sourceChunks": [
"chunk-2ec2b384e46c",
"Section 2: Income Requirements"
]
}
}
},
{
"name": "Full Financial Eligibility Requirements",
"priority": 30,
"conditions": {
"all": [
{
"fact": "monthlyIncome",
"operator": "greaterThan",
"value": {
"fact": "monthlyRentTripled"
}
},
{
"fact": "proofOfIncomeMonthsProvided",
"operator": "greaterThanInclusive",
"value": 3
}
]
},
"event": {
"type": "meets-financial-eligibility-criteria",
"params": {
"ruleId": "rule-003",
"ruleName": "Full Financial Eligibility Requirements",
"consequence": "meets_financial_eligibility_criteria",
"confidence": 0.92,
"sourceDocument": "test_policy.md",
"sourceChunks": [
"chunk-2ec2b384e46c",
"Section 2: Income Requirements"
],
"dependsOn": [
"rule-001",
"rule-002"
],
"note": "Condition: monthlyIncome > monthlyRent * 3. Evaluate monthlyRentTripled as a computed fact equal to monthlyRent * 3."
}
}
}
]
}
Use arrow keys to scroll through the code when focused on this region.
Retry Extraction
The extraction results require review. You can retry with increased resources.
Issues Found:
- Acceptable quality extraction (score: 3.1/5.0) with 8 issues
- Reference integrity: 50% valid (4 dangling references)
Quality: Fair
This extraction has 8 errors that may affect rule accuracy.
- Coverage 50
- Completeness 25
- Conflict 50
- Accuracy 75
Syntax Validation
PassedJSON-RULES-ENGINE syntax is valid (validator unknown)
Rule Review
3 rules extracted and ready for review. Review each rule to approve, reject, or edit before finalizing your policy logic.
Start ReviewDownloads the extracted policy rules as a .json file for json-rules-engine
Downloads extracted rules as a CSV spreadsheet for policy analyst review, with columns for accuracy scoring and notes.
Downloads the original document that was uploaded for extraction
Downloads the policy summary as a Markdown file for sharing with stakeholders
Policy Logic Extractor