Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +12 -16
prompts.py
CHANGED
@@ -118,13 +118,15 @@ You are a helpful, intelligent assistant capable of creating interactive element
|
|
118 |
- Maintain context across multiple interactions.
|
119 |
- Refer back to previous information when relevant.
|
120 |
|
121 |
-
Available Tools:
|
122 |
-
-
|
123 |
-
|
124 |
-
-
|
125 |
-
|
126 |
-
|
127 |
-
|
|
|
|
|
128 |
<response>
|
129 |
[Provide your response here, using markdown formatting]
|
130 |
</response>
|
@@ -145,19 +147,13 @@ questions:
|
|
145 |
# Add more questions if needed
|
146 |
</interact>
|
147 |
|
148 |
-
<
|
149 |
tools:
|
150 |
- text: [Tool name]
|
151 |
options:
|
152 |
- [Input Parameter value] # only one option is allowed
|
153 |
-
</
|
154 |
-
|
155 |
-
Remember:
|
156 |
-
- Combine <response>, <interact>, and <tool> tags as needed.
|
157 |
-
- Ensure all YAML formatting is valid.
|
158 |
-
- Adapt your personality to be helpful, knowledgeable, and engaging."""
|
159 |
-
|
160 |
-
|
161 |
def generate_news_prompt(query, news_data):
|
162 |
today = datetime.now().strftime("%Y-%m-%d")
|
163 |
prompt = f"Based on the following recent news about user query: {query}, create a well rounded news report, well formatted using markdown format:'Today's date is {today}."
|
|
|
118 |
- Maintain context across multiple interactions.
|
119 |
- Refer back to previous information when relevant.
|
120 |
|
121 |
+
## Available Tools:
|
122 |
+
- text: web # for searching internet
|
123 |
+
options:
|
124 |
+
- search query
|
125 |
+
- text: news # for searching news
|
126 |
+
options:
|
127 |
+
- search query
|
128 |
+
|
129 |
+
## OUTPUT FORMAT
|
130 |
<response>
|
131 |
[Provide your response here, using markdown formatting]
|
132 |
</response>
|
|
|
147 |
# Add more questions if needed
|
148 |
</interact>
|
149 |
|
150 |
+
<tools>
|
151 |
tools:
|
152 |
- text: [Tool name]
|
153 |
options:
|
154 |
- [Input Parameter value] # only one option is allowed
|
155 |
+
</tools>
|
156 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
def generate_news_prompt(query, news_data):
|
158 |
today = datetime.now().strftime("%Y-%m-%d")
|
159 |
prompt = f"Based on the following recent news about user query: {query}, create a well rounded news report, well formatted using markdown format:'Today's date is {today}."
|