Signed-off-by: -LAN- <laipz8200@outlook.com>tags/0.13.1
| CHAT_APP_COMPLETION_PROMPT_CONFIG = { | CHAT_APP_COMPLETION_PROMPT_CONFIG = { | ||||
| "completion_prompt_config": { | "completion_prompt_config": { | ||||
| "prompt": { | "prompt": { | ||||
| "text": "{{#pre_prompt#}}\nHere is the chat histories between human and assistant, inside <histories></histories> XML tags.\n\n<histories>\n{{#histories#}}\n</histories>\n\n\nHuman: {{#query#}}\n\nAssistant: " # noqa: E501 | |||||
| "text": "{{#pre_prompt#}}\nHere are the chat histories between human and assistant, inside <histories></histories> XML tags.\n\n<histories>\n{{#histories#}}\n</histories>\n\n\nHuman: {{#query#}}\n\nAssistant: " # noqa: E501 | |||||
| }, | }, | ||||
| "conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"}, | "conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"}, | ||||
| }, | }, |
| "completion_model": { | "completion_model": { | ||||
| "conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"}, | "conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"}, | ||||
| "prompt": { | "prompt": { | ||||
| "text": "Here is the chat histories between human and assistant, inside " | |||||
| "text": "Here are the chat histories between human and assistant, inside " | |||||
| "<histories></histories> XML tags.\n\n<histories>\n{{" | "<histories></histories> XML tags.\n\n<histories>\n{{" | ||||
| "#histories#}}\n</histories>\n\n\nHuman: {{#sys.query#}}\n\nAssistant:", | "#histories#}}\n</histories>\n\n\nHuman: {{#sys.query#}}\n\nAssistant:", | ||||
| "edition_type": "basic", | "edition_type": "basic", |
| Step 4: Ensure that the JSON object is properly formatted and valid. The output should not contain any XML tags. Only the JSON object should be outputted. | Step 4: Ensure that the JSON object is properly formatted and valid. The output should not contain any XML tags. Only the JSON object should be outputted. | ||||
| ### Memory | ### Memory | ||||
| Here is the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| Here are the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| <histories> | <histories> | ||||
| {histories} | {histories} | ||||
| </histories> | </histories> | ||||
| The structure of the JSON object you can found in the instructions. | The structure of the JSON object you can found in the instructions. | ||||
| ### Memory | ### Memory | ||||
| Here is the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| Here are the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| <histories> | <histories> | ||||
| {histories} | {histories} | ||||
| </histories> | </histories> |
| ### Constraint | ### Constraint | ||||
| DO NOT include anything other than the JSON array in your response. | DO NOT include anything other than the JSON array in your response. | ||||
| ### Memory | ### Memory | ||||
| Here is the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| Here are the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| <histories> | <histories> | ||||
| {histories} | {histories} | ||||
| </histories> | </histories> | ||||
| Assistant:{{"keywords": ["bad service", "slow", "food", "tip", "terrible", "waitresses"],"category_id": "f6ff5bc3-aca0-4e4a-8627-e760d0aca78f","category_name": "Experience"}} | Assistant:{{"keywords": ["bad service", "slow", "food", "tip", "terrible", "waitresses"],"category_id": "f6ff5bc3-aca0-4e4a-8627-e760d0aca78f","category_name": "Experience"}} | ||||
| </example> | </example> | ||||
| ### Memory | ### Memory | ||||
| Here is the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| Here are the chat histories between human and assistant, inside <histories></histories> XML tags. | |||||
| <histories> | <histories> | ||||
| {histories} | {histories} | ||||
| </histories> | </histories> |