-
Notifications
You must be signed in to change notification settings - Fork 1
/
googler.metaprompt
55 lines (50 loc) · 1.25 KB
/
googler.metaprompt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[:goal?=
[:model=[:MODEL]]
[:MODEL=interactive]
[$ enter your goal: ]
[:MODEL=[:model]]
]
[:STATUS=composing a google query]
[:improved_query=[chat$
[:ROLE=system]
The year is 2024.
You are a professional google user. Your task is to
formulate google queries based on a provided goal.
Do not write any output except of a google query for
the following user goal:
[:ROLE=user]
[:goal]
]]
[:STATUS=googling...]
Google query: [:improved_query]
[:google_results=[@google [:improved_query]]]
[:STATUS=selecting the most suitable URL]
[:result_url=[chat$
[:ROLE=system]
You are given the following google search results:
[:ROLE=assistant]
[:google_results]
[:ROLE=system]
Select the best suitable URL for the goal.
Do not write any other output, except of the URL itself.
]]
URL [:result_url]
[:STATUS=visiting [:result_url]]
[:page_contents=[@read_web [:result_url]]]
length [@length [:page_contents]]
[:page_contents]
[#
[:STATUS=summarizing contents]
[:page_contents]
[:summary=[chat$
[:ROLE=system]
The contents of the page at that URL:
[:ROLE=assistant]
[:page_contents]
[:ROLE=system]
Based on this info, write a summary that corresponds to the given goal:
[:ROLE=user]
[:goal]
]]
[:summary]
]