NegativePrompt
1.0.0
ネガティブプロムプトのコードリリース:ネガティブな感情刺激を介した大規模な言語モデルの強化のための心理学を活用する(IJCAI 2024)
まず、リポジトリをクローンします。
git clone git@https://github.com/wangxu0820/NegativePromptそれから、
cd NegativePrompt必要なパッケージをインストールするには、Conda環境を作成できます。
conda create --name negativeprompt python=3.9次に、PIPを使用して、必要なパッケージをインストールします。
pip install -r requirements.txtpython main.py --task task_name --model model_name --pnum negativeprompt_id --few_shot Falseこのプロジェクトがあなたの研究に役立つと思うなら、私たちを引用してください:
@misc{wang2024negativeprompt,
title={NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli},
author={Xu Wang and Cheng Li and Yi Chang and Jindong Wang and Yuan Wu},
year={2024},
eprint={2405.02814},
archivePrefix={arXiv},
primaryClass={cs.CL}
}