Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLM 单请求翻译多段原文本 #248

Closed
awwaawwa opened this issue Dec 16, 2024 · 1 comment
Closed

LLM 单请求翻译多段原文本 #248

awwaawwa opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@awwaawwa
Copy link
Contributor

功能描述

请描述需要添加的功能,以及是否有类似项目可以参考
参照沉浸式翻译:

You will be given a YAML formatted input containing entries with "id" and "{{imt_source_field}}" fields. Here is the input:

<yaml>
{{yaml}}
</yaml>

For each entry in the YAML, translate the contents of the "{{imt_source_field}}" field into {{to}},{{html_only}} Write the translation back into the "{{imt_source_field}}" field for that entry.

Here is an example of the expected format:

<example>
Input:
  - id: 1
    {{imt_source_field}}: Source
Output:
  - id: 1
    {{imt_trans_field}}: Translation
</example>

Please return the translated YAML directly without wrapping <yaml> tag or include any additional information.

ps:其实用json也行

@Byaidu Byaidu added the enhancement New feature or request label Dec 16, 2024
@reycn
Copy link
Collaborator

reycn commented Dec 18, 2024

I do not recommend this change.

The reason is that, different models do have diverse levels of the ability to follow commands, in which case, small models are highly possible to fail in following such a complex prompt.

@Byaidu Byaidu closed this as completed Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants