Spaces:
Runtime error
Runtime error
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:
|