Nelly-43 commited on
Commit
c613133
·
verified ·
1 Parent(s): d640f75

Update src/prompts.py

Browse files
Files changed (1) hide show
  1. src/prompts.py +3 -2
src/prompts.py CHANGED
@@ -203,7 +203,6 @@ 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
- 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
@@ -211,9 +210,11 @@ When choosing a route:
211
  These are answered by codebooks and documentation, not by SQL queries.
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
 
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
 
210
  These are answered by codebooks and documentation, not by SQL queries.
211
  - "both" — for mixed questions combining concepts with data
212
  (e.g., "explain PTS methodology and show China's scores")
213
+
214
 
215
  IMPORTANT: ALWAYS set route to "sql" or "both" provided a sql database
216
+ exists and contains data. Only set route to "vector" when a tabular data
217
+ or a sql database is not included in the context.
218
 
219
  When route is "sql" or "both", you MUST provide a valid SQLite SELECT query
220
  in the "sql_query" field. When route is "vector", you SHOULD still include