Update app.py
Browse files
app.py
CHANGED
|
@@ -518,9 +518,9 @@ def safety_node(state: AgentState):
|
|
| 518 |
information = state["information"]
|
| 519 |
|
| 520 |
prompt = f"""
|
| 521 |
-
You are a reasoning agent who takes into account the provided information, if
|
| 522 |
|
| 523 |
-
You must reason over the user request and the provided information and output the answer to the user's request. Reason well over the information provided, if any, and output the answer to the user's question exactly.
|
| 524 |
|
| 525 |
You MUST ONLY return EXACTLY the answer to the user's question in the following format:
|
| 526 |
Response: <answer>
|
|
@@ -537,9 +537,6 @@ Response: Zhao Xintong.
|
|
| 537 |
Example of valid json response for user request: What is the first name of the winner of 2025 World Snooker Championship:
|
| 538 |
Response: Zhao.
|
| 539 |
|
| 540 |
-
Return exactly the above requested format and nothing more!
|
| 541 |
-
DO NOT generate any additional text after it!
|
| 542 |
-
|
| 543 |
User request:
|
| 544 |
{user_input}
|
| 545 |
|
|
@@ -1009,12 +1006,13 @@ class BasicAgent:
|
|
| 1009 |
# if question == "kajfghskdhfsjkdhfg":
|
| 1010 |
# if question != "aalskdalsdh" and filename == "":
|
| 1011 |
if question in [
|
| 1012 |
-
"Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.\n\nWhat does Teal'c say in response to the question \"Isn't that hot?\"",
|
| 1013 |
-
"Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?"
|
| 1014 |
-
"Where were the Vietnamese specimens described by Kuznetzov in Nedoshivina's 2010 paper eventually deposited? Just give me the city name without abbreviations.",
|
| 1015 |
"What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 1016 |
"How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.",
|
| 1017 |
-
"
|
|
|
|
| 1018 |
]:
|
| 1019 |
|
| 1020 |
time.sleep(60)
|
|
|
|
| 518 |
information = state["information"]
|
| 519 |
|
| 520 |
prompt = f"""
|
| 521 |
+
You are a reasoning agent who takes into account the provided information, if any, and answers to the user request.
|
| 522 |
|
| 523 |
+
You must reason over the user request and the provided information and output the answer to the user's request. Reason well and thoroughly over the information provided, if any, and output the answer to the user's question exactly.
|
| 524 |
|
| 525 |
You MUST ONLY return EXACTLY the answer to the user's question in the following format:
|
| 526 |
Response: <answer>
|
|
|
|
| 537 |
Example of valid json response for user request: What is the first name of the winner of 2025 World Snooker Championship:
|
| 538 |
Response: Zhao.
|
| 539 |
|
|
|
|
|
|
|
|
|
|
| 540 |
User request:
|
| 541 |
{user_input}
|
| 542 |
|
|
|
|
| 1006 |
# if question == "kajfghskdhfsjkdhfg":
|
| 1007 |
# if question != "aalskdalsdh" and filename == "":
|
| 1008 |
if question in [
|
| 1009 |
+
# "Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.\n\nWhat does Teal'c say in response to the question \"Isn't that hot?\"",
|
| 1010 |
+
# "Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?",
|
| 1011 |
+
# "Where were the Vietnamese specimens described by Kuznetzov in Nedoshivina's 2010 paper eventually deposited? Just give me the city name without abbreviations.",
|
| 1012 |
"What is the first name of the only Malko Competition recipient from the 20th Century (after 1977) whose nationality on record is a country that no longer exists?",
|
| 1013 |
"How many studio albums were published by Mercedes Sosa between 2000 and 2009 (included)? You can use the latest 2022 version of english wikipedia.",
|
| 1014 |
+
"What country had the least number of athletes at the 1928 Summer Olympics? If there's a tie for a number of athletes, return the first in alphabetical order. Give the IOC country code as your answer.",
|
| 1015 |
+
# """.rewsna eht sa "tfel" drow eht fo etisoppo eht etirw ,ecnetnes siht dnatsrednu uoy fI""",
|
| 1016 |
]:
|
| 1017 |
|
| 1018 |
time.sleep(60)
|