feat: add supports_flip/flip_axis to SubPattern for Phase B flip gate
This commit is contained in:
@@ -49,6 +49,8 @@ class SubPattern:
|
||||
positive_examples: VME 原题 few-shot 示范。
|
||||
negative_examples: 反面示例。
|
||||
distractor_rules: 干扰项构造规则。
|
||||
supports_flip: 是否支持配对翻转门(Phase B 用,默认 False)。
|
||||
flip_axis: 翻转轴("before/after" | "first/last"),None 表示不翻转。
|
||||
"""
|
||||
|
||||
name: str
|
||||
@@ -59,6 +61,8 @@ class SubPattern:
|
||||
positive_examples: list[dict] = field(default_factory=list)
|
||||
negative_examples: list[dict] = field(default_factory=list)
|
||||
distractor_rules: str = ""
|
||||
supports_flip: bool = False
|
||||
flip_axis: str | None = None
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user