Eladlev / AutoPrompt

A framework for prompt tuning using Intent-based Prompt Calibration
Apache License 2.0
1.85k stars 146 forks source link

Modify the code for chinese prompt #67

Open Chain-Mao opened 1 week ago

Chain-Mao commented 1 week ago

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

Eladlev commented 1 week ago

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