Spaces:
Sleeping
Sleeping
quanho114 commited on
Commit ·
9d014d6
1
Parent(s): 55f1010
Fix router: rag fallback to direct_answer instead of logic_solver
Browse files- src/nodes/router.py +3 -2
src/nodes/router.py
CHANGED
|
@@ -109,5 +109,6 @@ def route_question(state: GraphState) -> Literal["knowledge_rag", "logic_solver"
|
|
| 109 |
return "direct_answer"
|
| 110 |
if route == "math":
|
| 111 |
return "logic_solver"
|
| 112 |
-
# Fallback to
|
| 113 |
-
|
|
|
|
|
|
| 109 |
return "direct_answer"
|
| 110 |
if route == "math":
|
| 111 |
return "logic_solver"
|
| 112 |
+
# Fallback to direct_answer for RAG questions (no vector DB in production)
|
| 113 |
+
# Direct agent can answer general knowledge questions using LLM knowledge
|
| 114 |
+
return "direct_answer"
|