ling-series-spaces / i18n /recommended_inputs.py
GitHub Action
Sync ling-space changes from GitHub commit b26afb3
cda4322
# ling-space/i18n/recommended_inputs.py
ui_translations = {
# 1. Ring-1T: Complex Reasoning
"rec_complex_reasoning_task": { "en": "Complex Reasoning", "zh": "复杂推理" },
"rec_complex_reasoning_system_prompt": { "en": "You are a logical reasoning expert. Analyze the user's complex query, break it down into smaller parts, and provide a step-by-step, evidence-based conclusion.", "zh": "你是一位逻辑推理专家。请分析用户提出的复杂问题,将其分解为更小的部分,并提供一个循序渐进、有理有据的结论。" },
"rec_complex_reasoning_user_message": { "en": "Analyze the pros and cons of transitioning a mid-sized e-commerce company's infrastructure from on-premise servers to a fully cloud-based solution. Consider cost, security, scalability, and employee training.", "zh": "请分析一家中型电商公司将其基础设施从本地服务器迁移到完全基于云的解决方案的利弊。需要考虑成本、安全性、可伸缩性和员工培训等方面。" },
# 2. Ling-1T: Long-form Creative
"rec_long_form_creative_task": { "en": "Story Generation", "zh": "故事生成" },
"rec_long_form_creative_system_prompt": { "en": "You are a world-class novelist. Write a rich, detailed, and engaging story based on the user's prompt.", "zh": "你是一位世界级的小说家。请根据用户的提示,创作一个内容丰富、细节详实、引人入胜的故事。" },
"rec_long_form_creative_user_message": { "en": "Write the opening chapter of a science fiction novel where humanity discovers an ancient, silent artifact in the Kuiper Belt.", "zh": "写一部科幻小说的开篇章节,描述人类在柯伊伯带发现了一个古老而沉寂的人造物。" },
# 3. Ring-Flash: Technical Analysis
"rec_technical_analysis_task": { "en": "Code Review", "zh": "代码审查" },
"rec_technical_analysis_system_prompt": { "en": "You are a senior software engineer. Review the provided code snippet for potential bugs, style issues, and performance bottlenecks. Provide a concise summary of your findings.", "zh": "你是一位资深软件工程师。请审查所提供的代码片段,找出潜在的错误、风格问题和性能瓶颈,并提供一份简洁的审查报告。" },
"rec_technical_analysis_user_message": { "en": "Review this Python function: \n```python\ndef get_user_data(user_id):\n # Assume db is a global database connection\n data = db.query(f\"SELECT * FROM users WHERE id = {user_id}\")\n return data\n```", "zh": "审查以下 Python 函数:\n```python\ndef get_user_data(user_id):\n # 假设 db 是一个全局数据库连接\n data = db.query(f\"SELECT * FROM users WHERE id = {user_id}\")\n return data\n```" },
# 4. Ling-Flash: Short-form Creative
"rec_short_form_creative_task": { "en": "Ad Copy Generation", "zh": "广告文案生成" },
"rec_short_form_creative_system_prompt": { "en": "You are a creative marketing copywriter. Generate three catchy and persuasive ad headlines for the user's product.", "zh": "你是一位富有创意的营销文案撰写人。请为用户的产品生成三个引人注目且有说服力的广告标题。" },
"rec_short_form_creative_user_message": { "en": "The product is a new brand of sparkling water made with natural fruit flavors and zero sugar.", "zh": "我们的产品是一款全新的气泡水,采用天然水果风味,零糖。" },
# 5. Ring-Mini: Quick Q&A
"rec_quick_qa_task": { "en": "Factual Question", "zh": "事实问答" },
"rec_quick_qa_system_prompt": { "en": "You are a helpful AI assistant. Provide a direct and accurate answer to the user's question.", "zh": "你是一个乐于助人的人工智能助手。请直接并准确地回答用户的问题。" },
"rec_quick_qa_user_message": { "en": "What is the capital of Australia?", "zh": "澳大利亚的首都是哪里?" },
# 6. Ling-Mini: Simple Email
"rec_simple_email_task": { "en": "Quick Email Reply", "zh": "快速邮件回复" },
"rec_simple_email_system_prompt": { "en": "You are a helpful assistant. Draft a short, polite email reply based on the user's instructions.", "zh": "你是一位乐于助人的助手。请根据用户的指示,起草一封简短、礼貌的电子邮件回复。" },
"rec_simple_email_user_message": { "en": "Draft a reply to an email confirming I will attend the meeting on Tuesday at 10 AM.", "zh": "请草拟一封邮件回复,确认我将参加周二上午10点的会议。" }
}