refactor(pipeline): remove hardcodes and replace static geometry with layout anchors

This commit is contained in:
omkarande14
2026-09-28 17:13:23 +05:30
parent 6f3831ecdb
commit 3729100817
44 changed files with 9315 additions and 1 deletions
+42
View File
@@ -0,0 +1,42 @@
# app/rrsi/__init__.py
"""
Reflective Recursive Self-Improvement (RRSI) Package for Invoice OCR.
Provides:
- Error Taxonomy (ErrorCategory, PipelineArea, FailureDetail)
- Proposal Memory & Negative Knowledge Registry (NegativeKnowledgeRegistry)
- Selection & Leakage Screening (LeakageScreening, PruningAnalyzer)
- Statistical & Cost-Aware Evaluator (StatisticalEvaluator)
- Auditable Experiment Ledger (ExperimentLedger)
- Unified Orchestrator (RRSIOrchestrator)
"""
from app.rrsi.taxonomy import (
ErrorCategory,
PipelineArea,
ExperimentStatus,
FailureDetail,
ProposalHypothesis,
EvaluationMetrics,
DecisionRecord
)
from app.rrsi.memory import NegativeKnowledgeRegistry
from app.rrsi.screening import LeakageScreening, PruningAnalyzer
from app.rrsi.evaluator import StatisticalEvaluator
from app.rrsi.ledger import ExperimentLedger
from app.rrsi.orchestrator import RRSIOrchestrator
__all__ = [
"ErrorCategory",
"PipelineArea",
"ExperimentStatus",
"FailureDetail",
"ProposalHypothesis",
"EvaluationMetrics",
"DecisionRecord",
"NegativeKnowledgeRegistry",
"LeakageScreening",
"PruningAnalyzer",
"StatisticalEvaluator",
"ExperimentLedger",
"RRSIOrchestrator"
]