Skip to content

wangxu0820/NegativePrompt

Repository files navigation

NegativePrompt

Code release for NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli (IJCAI 2024)

Installation

First, clone the repo:

git clone git@https://github.com/wangxu0820/NegativePrompt

Then,

cd NegativePrompt

To install the required packages, you can create a conda environment:

conda create --name negativeprompt python=3.9

then use pip to install required packages:

pip install -r requirements.txt

Usage

python main.py --task task_name --model model_name --pnum negativeprompt_id --few_shot False

Citation

Please cite us if you find this project helpful for your research:

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

About

The official GitHub page for paper "NegativePrompt: Leveraging Psychology for Large Language Models Enhancement via Negative Emotional Stimuli".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages