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}
}