feat(precision): achieve 100% ground truth recall and 76.47% entity precision

- Add centralized ISA 5.1/ISO 15926 taxonomy and DecomposedTag model
- Implement multi-evidence candidate scoring and explainable merge provenance
- Refine CompilerAgent: ISA loop consolidation, dense valve formatting, cross-system isolation
- Enforce canonical endpoint strictness for relationships (zero raw OCR strings)
- Update ValidationAgent with structured actionable feedback
- Add comprehensive test suites (60 pytest + 43 hybrid tests passing 100%)
- Generate baseline, regression, validation, confusion matrix, and final audit reports
This commit is contained in:
Abhinav Gupta
2026-09-30 12:00:27 +05:30
parent 8974e676c5
commit c28be21557
23 changed files with 4261 additions and 189 deletions
+111
View File
@@ -0,0 +1,111 @@
{
"raw_observation_count": 2026,
"candidate_count": 1448,
"canonical_entity_count": 136,
"overall_ground_truth_count": 104,
"overall_tp": 104,
"overall_fp": 32,
"overall_fn": 0,
"overall_recall": 1.0,
"overall_precision": 0.7647,
"overall_f1": 0.8667,
"relationships_count": 85,
"merge_records_count": 47,
"categories": {
"EQUIPMENT": {
"gt_count": 7,
"compiled_count": 7,
"tp": 7,
"fp": 0,
"fn": 0,
"recall": 1.0,
"precision": 1.0,
"f1": 1.0,
"missed_gt": [],
"extra_compiled": []
},
"PSV": {
"gt_count": 2,
"compiled_count": 2,
"tp": 2,
"fp": 0,
"fn": 0,
"recall": 1.0,
"precision": 1.0,
"f1": 1.0,
"missed_gt": [],
"extra_compiled": []
},
"INSTRUMENTS": {
"gt_count": 20,
"compiled_count": 22,
"tp": 20,
"fp": 2,
"fn": 0,
"recall": 1.0,
"precision": 0.9091,
"f1": 0.9524,
"missed_gt": [],
"extra_compiled": [
"26-PIT-9077",
"26-FE-9058"
]
},
"VALVES": {
"gt_count": 40,
"compiled_count": 65,
"tp": 40,
"fp": 25,
"fn": 0,
"recall": 1.0,
"precision": 0.6154,
"f1": 0.7619,
"missed_gt": [],
"extra_compiled": [
"26FV9076",
"64GT9004",
"64CH9003",
"40GB9022",
"40GB9023",
"43GT9074",
"43GT9075",
"40GT9079",
"40GT9080",
"40GB9174",
"40GT9176",
"40GT9313",
"40GT9311",
"40GT9312",
"40GT9310",
"40GT9309",
"26GT9347",
"26GT9327",
"26CB9712",
"26CB9711",
"XV-9010",
"40CH9316",
"40GT9137",
"26GB9178",
"43GT9985"
]
},
"LINES": {
"gt_count": 35,
"compiled_count": 40,
"tp": 35,
"fp": 5,
"fn": 0,
"recall": 1.0,
"precision": 0.875,
"f1": 0.9333,
"missed_gt": [],
"extra_compiled": [
"2\"-VA-26-9119-AS20S-00",
"2\"-VA-26-9120-AS20S-00",
"3/4\"-VA-26-9123-AC21-00",
"3\"-VA-26-9121-AC21-00",
"3\"-VA-26-9122-AC21-00"
]
}
}
}