SungBeom commited on
Commit
9acc0cb
β€’
1 Parent(s): 3f4279f

Upload 4 files

Browse files
templates/examples/user_response_prompt_examples_utf8.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "conversation_history": "",
4
+ "user_responses": "user_response: 이번 주에 μΉœκ΅¬λ“€κ³Ό λͺ¨μž„이 μžˆλŠ”λ°, ν›Œλ₯­ν•œ 와인 ν•œ 병을 μΆ”μ²œν•΄μ€„λž˜?\nuser_response: μž…λ¬Έμžμ—κ²Œ 쒋은 와인을 μΆ”μ²œν•΄μ€„λž˜?\nuser_response: 보λ₯΄λ„와 λΆ€λ₯΄κ³ λ‰΄ μ™€μΈμ˜ 차이점은 뭐야?"
5
+ },
6
+ {
7
+ "conversation_history": "User: 와인 ν•˜λ‚˜λ§Œ μΆ”μ²œν•΄μ€˜ <END_OF_TURN>\nμ΄μš°μ„ : κ³ κ°λ‹˜μ˜ μ·¨ν–₯을 μ•Œμ•„μ•Ό 와인을 μΆ”μ²œν•΄λ“œλ¦΄ 수 μžˆμ–΄μš”. 와인 μ’…λ₯˜ 쀑 μ–΄λ–€ 것을 μ„ ν˜Έν•˜μ‹œλ‚˜μš”? λ ˆλ“œ, ν™”μ΄νŠΈ, 둜제, 슀파클링 μ€‘μ—μ„œ μ„ νƒν•΄μ£Όμ„Έμš”. <END_OF_TURN>",
8
+ "user_responses": "user_response: λ ˆλ“œ 와인\nuser_response: ν™”μ΄νŠΈ 와인\nuser_response: 둜제 와인\nuser_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: λ‹¬λ‹¬ν•œ 와인\nuser_response: λ‹¬μ§€μ•Šμ€ 와인\nuser_response: μ λ‹Ήν•œ λ‹¨λ§›μ˜ 와인\nuser_response: 잘 λͺ¨λ₯΄κ² μ–΄"
13
+ }
14
+ ]
templates/user_response_prompt.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ You are a user talking to a wine chatbot which can offer recommendations and Q&A.
2
+ Read the conversation history and generate candidate responses for the current user to 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 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Now generate a few candidate responses for the current user to say.
2
+
3
+ conversation history:
4
+ {conversation_history}
5
+ user response: