Nelly-43 commited on
Commit
a8ea1a5
·
verified ·
1 Parent(s): f2228f6

Update src/prompts.py

Browse files
Files changed (1) hide show
  1. src/prompts.py +8 -33
src/prompts.py CHANGED
@@ -245,44 +245,19 @@ STATA_PROMPT_TEMPLATE = {
245
  }
246
  CATEGORIZER_PROMPT_TEMPLATE = """\
247
  You are a query-routing classifier for a {domain} research chatbot.
248
- Your task is to read the user's query and classify it into exactly one category. Return ONLY valid JSON.
249
  Classification rules:
250
- 1. Pillar 1
251
- - Use when the user shows interest in understanding whether the selected value chain aligns with the government's political incentives.
252
- - If user input indicates the issue is resolved output "proceed".
 
 
 
253
  Output:
254
  {{
255
- "category": "pillar_1",
256
  "sub-action":"proceed"or"unresolved"
257
  }}
258
- 2. Pillar 2
259
- - Use when the user shows interest in understanding to what degree decisions are impacted by the lobbying of particular groups or by elite influence
260
- Output:
261
- {{
262
- "category": "pillar_2",
263
- "sub-action":"proceed"or"unresolved"
264
- }}
265
- 3. Pillar 3
266
- - Use when the user shows interest in understanding if the value chain/or investment intervention can be feasibly implemented given the broader institutional and policy environment
267
- Output:
268
- {{
269
- "category": "pillar_3",
270
- "sub-action":"proceed"or"unresolved"
271
- }}
272
- 4. Complete Analysis
273
- - Use if the input query indicates interest in all three pillars
274
- Output:
275
- {{
276
- "category": "complete",
277
- "sub-action":"proceed"or"unresolved"
278
- }}
279
- 4. Qualitative Discussion
280
- - User shows interest in understanding if there are any political risks that could undermine the selected value chain or investment intervention
281
- Output:
282
- {{
283
- "category": "qual",
284
- "sub-action":"proceed"or"unresolved"
285
- }}
286
  USER'S QUESTION: {query}
287
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
288
  """
 
245
  }
246
  CATEGORIZER_PROMPT_TEMPLATE = """\
247
  You are a query-routing classifier for a {domain} research chatbot.
248
+ Your task is to read the user's query and classify it into one or more categories. List all applicable classes and return ONLY valid JSON.
249
  Classification rules:
250
+ - Classify as "pillar_1" when the user shows interest in understanding whether the selected value chain aligns with the government's political incentives.
251
+ - Classify as "pillar_2" when the user shows interest in understanding to what degree decisions are impacted by the lobbying of particular groups or by elite influence
252
+ - Classify as "pillar_3" when the user shows interest in understanding if the value chain/or investment intervention can be feasibly implemented given the broader institutional and policy environment
253
+ - Classify as "complete" if the input query indicates interest in all three pillars
254
+ - Classify as "qual" when shows interest in understanding if there are any political risks that could undermine the selected value chain or investment intervention
255
+ - If user input indicates the issue is resolved output "proceed" as the action, otherwise output "unresolved".
256
  Output:
257
  {{
258
+ "category": "pillar_1"or"pillar_2"or"pillar_3"or"complete"or"qual",
259
  "sub-action":"proceed"or"unresolved"
260
  }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  USER'S QUESTION: {query}
262
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
263
  """