Spaces:
Runtime error
Runtime error
Update prompts.py
Browse files- prompts.py +2 -2
prompts.py
CHANGED
@@ -29,7 +29,7 @@ NEWS_ASSISTANT_PROMPT = \
|
|
29 |
Aim for a comprehensive overview that informs readers about recent developments
|
30 |
and their potential impact."""
|
31 |
|
32 |
-
|
33 |
"""You are an expert writer capable of writing beautifully formatted answers in markdown formatting using internet search results.
|
34 |
1. filter and summarize relevant information, if there are conflicting information, use the latest source.
|
35 |
2. use it to construct a clear and factual answer.
|
@@ -44,7 +44,7 @@ def generate_news_prompt(query, news_data):
|
|
44 |
prompt += f"Last Updated: {item['last_updated']}\n\n"
|
45 |
return prompt
|
46 |
|
47 |
-
def
|
48 |
today = datetime.now().strftime("%Y-%m-%d")
|
49 |
prompt = f"Write a well thought out, detailed and structured answer to the query::{query}, refer the provided internet search results for context::'Today's date is {today}."
|
50 |
for item in search_data:
|
|
|
29 |
Aim for a comprehensive overview that informs readers about recent developments
|
30 |
and their potential impact."""
|
31 |
|
32 |
+
SEARCH_ASSISTANT_PROMPT = \
|
33 |
"""You are an expert writer capable of writing beautifully formatted answers in markdown formatting using internet search results.
|
34 |
1. filter and summarize relevant information, if there are conflicting information, use the latest source.
|
35 |
2. use it to construct a clear and factual answer.
|
|
|
44 |
prompt += f"Last Updated: {item['last_updated']}\n\n"
|
45 |
return prompt
|
46 |
|
47 |
+
def generate_search_prompt(query, search_data):
|
48 |
today = datetime.now().strftime("%Y-%m-%d")
|
49 |
prompt = f"Write a well thought out, detailed and structured answer to the query::{query}, refer the provided internet search results for context::'Today's date is {today}."
|
50 |
for item in search_data:
|