Spaces:
Sleeping
Sleeping
File size: 708 Bytes
343ad62 34a177c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
"""
Registry mapping simple string keys to concrete component classes.
Used by pipeline_factory to perform lightweight dependency injection.
"""
from nl2sql.ambiguity_detector import AmbiguityDetector
from nl2sql.planner import Planner
from nl2sql.generator import Generator
from nl2sql.safety import Safety
from nl2sql.executor import Executor
from nl2sql.verifier import Verifier
from nl2sql.repair import Repair
# later you can add llm-aware generator variants, etc.
PLANNERS = {"default": Planner}
GENERATORS = {"rules": Generator}
EXECUTORS = {"default": Executor}
REPAIRS = {"default": Repair}
DETECTORS = {"default": AmbiguityDetector}
SAFETIES = {"default": Safety}
VERIFIERS = {"basic": Verifier}
|