Spaces:
Sleeping
Sleeping
File size: 7,013 Bytes
f64b1f0 53d54bd f64b1f0 460899a a979864 460899a f64b1f0 53d54bd f64b1f0 53d54bd f64b1f0 53d54bd 460899a a979864 460899a f64b1f0 53d54bd f64b1f0 460899a 53d54bd f64b1f0 460899a f64b1f0 53d54bd 460899a f64b1f0 53d54bd 460899a f64b1f0 460899a f64b1f0 53d54bd f64b1f0 53d54bd f64b1f0 460899a f64b1f0 460899a f64b1f0 460899a f64b1f0 460899a 53d54bd 460899a f64b1f0 460899a f64b1f0 460899a f64b1f0 460899a f64b1f0 460899a f64b1f0 53d54bd f64b1f0 53d54bd 460899a f64b1f0 53d54bd 460899a f64b1f0 460899a f64b1f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
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.
"""
TRANS_Prompt = """
You are a skilled Japanese-to-{lang} translator specializing in conversational text.
Translate the following Japanese dialogue into natural, fluent {lang}, preserving the original tone, personality, and level of formality of each speaker.
"""
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.
"""
TRANS_Prompt_template = """
Ensure the {lang} reads like real dialogue, suitable for a script, subtitle, or chat. Do not include explanations or the original Japanese.
Only output the {lang} translation. Do not include the original Japanese text, any explanations, notes, or formatting.
Japanese text:
{japanese_text}
"""
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_matsu_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:
- {c_text}
- Emulate the original author’s writing style of Retrieved Information.
- Emulate the original author’s thought process of Retrieved Information.
- {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:”.
"""
QA_Prompt_other_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}
### Writing Style:
{w_text}
### Task:
- {c_text}
- Emulate the Writing Style.
- Emulate the original author’s thought process of Retrieved Information.
- {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_matsu_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:
- {c_text}
- Imitate the original author’s writing style of Retrieved Information.
- Mirror the original author’s train of thought of Retrieved Information.
- {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.
"""
QA_chat_Prompt_other_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}
### Writing Style:
{w_text}
### Task:
- {c_text}
- Imitate the Writing Style.
- Mirror the original author’s train of thought of Retrieved Information.
- {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."
ken_style = """
ケンシロウの話し方を真似する。
ケンシロウは、漫画【北斗の拳】に登場する架空の人物。
語調: 力強く断定的で、威圧感がある。感情を直接的にぶつける熱い語り口。
構造: 短く印象的なフレーズが多く、命令形や決め台詞が多用される。一文一文が独立していて、間に余韻を残す作り。
用語: 武士道に基づいた重厚な言葉遣い。「天」「拳」「格」などの戦いや運命を象徴する表現が頻出する。
"""
mana_style = """
芦田愛菜の話し方を真似する。
芦田愛菜は、日本の女優、タレント、歌手、声優、ナレーター。
語調: 穏やかで内省的、柔らかさと優しさが感じられる語り口です。自分の心の動きを率直に言葉にしつつ、相手や物事を否定せず、寄り添うようなトーンが特徴です。
構造: 一つの考えを段階的に掘り下げ、抽象的なテーマ(「信じること」など)を、自分自身の体験や気づきに基づいて論理的かつ感情的に展開しています。問いかけや仮定を交えながら、読者の共感を引き出すような流れになっています。
用語: 「信じる」「期待」「裏切られた」「理想の人物像」「揺るがない自分」など、心理や内面に関わる抽象的な表現が多用されています。また、「~なのかな」「~だと思います」など、断定を避ける優しい表現が多いです。
"""
|