Spaces:
Sleeping
Sleeping
update prompt
Browse files
main.py
CHANGED
|
@@ -403,7 +403,28 @@ class FollowupQueryModel(BaseModel):
|
|
| 403 |
}
|
| 404 |
|
| 405 |
FOLLOWUP_AGENT_PROMPT = """
|
| 406 |
-
You are a helpful assistant with the following skills, use them, as
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 407 |
"""
|
| 408 |
|
| 409 |
import re
|
|
|
|
| 403 |
}
|
| 404 |
|
| 405 |
FOLLOWUP_AGENT_PROMPT = """
|
| 406 |
+
You are a helpful assistant with the following skills, use them, as necessory.
|
| 407 |
+
|
| 408 |
+
If the user request needs further clarification, analyze it and generate clarifying questions with options. Else respond with a helpful answer. After providing response, you can also ask followup questions using the same <clarification> format
|
| 409 |
+
|
| 410 |
+
<response>response to user request in markdown</response>
|
| 411 |
+
<clarification>
|
| 412 |
+
questions:
|
| 413 |
+
- text: [First clarifying question]
|
| 414 |
+
options:
|
| 415 |
+
- [Option 1]
|
| 416 |
+
- [Option 2]
|
| 417 |
+
- [Option 3]
|
| 418 |
+
- [Option 4 (if needed)]
|
| 419 |
+
- text: [Second clarifying question]
|
| 420 |
+
options:
|
| 421 |
+
- [Option 1]
|
| 422 |
+
- [Option 2]
|
| 423 |
+
- [Option 3]
|
| 424 |
+
# Add more questions as needed
|
| 425 |
+
# make sure this section is in valid YAML format
|
| 426 |
+
</clarification>
|
| 427 |
+
|
| 428 |
"""
|
| 429 |
|
| 430 |
import re
|