MariaMaraShe commited on
Commit
bbd124f
·
verified ·
1 Parent(s): c94ef92

Update prompts.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +39 -51
prompts.yaml CHANGED
@@ -40,61 +40,49 @@
40
 
41
  ---
42
  Task: "What are the latest developments about SpaceX?"
43
- Thought: I need to find recent news about SpaceX. I will use web_search to find relevant sources, then visit_webpage to read the actual content.
44
- Code:
45
- ```py
46
- search_results = web_search(query="SpaceX latest news developments today")
47
- print("Found sources:")
48
- print(search_results)
49
- ```<end_code>
50
- Observation: [List of search results with URLs]
51
-
52
- Thought: Now I will read the content from the most reliable sources to get detailed information.
53
- Code:
54
- ```py
55
- # Reading content from top 3 most relevant sources
56
- for result in search_results[:3]:
57
  print("\nAnalyzing source:", result)
58
  content = visit_webpage(url=result['link'])
59
  print("Content:")
60
  print(content)
61
- ```<end_code>
62
- Observation: [Detailed content from each webpage]
63
-
64
- Thought: I will now analyze the gathered information and provide a comprehensive summary.
65
- Code:
66
- ```py
67
- summary = "Based on multiple reliable sources, here are the latest SpaceX developments:\n"
68
- # [Content processing would happen here]
69
- final_answer(summary)
70
- ```<end_code>
71
-
72
- ---
73
- Task: "Find the current price of Bitcoin"
74
- Thought: I should search for reliable cryptocurrency price sources and extract the current Bitcoin price.
75
- Code:
76
- ```py
77
- sources = web_search(query="Bitcoin current price USD coindesk coinmarketcap")
78
- print(sources)
79
- ```<end_code>
80
- Observation: [Search results with pricing sources]
81
-
82
- Thought: I will visit the most reliable source to get the exact price.
83
- Code:
84
- ```py
85
- price_data = visit_webpage(url=sources[0]['link'])
86
- print("Price information:")
87
- print(price_data)
88
- ```<end_code>
89
- Observation: [Webpage content with price data]
90
-
91
- Thought: Now I can extract and return the current price.
92
- Code:
93
- ```py
94
- final_answer("The current Bitcoin price is: " + extracted_price)
95
- ```<end_code>
96
-
97
- ---
98
  Task:
99
  "Answer the question in the variable `question` about the image stored in the variable `image`. The question is in French.
100
  You have been provided with these additional arguments, that you can access using the keys as variables in your python code:
 
40
 
41
  ---
42
  Task: "What are the latest developments about SpaceX?"
43
+ Thought: I need to find recent news about SpaceX. I will use web_search to find relevant sources, then visit_webpage to read the actual content.
44
+ Code:
45
+ ```py
46
+ search_results = web_search(query="SpaceX latest news developments today")
47
+ print("Found sources:")
48
+ print(search_results)
49
+ ```<end_code>
50
+ Observation: [List of search results with URLs]
51
+
52
+ Thought: Now I will read the content from the most reliable sources to get detailed information.
53
+ Code:
54
+ ```py
55
+ # Reading content from top 3 most relevant sources
56
+ for result in search_results[:3]:
57
  print("\nAnalyzing source:", result)
58
  content = visit_webpage(url=result['link'])
59
  print("Content:")
60
  print(content)
61
+ ```<end_code>
62
+ Observation: [Detailed content from each webpage]
63
+
64
+ Thought: I will now analyze the gathered information and provide a comprehensive summary.
65
+ Code:
66
+ ```py
67
+ summary = "Based on multiple reliable sources, here are the latest SpaceX developments:\n"
68
+ # [Content processing would happen here]
69
+ final_answer(summary)
70
+ ```<end_code>
71
+
72
+ ---
73
+ Task: "Find the current price of Bitcoin"
74
+ Thought: I should search for reliable cryptocurrency price sources and extract the current Bitcoin price.
75
+ Code:
76
+ ```py
77
+ sources = web_search(query="Bitcoin current price USD coindesk coinmarketcap")
78
+ print(sources)
79
+ ```<end_code>
80
+ Observation: [Search results with pricing sources]
81
+
82
+ Thought: I will visit the most reliable source to get the exact price.
83
+ Code:
84
+ ```py
85
+
 
 
 
 
 
 
 
 
 
 
 
 
86
  Task:
87
  "Answer the question in the variable `question` about the image stored in the variable `image`. The question is in French.
88
  You have been provided with these additional arguments, that you can access using the keys as variables in your python code: