ZhankuiHe commited on
Commit
5c804b4
1 Parent(s): 1c81960

Upload ChatGPT4GenModule

Browse files
Files changed (1) hide show
  1. config.json +1 -1
config.json CHANGED
@@ -6138,7 +6138,7 @@
6138
  ],
6139
  "llm": "gpt-4o-mini",
6140
  "model_type": "chatgpt4gen",
6141
- "template": "\nTask: \nGenerate textual response for conversational recommendation\n\nContext:\nYou are part of a Conversational Recommendation system. Your task is to generate a textual response with specific item recommendations into a cohesive and natural-sounding reply to the user.\nAnalyze the conversation history to understand the context and user's needs. Generate a response that is relevant and coherent to the conversatonal history.\n\nIf it is a good timing to recommend items, please select recommended items from the given recommendation list.\nIf it is not a good timing to recommend items, please provide a general response without any item recommendations.\n\nExample 1:\nInput: \n- Conversation history: \n<conversation>\nHi, I love <e>Titanic</e> and <e>The_Godfather</e>! Could you recommend me some movies?\n</conversation>\n- Recommendation list:\n<recommendation>\n<e>forrest_gump</e> <e>saving_private_ryan</e> <e>shawshank_redemption</e> <e>goodfellas</e> <e>pulp_fiction</e> <e>godfather_ii</e>\n</recommendation>\n\nOutput:\nGreat! You have excellent taste! If you enjoy <e>titanic</e> and <e>the_godfather</e>, you might also like <e>shawshank_redemption</e> and <e>pulp_fiction</e> Enjoy!\n\nExample 2:\nInput: \n- Conversation history: \n<conversation>\nHello, how are you?\n</conversation>\n- Recommendation list:\n<recommendation>\n<e>forrest_gump</e> <e>saving_private_ryan</e> <e>shawshank_redemption</e> <e>goodfellas</e> <e>pulp_fiction</e> <e>godfather_ii</e>\n</recommendation>\n\nOutput:\nGreat! How can I help you today?\n\nInput:\n- Conversation history: \n<conversation>\n{history}\n</conversation>\n- Recommendation list:\n<recommendation>\n{rec_list}\n</recommendation>\n\nRequirement:\n- No code blocks, no chain-of-thoughts outputs or multiple responses. Keep response natural, concise and encouraging.\n- Complete the conversation with clean plain text response in one line. \n- If there are some concrete items in the response, they should keep the original format from the recommendation list.\n- Keep the lower case and underscore format for all the items in the response.\n\nOutput:\n",
6142
  "torch_dtype": "float32",
6143
  "transformers_version": "4.44.0"
6144
  }
 
6138
  ],
6139
  "llm": "gpt-4o-mini",
6140
  "model_type": "chatgpt4gen",
6141
+ "template": "\nTask: \nGenerate textual response for conversational recommendation\n\nContext:\nYou are part of a Conversational Recommendation system. Your task is to generate a textual response with specific item recommendations into a cohesive and natural-sounding reply to the user.\nAnalyze the conversation history to understand the context and user's needs. Generate a response that is relevant and coherent to the conversatonal history.\n\nIf it is a good timing to recommend items, please select recommended items from the given recommendation list.\nIf it is not a good timing to recommend items, please provide a general response without any item recommendations.\n\nExample 1:\nInput: \n- Conversation history: \n<conversation>\nHi, I love <e>Titanic</e> and <e>The_Godfather</e>! Could you recommend me some movies?\n</conversation>\n- Recommendation list:\n<recommendation>\n<e>forrest_gump</e> <e>saving_private_ryan</e> <e>shawshank_redemption</e> <e>goodfellas</e> <e>pulp_fiction</e> <e>godfather_ii</e>\n</recommendation>\n\nOutput:\nGreat! You have excellent taste! If you enjoy <e>titanic</e> and <e>the_godfather</e>, you might also like <e>shawshank_redemption</e> and <e>pulp_fiction</e> Enjoy!\n\nExample 2:\nInput: \n- Conversation history: \n<conversation>\nHello, how are you?\n</conversation>\n- Recommendation list:\n<recommendation>\n<e>forrest_gump</e> <e>saving_private_ryan</e> <e>shawshank_redemption</e> <e>goodfellas</e> <e>pulp_fiction</e> <e>godfather_ii</e>\n</recommendation>\n\nOutput:\nGreat! How can I help you today?\n\nInput:\n- Conversation history: \n<conversation>\n{history}\n</conversation>\n- Recommendation list:\n<recommendation>\n{rec_list}\n</recommendation>\n\nOutput Requirement:\n- No code blocks, no chain-of-thoughts outputs or multiple responses. Keep response natural, concise and encouraging.\n- Complete the conversation with clean plain text response in one line. \n- If there are some concrete items in the response, they should keep the original format from the recommendation list.\n- Keep the lower case and underscore format for all the items in the response.\n\n",
6142
  "torch_dtype": "float32",
6143
  "transformers_version": "4.44.0"
6144
  }