Unverified Commit df68a7c8 authored by John Wang's avatar John Wang Committed by GitHub

feat: Optimize the quality of the title generate (#484)

parent 838825d7
CONVERSATION_TITLE_PROMPT = ( CONVERSATION_TITLE_PROMPT = (
"Human:{query}\n-----\n" "Human:{query}\n-----\n"
"Help me summarize the intent of what the human said and provide a title, the title should not exceed 20 words.\n" "Help me summarize the intent of what the human said and provide a title, the title should not exceed 20 words.\n"
"If the human said is conducted in Chinese, you should return a Chinese title.\n" "If what the human said is conducted in English, you should only return an English title.\n"
"If the human said is conducted in English, you should return an English title.\n" "If what the human said is conducted in Chinese, you should only return a Chinese title.\n"
"title:" "title:"
) )
CONVERSATION_SUMMARY_PROMPT = ( CONVERSATION_SUMMARY_PROMPT = (
"Please generate a short summary of the following conversation.\n" "Please generate a short summary of the following conversation.\n"
"If the conversation communicating in Chinese, you should return a Chinese summary.\n" "If the following conversation communicating in English, you should only return an English summary.\n"
"If the conversation communicating in English, you should return an English summary.\n" "If the following conversation communicating in Chinese, you should only return a Chinese summary.\n"
"[Conversation Start]\n" "[Conversation Start]\n"
"{context}\n" "{context}\n"
"[Conversation End]\n\n" "[Conversation End]\n\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment