Updated prompt
Browse files
app.py
CHANGED
|
@@ -102,12 +102,11 @@ def get_answer(query, history, temperature, top_p, max_token_count):
|
|
| 102 |
<question>
|
| 103 |
{query}
|
| 104 |
</question>
|
| 105 |
-
Provide a detailed, concise response that fully answers the user's question.
|
| 106 |
-
Make sure all sentences of your reponse are completely formed and grammatically correct.
|
| 107 |
-
If necessary, reduce the amount of detail provided to keep the response within the word limit but still complete.
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
|
|
|
|
|
|
| 111 |
|
| 112 |
Here are some related questions you might be interested in:
|
| 113 |
<button style="background-color: #4CAF50; color: white; padding: 10px; margin: 5px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px;">First related question</button>
|
|
@@ -115,7 +114,8 @@ def get_answer(query, history, temperature, top_p, max_token_count):
|
|
| 115 |
<button style="background-color: #4CAF50; color: white; padding: 10px; margin: 5px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px;">Third related question</button>
|
| 116 |
|
| 117 |
Ensure these suggested questions are brief, relevant, and encourage further exploration on the topic.
|
| 118 |
-
|
|
|
|
| 119 |
Assistant:
|
| 120 |
"""
|
| 121 |
|
|
|
|
| 102 |
<question>
|
| 103 |
{query}
|
| 104 |
</question>
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
+
Provide a detailed, concise response that fully answers the user's question. Ensure your response is organized and visually readable.
|
| 107 |
+
|
| 108 |
+
Additionally, only if there is sufficient remaining token capacity, provide 2 or 3 related questions that the user might want to ask next based on the topic.
|
| 109 |
+
If possible, use the following structure for these suggested questions:
|
| 110 |
|
| 111 |
Here are some related questions you might be interested in:
|
| 112 |
<button style="background-color: #4CAF50; color: white; padding: 10px; margin: 5px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px;">First related question</button>
|
|
|
|
| 114 |
<button style="background-color: #4CAF50; color: white; padding: 10px; margin: 5px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px;">Third related question</button>
|
| 115 |
|
| 116 |
Ensure these suggested questions are brief, relevant, and encourage further exploration on the topic.
|
| 117 |
+
|
| 118 |
+
If necessary, reduce the amount of detail provided to keep the response within the word limit but still complete.
|
| 119 |
Assistant:
|
| 120 |
"""
|
| 121 |
|