Extraction Results
Source Documents
-
test_conflict.md
SuccessType: MD Size: 0.3 KB TokensTokens are the basic units of text that AI models process. A token is roughly 4 characters or 0.75 words on average.: 67 Words: 51
Extraction summary
- 2 definition
Validation Failed
The generated code has 2 errors. See the Syntax Validation section below for details.
The following 2 rules were extracted from your document:
Filter Rules
-
meets-age-requirement
definition A policy rule extracted from the document Low (60%)meets-age-requirement
-
meets-age-requirement
definition A policy rule extracted from the document Low (60%)meets-age-requirement
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_conflict.md",
"generator": "Policy Logic Extractor",
"format": "json-rules-engine"
},
"rules": [
{
"name": "Minimum Age Requirement (Rule A)",
"priority": 20,
"conditions": {
"all": [
{
"fact": "age",
"operator": "greaterThanInclusive",
"value": 18
}
]
},
"event": {
"type": "meets-age-requirement",
"params": {
"ruleId": "rule-001",
"ruleName": "Minimum Age Requirement (Rule A)",
"consequence": "meets_age_requirement",
"confidence": 0.97,
"sourceDocument": "test_conflict.md",
"sourceChunks": [
"chunk-30427971981c",
"Section 1: Age Rules"
],
"conflictFlag": true,
"conflictDescription": "Directly contradicts Rule B (rule-002), which requires applicants to be under 18. Both rules cannot be simultaneously satisfied.",
"conflictWith": "rule-002"
}
}
},
{
"name": "Maximum Age Requirement (Rule B)",
"priority": 20,
"conditions": {
"all": [
{
"fact": "age",
"operator": "lessThan",
"value": 18
}
]
},
"event": {
"type": "meets-age-requirement",
"params": {
"ruleId": "rule-002",
"ruleName": "Maximum Age Requirement (Rule B)",
"consequence": "meets_age_requirement",
"confidence": 0.97,
"sourceDocument": "test_conflict.md",
"sourceChunks": [
"chunk-30427971981c",
"Section 1: Age Rules"
],
"conflictFlag": true,
"conflictDescription": "Directly contradicts Rule A (rule-001), which requires applicants to be at least 18. Both rules cannot be simultaneously satisfied.",
"conflictWith": "rule-001"
}
}
}
]
}
Use arrow keys to scroll through the code when focused on this region.
Quality: Good
This extraction has 4 errors that may affect rule accuracy.
- Coverage 75
- Completeness 75
- Conflict N/A
- Accuracy 100
Syntax Validation
2 errorsJSON-RULES-ENGINE syntax validation failed with 2 errors
| Type | Location | Message |
|---|---|---|
| syntax | — | |
| syntax | — |
Rule Review
2 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