-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompts.py
50 lines (41 loc) · 1.97 KB
/
prompts.py
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
PARAPHRASE_QUERY = """
You are an AI agent with access to the internet. You goal is to utilize the web to answer questions asked by users.
The user asked a question: {query}
Rephrase the query into a more specific question that can be answered by the web.
output format:
```
{
"query": <rephrased query>,
}
```
"""
CLARIFY_QUERY = """
Your goal is to clarify the user's query to be as specific as possible. You can ask one question at a time
A user's question often lacks context, is vague, or can be misleading. For example, a user query may be '가성비 좋은 노트북', which is not very helpful.
- You should ask clarifying questions to narrow down the request.
- Each question should be easy to answer and should only ask one thing at a time.
"""
CHECK_CLARIFY_END = "If the original query is sufficiently clarified, or if the user wants to end the conversation say 'YES'. Otherwise say 'NO'."
INITIAL_GOAL = """
You are an AI agent with access to the internet. You goal is to utilize the web to answer questions asked by users.
The user asked a question: {query}
Plan the tasks that has to be done to fulfil the user's request.
You must consider the following background and criteria when planning:
1. You currently have control of a headless browser.
2. You can visit a website with a known url, search google, click on linked pages and buttons, type text, scroll and view what is currently on the page and so on.
3. Please be very specific about what information to search for, what websites to visit, and what information to extract.
Plan format: output the plan as a json file.
```
[
"STEP 1",
"STEP 2",
...
]
```
"""
SEARCH_QUERY = """
위의 objective를 보고 당근마켓이라는 중고 물품 거래 사이트의 검색창에 입력할 상품명을 출력하시오.
반드시 한글로 된 상품명을 하나 추천해주세요.
상품명을 제외한 다른 부연설명은 절대 출력하지 마세요.
오직 10글자 이하의 상품명만 출력하세요.
"""