|
@@ -524,8 +524,9 @@ def test_triage_defaults():
|
|
|
|
|
|
|
|
assert cfg.triage.enabled is False
|
|
assert cfg.triage.enabled is False
|
|
|
assert cfg.triage.questions_file == "questions.json"
|
|
assert cfg.triage.questions_file == "questions.json"
|
|
|
- assert cfg.triage.window == 8
|
|
|
|
|
- assert cfg.triage.state_char_budget == 1200
|
|
|
|
|
|
|
+ assert cfg.triage.window == 500
|
|
|
|
|
+ assert cfg.triage.state_char_budget == 3000
|
|
|
|
|
+ assert cfg.triage.predict_max_tokens == 1024
|
|
|
assert cfg.triage.confidence_field == "answer_confidence"
|
|
assert cfg.triage.confidence_field == "answer_confidence"
|
|
|
assert cfg.triage.escalate_threshold == 0.6
|
|
assert cfg.triage.escalate_threshold == 0.6
|
|
|
assert cfg.triage.choice_min_confidence == 0.85
|
|
assert cfg.triage.choice_min_confidence == 0.85
|
|
@@ -545,6 +546,7 @@ enabled = true
|
|
|
questions_file = "custom_questions.json"
|
|
questions_file = "custom_questions.json"
|
|
|
window = 4
|
|
window = 4
|
|
|
state_char_budget = 800
|
|
state_char_budget = 800
|
|
|
|
|
+predict_max_tokens = 768
|
|
|
confidence_field = "confidence"
|
|
confidence_field = "confidence"
|
|
|
escalate_threshold = 0.7
|
|
escalate_threshold = 0.7
|
|
|
choice_min_confidence = 0.9
|
|
choice_min_confidence = 0.9
|
|
@@ -565,6 +567,7 @@ default_checkpoint = "english"
|
|
|
assert cfg.triage.questions_file == "custom_questions.json"
|
|
assert cfg.triage.questions_file == "custom_questions.json"
|
|
|
assert cfg.triage.window == 4
|
|
assert cfg.triage.window == 4
|
|
|
assert cfg.triage.state_char_budget == 800
|
|
assert cfg.triage.state_char_budget == 800
|
|
|
|
|
+ assert cfg.triage.predict_max_tokens == 768
|
|
|
assert cfg.triage.confidence_field == "confidence"
|
|
assert cfg.triage.confidence_field == "confidence"
|
|
|
assert cfg.triage.escalate_threshold == 0.7
|
|
assert cfg.triage.escalate_threshold == 0.7
|
|
|
assert cfg.triage.choice_min_confidence == 0.9
|
|
assert cfg.triage.choice_min_confidence == 0.9
|
|
@@ -592,7 +595,7 @@ window = 3
|
|
|
|
|
|
|
|
assert "triag" in caplog.text
|
|
assert "triag" in caplog.text
|
|
|
assert cfg.triage.enabled is False
|
|
assert cfg.triage.enabled is False
|
|
|
- assert cfg.triage.window == 8
|
|
|
|
|
|
|
+ assert cfg.triage.window == 500
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_triage_config_has_no_struck_keys():
|
|
def test_triage_config_has_no_struck_keys():
|