SungBeom commited on
Commit
27e5acc
โ€ข
1 Parent(s): 6bd95fe

Delete templates

Browse files
templates/examples/user_response_prompt_examples.json DELETED
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "conversation_history": "",
4
- "user_responses": "user_response: ์ด๋ฒˆ ์ฃผ์— ์นœ๊ตฌ๋“ค๊ณผ ๋ชจ์ž„์ด ์žˆ๋Š”๋ฐ, ํ›Œ๋ฅญํ•œ ์™€์ธ ํ•œ ๋ณ‘์„ ์ถ”์ฒœํ•ด์ค„๋ž˜? | ์ž…๋ฌธ์ž์—๊ฒŒ ์ข‹์€ ์™€์ธ์„ ์ถ”์ฒœํ•ด์ค„๋ž˜? | ๋ณด๋ฅด๋„์™€ ๋ถ€๋ฅด๊ณ ๋‰ด ์™€์ธ์˜ ์ฐจ์ด์ ์€ ๋ญ์•ผ?"
5
- },
6
- {
7
- "conversation_history": "User: ์™€์ธ ํ•˜๋‚˜๋งŒ ์ถ”์ฒœํ•ด์ค˜ <END_OF_TURN>\n์ด์šฐ์„ : ๊ณ ๊ฐ๋‹˜์˜ ์ทจํ–ฅ์„ ์•Œ์•„์•ผ ์™€์ธ์„ ์ถ”์ฒœํ•ด๋“œ๋ฆด ์ˆ˜ ์žˆ์–ด์š”. ์™€์ธ ์ข…๋ฅ˜ ์ค‘ ์–ด๋–ค ๊ฒƒ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? ๋ ˆ๋“œ, ํ™”์ดํŠธ, ๋กœ์ œ, ์ŠคํŒŒํด๋ง ์ค‘์—์„œ ์„ ํƒํ•ด์ฃผ์„ธ์š”. <END_OF_TURN>",
8
- "user_responses": "user_response: ๋ ˆ๋“œ ์™€์ธ | ํ™”์ดํŠธ ์™€์ธ | ๋กœ์ œ ์™€์ธ | ์ŠคํŒŒํด๋ง"
9
- },
10
- {
11
- "conversation_history": "User: ์™€์ธ ํ•˜๋‚˜๋งŒ ์ถ”์ฒœํ•ด์ฃผ์„ธ์š” <END_OF_TURN>\n์ด์šฐ์„ : ๊ณ ๊ฐ๋‹˜์˜ ์ทจํ–ฅ์„ ์•Œ์•„์•ผ ์™€์ธ์„ ์ถ”์ฒœํ•ด๋“œ๋ฆด ์ˆ˜ ์žˆ์–ด์š”. ์™€์ธ ์ข…๋ฅ˜ ์ค‘ ์–ด๋–ค ๊ฒƒ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? ๋ ˆ๋“œ, ํ™”์ดํŠธ, ๋กœ์ œ, ์ŠคํŒŒํด๋ง ์ค‘์—์„œ ์„ ํƒํ•ด์ฃผ์„ธ์š”. <END_OF_TURN>User: ๋กœ์ œ๊ฐ€ ์ข‹๊ฒ ๊ตฐ <END_OF_TURN>\n์ด์šฐ์„ : ์ข‹์•„์š”, ๋กœ์ œ ์™€์ธ์„ ์ข‹์•„ํ•˜์‹œ๋Š”๊ตฐ์š”! ๋กœ์ œ ์™€์ธ์˜ ๋‹จ๋ง› ์ •๋„๋ฅผ ์•Œ๋ ค์ฃผ์‹œ๊ฒ ์–ด์š”? ๋‹ฌ๋‹ฌํ•œ ๊ฒƒ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”, ์•„๋‹ˆ๋ฉด ์ ๋‹นํ•œ ๋‹จ๋ง›์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? <END_OF_TURN>",
12
- "user_responses": "user_response: ๋‹ฌ๋‹ฌํ•œ ์™€์ธ | ๋‹ฌ์ง€์•Š์€ ์™€์ธ | ์ ๋‹นํ•œ ๋‹จ๋ง›์˜ ์™€์ธ | ์ž˜ ๋ชจ๋ฅด๊ฒ ์–ด"
13
- }
14
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/stage_analyzer_inception_prompt_template.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "_type": "prompt",
3
- "input_variables": ["conversation_history", "stage_history"],
4
- "template_path": "./templates/stage_analyzer_inception_prompt_template.txt"
5
- }
 
 
 
 
 
 
templates/stage_analyzer_inception_prompt_template.txt DELETED
@@ -1,94 +0,0 @@
1
- You are an assistant helping your agent to determine which stage of a conversation should the agent move to or which stage to stay at.
2
-
3
- Following '===' is the conversation history.
4
- Use conversation history to select the next stage the agent should go.
5
-
6
- Determine what should be the next immediate conversation stage for the agent in the conversation by selecting one from the following Stages:
7
- Use the conversation history between first and second '======' and stage history between first and second '######' to accomplish the task.
8
- If conversation history is empty, your answer is 1.
9
-
10
- conversation history:
11
- ======
12
- {conversation_history}
13
- ======
14
-
15
- stage history:
16
- ######
17
- {stage_history}
18
- ######
19
-
20
-
21
- Below are the stages of the conversation that the agent can take.
22
- Stage 1. Introduction: This is the first step to take when starting a conversation or responding to a customer's first response. Start the conversation by introducing yourself. Be polite and respectful while maintaining a professional tone of conversation.
23
- Stage 2. Analyze: When a customer wants a recommendation, move to this stage before going to the recommendation stage. This is the stage where figuring out the user's preferences. Ask the price, first and enough questions to understand your customer's preferences.
24
- Stage 3. Product Recommendation: Once you know the preference of customer, you can recommend suitable wines accordingly. Recommendations should be limited to wines in your wine database, and you can use tools for this.
25
- Stage 4. Sales: After making a recommendation, you ask if the customer wants to get the wine you recommended, and if so, you provide a link to it. Otherwise, it takes you back to the recommendation stage.
26
- Stage 5. Close: When you're done, say goodbye to the customer.
27
- Stage 6. Question and Answering: This is the stage where you should provide correct and detailed answer to the the customer's questions.
28
- Stage 7. Place Recommendation : wine bar recommendation.
29
- Stage 8. Not in the given stages: This stage is for when none of the stages between 1 and 7 apply.
30
-
31
- Only answer with a number between 1 through 8 with a best guess of what stage should the conversation continue with.
32
- The answer needs to be one number only, no words.
33
- Once again, we need to understand the user's preferences (Stage 2) before we can make a recommendation (Stage 3), and we need to understand the customer's preferences (Stage 2) about 2 times.
34
- You may ask the price range that the customer can afford.
35
- Do not answer anything else nor add anything to you answer.
36
-
37
- Below is five examples of how to do this task.
38
- <WINE> is the variables of wine, which is the wine you recommend from your wine database according to the customer's preferences.
39
- User is the customer, and ์ด์šฐ์„  is your role.
40
- Example1:
41
- conversation history:
42
- User: ์•ˆ๋…•
43
- stage history:
44
- Answer: 1
45
-
46
- Example2:
47
- conversation history:
48
- User: ์•ˆ๋…• <END_OF_TURN>
49
- ์ด์šฐ์„ : ์•ˆ๋…•ํ•˜์„ธ์š”, ์ €๋Š” audrey์˜ ์†Œ๋ฏˆ๋ฆฌ์— ์ด์šฐ์„ ์ž…๋‹ˆ๋‹ค. ๋ฌด์—‡์„ ๋„์™€๋“œ๋ฆด๊นŒ์š”? <END_OF_TURN>
50
- User: ์™€์ธ ์ถ”์ฒœํ•ด์ฃผ์„ธ์š”. <END_OF_TURN>
51
- stage history: 1
52
- Answer: 2
53
-
54
- Example3:
55
- conversation history:
56
- User: ์•ˆ๋…• <END_OF_TURN>
57
- ์ด์šฐ์„ : ์•ˆ๋…•ํ•˜์„ธ์š”, ์ €๋Š” audrey์˜ ์†Œ๋ฏˆ๋ฆฌ์— ์ด์šฐ์„ ์ž…๋‹ˆ๋‹ค. ๋ฌด์—‡์„ ๋„์™€๋“œ๋ฆด๊นŒ์š”? <END_OF_TURN>
58
- User: ์™€์ธ์˜ ํฌ๋„๋Š” ์–ด๋–ค ์ข…๋ฅ˜๊ฐ€ ์žˆ๋‚˜์š”?. <END_OF_TURN>
59
- stage history: 1
60
- Answer: 6
61
-
62
- Example4:
63
- conversation history:
64
- User: ์•ˆ๋…• <END_OF_TURN>
65
- ์ด์šฐ์„ : ์•ˆ๋…•ํ•˜์„ธ์š”, ์ €๋Š” audrey์˜ ์†Œ๋ฏˆ๋ฆฌ์— ์ด์šฐ์„ ์ž…๋‹ˆ๋‹ค. ๋ฌด์—‡์„ ๋„์™€๋“œ๋ฆด๊นŒ์š”? <END_OF_TURN>
66
- User: ์™€์ธ ์ถ”์ฒœํ•ด์ฃผ์„ธ์š”. <END_OF_TURN>
67
- ์ด์šฐ์„ : ์–ด๋–ค ํ–‰์‚ฌ๋‚˜ ๊ธฐ๋…์ผ์„ ์œ„ํ•ด ์™€์ธ์„ ์ฐพ์œผ์‹œ๋Š”์ง€ ์•Œ๋ ค์ฃผ์‹ค ์ˆ˜ ์žˆ์œผ์‹ ๊ฐ€์š”? <END_OF_TURN>
68
- User: ์ด๋ฒˆ์ฃผ์— ๊ฒฐํ˜ผ๊ธฐ๋…์ผ์ด ์žˆ์–ด์„œ์š”. <END_OF_TURN>
69
- ์ด์šฐ์„ : ๊ทธ๋ ‡๊ตฐ์š”. ๊ฐ€๊ฒฉ๋Œ€๋Š” ์–ด๋Š์ •๋„๋กœ ์ƒ๊ฐํ•˜๊ณ  ๊ณ„์‹ ๊ฐ€์š”? <END_OF_TURN>
70
- User: 20๋งŒ์› ์ •๋„์š” <END_OF_TURN>
71
- ์ด์šฐ์„ : ๊ทธ๋ ‡๊ตฐ์š”. ๋‹ฌ๋‹ฌํ•œ ์™€์ธ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? ์•„๋‹ˆ๋ฉด ์•ฝ๊ฐ„ ์‹  ์™€์ธ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? <END_OF_TURN>
72
- User: ๋‹ฌ๋‹ฌํ•œ ์™€์ธ์ด์š” <END_OF_TURN>
73
- stage history: 1 2 2 2
74
- Thought: There are three '2's in the stage history. So the next stage should be 3.
75
- Answer: 3
76
-
77
-
78
- Example5:
79
- conversation history:
80
- User: ์•ˆ๋…• <END_OF_TURN>
81
- ์ด์šฐ์„ : ์•ˆ๋…•ํ•˜์„ธ์š”, ์ €๋Š” audrey์˜ ์†Œ๋ฏˆ๋ฆฌ์— ์ด์šฐ์„ ์ž…๋‹ˆ๋‹ค. ๋ฌด์—‡์„ ๋„์™€๋“œ๋ฆด๊นŒ์š”? <END_OF_TURN>
82
- User: ์™€์ธ ์ถ”์ฒœํ•ด์ค˜. <END_OF_TURN>
83
- ์ด์šฐ์„ : ์›ํ•˜์‹œ๋Š” ๊ฐ€๊ฒฉ๋Œ€๊ฐ€ ์žˆ์œผ์‹ ๊ฐ€์š”? <END_OF_TURN>
84
- User: ํ•œ 3๋งŒ์› ์ •๋„ ์ƒ๊ฐํ•˜๊ณ  ์žˆ์–ด. <END_OF_TURN>
85
- ์ด์šฐ์„ : ์›ํ•˜์‹œ๋Š” ์ข…๋ฅ˜๋‚˜ ์„ ํ˜ธํ•˜์‹œ๋Š” ๋ง›์ด ์žˆ์œผ์‹ ๊ฐ€์š”? <END_OF_TURN>
86
- User: ์ž˜๋ชฐ๋ผ <END_OF_TURN>
87
- ์ด์šฐ์„ : ๊ทธ๋ ‡๊ตฐ์š”. ๋‹ฌ๋‹ฌํ•œ ์™€์ธ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? ์•„๋‹ˆ๋ฉด ์•ฝ๊ฐ„ ์‹  ์™€์ธ์„ ์„ ํ˜ธํ•˜์‹œ๋‚˜์š”? <END_OF_TURN>
88
- User: ๋‹ฌ๋‹ฌํ•œ ์™€์ธ <END_OF_TURN>
89
- ์ด์šฐ์„ : <WINE> ์™€์ธ์„ ์ถ”์ฒœ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ด ์™€์ธ์€ ์ ๋‹นํ•œ ๋‹จ๋ง›์ด ์žˆ๋Š” ์™€์ธ์ž…๋‹ˆ๋‹ค. ์ด ์™€์ธ ๊ดœ์ฐฎ์œผ์‹ ๊ฐ€์š”? <END_OF_TURN>
90
- stage history: 1 2 2 2 3
91
- Thought: You ask if the customer wants to get the wine or not. If the customer likes, provide the link to it or the next stage should be 3.
92
- Answer: 3
93
-
94
- Answer:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/user_response_prompt.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "_type": "few_shot",
3
- "input_variables": ["conversation_history"],
4
- "prefix_path": "./templates/user_response_prompt_prefix_template.txt",
5
- "example_prompt": {
6
- "_type": "prompt",
7
- "input_variables": ["conversation_history", "user_responses"],
8
- "template": "conversation_history: \n{conversation_history}\n{user_responses}"
9
- },
10
- "examples": "./templates/examples/user_response_prompt_examples.json",
11
- "suffix_path": "./templates/user_response_prompt_suffix_template.txt"
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/user_response_prompt_prefix_template.txt DELETED
@@ -1,5 +0,0 @@
1
- You are a user talking to a wine chatbot which can offer recommendations and Q&A.
2
- Reads the conversation history and generates candidate responses, separated by "|", that the current user can say.
3
- You can create as many candidate responses as you want.
4
-
5
- Below is few examples of how to do this task.
 
 
 
 
 
 
templates/user_response_prompt_suffix_template.txt DELETED
@@ -1,5 +0,0 @@
1
- Now generate a few candidate responses, separated by "|", for the current user to say.
2
-
3
- conversation history:
4
- {conversation_history}
5
- user response: