Update conversation_logic.py
Browse files- conversation_logic.py +3 -2
conversation_logic.py
CHANGED
|
@@ -7,7 +7,8 @@ from context_parser import detect_intent, intent_to_help_mode
|
|
| 7 |
from formatting import format_reply
|
| 8 |
from generator_engine import GeneratorEngine
|
| 9 |
from models import RetrievedChunk, SolverResult
|
| 10 |
-
from quant_solver import is_quant_question
|
|
|
|
| 11 |
from question_classifier import classify_question, normalize_category
|
| 12 |
from retrieval_engine import RetrievalEngine
|
| 13 |
|
|
@@ -422,7 +423,7 @@ class ConversationEngine:
|
|
| 422 |
selected_chunks: List[RetrievedChunk] = []
|
| 423 |
|
| 424 |
if inferred_category == "Quantitative" or is_quant_question(solver_input):
|
| 425 |
-
solved_result =
|
| 426 |
if solved_result is not None:
|
| 427 |
result = solved_result
|
| 428 |
result.help_mode = resolved_help_mode
|
|
|
|
| 7 |
from formatting import format_reply
|
| 8 |
from generator_engine import GeneratorEngine
|
| 9 |
from models import RetrievedChunk, SolverResult
|
| 10 |
+
from quant_solver import is_quant_question
|
| 11 |
+
from solver_router import route_solver
|
| 12 |
from question_classifier import classify_question, normalize_category
|
| 13 |
from retrieval_engine import RetrievalEngine
|
| 14 |
|
|
|
|
| 423 |
selected_chunks: List[RetrievedChunk] = []
|
| 424 |
|
| 425 |
if inferred_category == "Quantitative" or is_quant_question(solver_input):
|
| 426 |
+
solved_result = route_solver(solver_input)
|
| 427 |
if solved_result is not None:
|
| 428 |
result = solved_result
|
| 429 |
result.help_mode = resolved_help_mode
|