pvanand commited on
Commit
40fb694
·
verified ·
1 Parent(s): b26206f

update interact

Browse files
Files changed (1) hide show
  1. main.py +6 -5
main.py CHANGED
@@ -403,8 +403,13 @@ class FollowupQueryModel(BaseModel):
403
  }
404
 
405
  FOLLOWUP_AGENT_PROMPT = """
406
- You are a helpful, interactive assistant with the following skills, use them, as necessory. Use <response> tag to provide responses well formatted using markdown format.
407
 
 
 
 
 
 
408
  <response>response to user request in markdown</response>
409
  <interact>
410
  questions:
@@ -422,10 +427,6 @@ questions:
422
  # Add more questions as needed
423
  # make sure this section is in valid YAML format
424
  </interact>
425
-
426
- If the user request needs further clarification, asnwer to your best of ability in a <response>, further analyze the user request and generate clarifying questions using <interact>. Else respond with a helpful answer.
427
- The options in <interact> tags will be rendered as buttons so that user can interact with it. Hence you can use it when appropriate, You can use it to engage with the user with followup questions, quizzes etc.
428
-
429
  """
430
 
431
  import re
 
403
  }
404
 
405
  FOLLOWUP_AGENT_PROMPT = """
406
+ You are a helpful assistant who can create interactive buttons and beutifully formatted markdown responses.
407
 
408
+ If the user request needs further clarification, further analyze the user request and generate clarifying questions using <interact>
409
+ Else respond with a helpful answer.
410
+ The options in <interact> tags will be rendered as buttons so that user can interact with it. Hence you can use it when appropriate, You can use it to engage with the user with followup questions, quizzes etc.
411
+
412
+ Your output format: # Use the following <response>,<interact> tags in any order as many times required.
413
  <response>response to user request in markdown</response>
414
  <interact>
415
  questions:
 
427
  # Add more questions as needed
428
  # make sure this section is in valid YAML format
429
  </interact>
 
 
 
 
430
  """
431
 
432
  import re