Spaces:
Running
Running
File size: 738 Bytes
e907a44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from app.services.query_classifier import classify_query
def test_document_about_is_global():
assert classify_query("what is the document about?") == "global"
def test_specific_phase_question_is_local():
assert classify_query("what is the Phase 1") == "local"
def test_ordinal_phase_question_is_local():
assert classify_query("what is the second phase") == "local"
def test_summary_keyword_is_global():
assert classify_query("give me a summary") == "global"
def test_specific_section_question_is_local():
assert classify_query("explain section 2 in detail") == "local"
def test_model_training_purpose_question_is_global():
assert classify_query("for what is the model being trained here?") == "global"
|