$git clone https://github.com/wangxu0820/NegativePromptFirst, clone the repo: ``sh git clone git@https://github.com/wangxu0820/NegativePrompt
| 1 | # NegativePrompt |
| 2 | Code release for [NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli](https://arxiv.org/abs/2405.02814) (IJCAI 2024) |
| 3 | |
| 4 | ## Installation |
| 5 | |
| 6 | First, clone the repo: |
| 7 | ```sh |
| 8 | git clone git@https://github.com/wangxu0820/NegativePrompt |
| 9 | ``` |
| 10 | |
| 11 | Then, |
| 12 | |
| 13 | ```sh |
| 14 | cd NegativePrompt |
| 15 | ``` |
| 16 | |
| 17 | To install the required packages, you can create a conda environment: |
| 18 | |
| 19 | ```sh |
| 20 | conda create --name negativeprompt python=3.9 |
| 21 | ``` |
| 22 | |
| 23 | then use pip to install required packages: |
| 24 | |
| 25 | ```sh |
| 26 | pip install -r requirements.txt |
| 27 | ``` |
| 28 | |
| 29 | ## Usage |
| 30 | ```sh |
| 31 | python main.py --task task_name --model model_name --pnum negativeprompt_id --few_shot False |
| 32 | ``` |
| 33 | |
| 34 | ## Citation |
| 35 | Please cite us if you find this project helpful for your research: |
| 36 | ``` |
| 37 | @misc{wang2024negativeprompt, |
| 38 | title={NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli}, |
| 39 | author={Xu Wang and Cheng Li and Yi Chang and Jindong Wang and Yuan Wu}, |
| 40 | year={2024}, |
| 41 | eprint={2405.02814}, |
| 42 | archivePrefix={arXiv}, |
| 43 | primaryClass={cs.CL} |
| 44 | } |
| 45 | ``` |