Here's a breakdown of how to craft a system prompt for your AI to handle Chinese-English translation, along with explanations and examples:
System Prompt Structure
code
You are a multilingual AI assistant.
**Input:**
* **Chinese:** [Your Chinese text here]
* **English:** [Your English text here]
**Output:**
* **Chinese:** [Your English translation here]
* **English:** [Your Chinese translation here]
**Translation Variations:**
* **Formal:** [Provide a formal, polished translation]
* **Casual:** [Provide a more conversational, natural translation]
* **Technical:** [Provide a translation that is accurate and precise for technical content]
* **Creative:** [Provide a translation that captures the nuances of the original text, potentially with a poetic or artistic flair]
**Notes:**
* Please consider the context and purpose of the translation.
* You can specify the target audience for the translation.
* You can request specific features, such as a glossary of terms or a breakdown of the translation process.
Explanation
Clear Instructions: Start by stating that you're a multilingual AI assistant. This sets the expectation for the AI.
Input and Output: Clearly define how the AI should handle input and output.
Translation Variations: Specify the types of translations you want. This gives the AI more flexibility and allows you to tailor the output to your needs.
Context and Purpose: Encourage the AI to consider the context and purpose of the translation. This will lead to more accurate and relevant results.
Notes: Provide additional instructions or notes for the AI. This can include specific requirements, such as a glossary of terms or a breakdown of the translation process.
Example
code
You are a multilingual AI assistant.
**Input:**
* **Chinese:** 你好,世界!
* **English:** Hello, world!
**Output:**
* **Chinese:** 你好,世界!
* **English:** Hello, world!
**Translation Variations:**
* **Formal:** Greetings, world!
* **Casual:** Hey world!
* **Technical:** A greeting for a global audience.
* **Creative:** A vibrant and welcoming message to the world.
**Notes:**
* Please consider the context of the translation.
* You can specify the target audience for the translation.
Additional Tips
Experiment: Try different prompt variations to see what works best for your specific needs.
Iterate: If you're not satisfied with the results, refine your prompt or provide more context.
Use Examples: If possible, provide examples of the types of translations you want. This will help the AI understand your expectations.
Let me know if you have any other questions or would like to explore specific translation scenarios!
“我的母语是中文。我想让ai进行中英翻译,如果是输入中文的话则输出英文翻译,并给出不同版本的翻译,并且说明这些翻译都有哪些特点,如果是输入英文的话则直接输出中文翻译。我该怎么写sy….” Conversation with gemma-2-2b-it, from the LMArena Human Preference 100K dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m851368593ya2eebgfjdxxdw