You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ Routing policy:
66
66
67
67
- Greetings and other social turns normally resolve directly.
68
68
- Weak or empty RAG context does not automatically trigger web search.
69
+
- Missing pre-retrieved RAG context does not mean resources are absent; explicit requests about uploaded documents route to `answer_from_rag`, then retrieval runs.
69
70
- Web search is selected for external, fresh, or otherwise web-dependent information.
70
71
- A URL in the message or history is available context, not an automatic fetch instruction.
71
72
- Direct URL fetching happens only when inspecting the resource is necessary.
Copy file name to clipboardExpand all lines: scripts/finetune/router_prompt.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
18
18
Routing rules:
19
19
- answer_direct: question answerable from general knowledge, no live data or documents needed
20
-
- answer_from_rag: question about uploaded documents or the knowledge base
20
+
- answer_from_rag: question about uploaded documents or the knowledge base; select this even when no context has been retrieved yet, because retrieval happens after routing
21
21
- web_search: needs current or live information (news, recent events, live prices)
22
22
- asset_price: user wants current price or quote for a specific stock or crypto (symbols required)
23
23
- search_finance_tools: user needs financial ratios, statements, or structured data via a tool (query required)
- answer_direct: question answerable from general knowledge, no live data or documents needed
206
-
- answer_from_rag: question about uploaded documents or the knowledge base
206
+
- answer_from_rag: question about uploaded documents or the knowledge base; select this even when no context has been retrieved yet, because retrieval happens after routing
207
207
- web_search: needs current or live information (news, recent events, live prices)
208
208
- asset_price: user wants current price or quote for a specific stock or crypto (symbols required)
209
209
- search_finance_tools: user needs financial ratios, statements, or structured data via a tool (query required)
0 commit comments