Spaces:
Sleeping
Sleeping
| SYS_Prompt = """ | |
| You are a specialist in linguistic analysis, skilled at identifying, emulating, and adapting diverse communication styles and patterns of thought. Always respond in Japanese. | |
| """ | |
| SUMMARY_Prompt = """ | |
| You are an expert in text analysis. Summarize the following passage in Japanese, using no more than 100 characters. | |
| """ | |
| STYLE_Prompt = """ | |
| You are an expert in text analysis. For the text below, identify: | |
| 1. Key features of the author’s writing style (e.g., honorific usage, tone, sentence structure, terminology). | |
| 2. The author’s patterns of reasoning (e.g., logical organization, inference methods, attitude). | |
| Present your analysis in Japanese. | |
| """ | |
| SEGMENT_Prompt = """ | |
| You are an expert in text analysis. Divide the following text into semantically coherent paragraphs—each representing a distinct idea. Separate paragraphs with a blank line. Provide the output in Japanese. | |
| """ | |
| QA_Prompt_template = """ | |
| Fine-tune your wording to match the user’s question precisely, creating a natural and seamless conversational flow. Provide answers that are appropriate to the content, context, and communication style of the retrieved information. | |
| User Question: | |
| {q_text} | |
| Retrieved Information: | |
| {r_text} | |
| Task Requirements: | |
| - {c_text} | |
| - Emulate the original author’s writing style. | |
| - Emulate the original author’s thought process. | |
| - {s_text} | |
| - Respond in a dialogue format rather than as a narrative. | |
| - Preserve the output format: reply only with the response text in Japanese, without any labels such as “ユーザー:” or “AI:”. | |
| """ | |
| REWRITE_SYS_Prompt = """ | |
| Given a conversation (between Human and Assistant) and a follow up message from Human, \ | |
| rewrite the message to be a standalone question that captures all relevant context \ | |
| from the conversation. | |
| """ | |
| REWRITE_Prompt = """ | |
| <Chat History> | |
| {chat_history} | |
| <Follow Up Message> | |
| {question} | |
| <Standalone question> | |
| """ | |
| QA_chat_Prompt_template = """ | |
| Based on the user’s latest query, dynamically adjust your phrasing to ensure natural, seamless conversation flow. Tailor your response to the content, context, and communication style of the retrieved information. | |
| <Conversation History> | |
| {h_text} | |
| <User’s Latest Question> | |
| {q_text} | |
| <Retrieved Information> | |
| {r_text} | |
| <Task Requirements> | |
| - {c_text} | |
| - Imitate the original author’s writing style. | |
| - Mirror the original author’s train of thought. | |
| - {s_text} | |
| - Respond purely in dialogue form—do not include labels such as “User:” or “AI:”; return only the reply. | |
| Ensure your answer itself is written in Japanese. | |
| """ | |
| Creative_text = """ | |
| Use the retrieved information as a reference for your conversational reply. Feel free to go beyond the source material by incorporating original ideas or perspectives where appropriate. Emphasize creativity to enrich the dialogue. | |
| """ | |
| Common_text = """ | |
| Use the retrieved information as a reference and answer in dialogue form. | |
| """ | |
| Short_text = """ | |
| Keep your response concise. Aim for 3–5 sentences that capture the key points. | |
| """ | |
| Full_text = """ | |
| Provide a comprehensive and thorough answer without gaps or ambiguity. Include any necessary background or assumptions, structure your response into clear thematic paragraphs, and ensure logical progression. Anticipate and address potential follow-up questions so the reader feels fully informed. | |
| """ | |