Nelly-43 commited on
Commit
3e540cd
·
verified ·
1 Parent(s): db0d2b0

Update src/prompts.py

Browse files
Files changed (1) hide show
  1. src/prompts.py +13 -1
src/prompts.py CHANGED
@@ -286,7 +286,19 @@ Output:
286
  USER'S QUESTION: {query}
287
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
288
  """
289
-
 
 
 
 
 
 
 
 
 
 
 
 
290
  def build_stata_prompt(query:str,
291
  subcmd:str,
292
  dofx:str,
 
286
  USER'S QUESTION: {query}
287
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
288
  """
289
+ INIT_PROMPT_TEMPLATE = """\
290
+ You are a query-routing classifier for a {domain} research chatbot.
291
+ Your task is to read the user's query and extract the country, value chain, and investment area in which the PERI analysis is to be run. Return ONLY valid JSON.
292
+ Place all output values in a list and if not specified in the user query return None
293
+ Output:
294
+ {{
295
+ "country": ["Malawi"] or None,
296
+ "value_chain":["coffee"] or None,
297
+ "investment":["credit"] or None
298
+ }}
299
+ USER'S QUESTION: {query}
300
+ Return only the JSON object. Do not provide explanations, markdown, or additional text.
301
+ """
302
  def build_stata_prompt(query:str,
303
  subcmd:str,
304
  dofx:str,