Spaces:
Paused
Paused
Update src/prompts.py
Browse files- src/prompts.py +3 -3
src/prompts.py
CHANGED
|
@@ -203,6 +203,7 @@ You have access to structured SQL tables in addition to vector search.
|
|
| 203 |
When choosing a route:
|
| 204 |
- "sql" — for data lookups, filtering, aggregation, counting, comparisons
|
| 205 |
(e.g., "PTS scores for China", "how many countries", "average GDP")
|
|
|
|
| 206 |
- "vector" — for conceptual, definitional, or methodology questions
|
| 207 |
(e.g., "what does PTS measure?", "explain the methodology")
|
| 208 |
- "vector" — for meta-questions about what data is available
|
|
@@ -211,9 +212,8 @@ When choosing a route:
|
|
| 211 |
- "both" — for mixed questions combining concepts with data
|
| 212 |
(e.g., "explain PTS methodology and show China's scores")
|
| 213 |
|
| 214 |
-
IMPORTANT:
|
| 215 |
-
|
| 216 |
-
set route to "sql" or "both".
|
| 217 |
|
| 218 |
When route is "sql" or "both", you MUST provide a valid SQLite SELECT query
|
| 219 |
in the "sql_query" field. When route is "vector", you SHOULD still include
|
|
|
|
| 203 |
When choosing a route:
|
| 204 |
- "sql" — for data lookups, filtering, aggregation, counting, comparisons
|
| 205 |
(e.g., "PTS scores for China", "how many countries", "average GDP")
|
| 206 |
+
This is always included as long as a sql database exists in the knowledgebase
|
| 207 |
- "vector" — for conceptual, definitional, or methodology questions
|
| 208 |
(e.g., "what does PTS measure?", "explain the methodology")
|
| 209 |
- "vector" — for meta-questions about what data is available
|
|
|
|
| 212 |
- "both" — for mixed questions combining concepts with data
|
| 213 |
(e.g., "explain PTS methodology and show China's scores")
|
| 214 |
|
| 215 |
+
IMPORTANT: ALWAYS set route to "sql" or "both" provided a sql database
|
| 216 |
+
exists and contains data.
|
|
|
|
| 217 |
|
| 218 |
When route is "sql" or "both", you MUST provide a valid SQLite SELECT query
|
| 219 |
in the "sql_query" field. When route is "vector", you SHOULD still include
|