AutoPrompt icon indicating copy to clipboard operation
AutoPrompt copied to clipboard

Modify the code for chinese prompt

Open Chain-Mao opened this issue 1 year ago • 1 comments

If my prompt is in Chinese instead of English, how should I modify the code

Chain-Mao avatar Jun 25 '24 05:06 Chain-Mao

It should work properly if the initial prompt is in Chinese. However, we didn't test it on different languages, so there might be a need for small modifications for the meta-prompt (explicitly instructing the model to preserve the prompt language).
This is the relevant meta-prompts: https://github.com/Eladlev/AutoPrompt/blob/main/prompts/meta_prompts_classification/step_prompt.prompt I'm guessing that also the samples should be in Chinese, so you might also need to add here the language instructions: https://github.com/Eladlev/AutoPrompt/blob/main/prompts/meta_prompts_classification/step_samples.prompt

Eladlev avatar Jun 25 '24 06:06 Eladlev