Extraction Results
Source Documents
-
test_policy_summary.md
SuccessType: MD Size: 0.9 KB TokensTokens are the basic units of text that AI models process. A token is roughly 4 characters or 0.75 words on average.: 224 Words: 153
Extraction summary
- 1 eligibility
- 2 definition
Validation Passed
The generated JSON Rules code passed syntax validation.
The following 3 rules were extracted from your document:
Filter Rules
-
eligible-for-paid-leave-benefits
eligibility Determines who qualifies for a benefit or service Low (60%)eligible-for-paid-leave-benefits
-
require-doctors-note
definition A policy rule extracted from the document Low (60%)require-doctors-note
-
cap-carryover-at-5-days-and-forfeit-excess
definition A policy rule extracted from the document Low (60%)cap-carryover-at-5-days-and-forfeit-excess
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_summary.md",
"generator": "Policy Logic Extractor",
"format": "json-rules-engine"
},
"rules": [
{
"name": "Paid Leave Eligibility for Full-Time Employees",
"priority": 20,
"conditions": {
"all": [
{
"fact": "employmentType",
"operator": "equal",
"value": "full-time"
},
{
"fact": "continuousEmploymentDays",
"operator": "greaterThanInclusive",
"value": 90
}
]
},
"event": {
"type": "eligible-for-paid-leave-benefits",
"params": {
"ruleId": "rule-001",
"ruleName": "Paid Leave Eligibility for Full-Time Employees",
"consequence": "eligible_for_paid_leave_benefits",
"confidence": 0.97,
"sourceDocument": "test_policy_summary.md",
"sourceChunks": [
"Section 4",
"Section 5: Approval Process",
"chunk-30d93b4a8bfe",
"Section 3",
"chunk-0c4cd01f40fc",
"chunk-4a011a25b5b4",
"Section 1",
"chunk-79f4cbb3146e"
]
}
}
},
{
"name": "Doctor's Note Requirement for Extended Sick Absence",
"priority": 40,
"conditions": {
"all": [
{
"fact": "consecutiveSickDaysAbsent",
"operator": "greaterThan",
"value": 3
}
]
},
"event": {
"type": "require-doctors-note",
"params": {
"ruleId": "rule-002",
"ruleName": "Doctor's Note Requirement for Extended Sick Absence",
"consequence": "require_doctors_note",
"confidence": 0.97,
"sourceDocument": "test_policy_summary.md",
"sourceChunks": [
"Section 5: Approval Process",
"Section 3",
"chunk-0c4cd01f40fc",
"Section 2",
"chunk-4a011a25b5b4",
"chunk-1e7725108564"
]
}
}
},
{
"name": "Annual Leave Carryover Cap Enforcement",
"priority": 10,
"conditions": {
"all": [
{
"fact": "unusedAnnualLeaveDays",
"operator": "greaterThan",
"value": 5
}
]
},
"event": {
"type": "cap-carryover-at-5-days-and-forfeit-excess",
"params": {
"ruleId": "rule-003",
"ruleName": "Annual Leave Carryover Cap Enforcement",
"consequence": "cap_carryover_at_5_days_and_forfeit_excess",
"confidence": 0.79,
"sourceDocument": "test_policy_summary.md",
"sourceChunks": [
"chunk-1e7725108564",
"Section 2"
]
}
}
}
]
}
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 10 issues
- Reference integrity: 65% valid (12 dangling references)
- Conflict status: 0 high, 13 medium conflicts
- Coverage: 45% of sections have extracted rules
Quality: Fair
This extraction has 10 errors that may affect rule accuracy.
- Coverage 50
- Completeness 50
- Conflict 25
- Accuracy 50
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