README.md 1.55 KB
Newer Older
zihanl's avatar
zihanl committed
1
2
3

# Multi-Stage Prompting for Knowledgeable Dialogue Generation

zihanl's avatar
zihanl committed
4
Blow we present the steps to run our multi-stage dialogue prompting (MSDP) framework.
zihanl's avatar
zihanl committed
5

zihanl's avatar
zihanl committed
6
## Multi-Stage Dialogue Prompting
zihanl's avatar
zihanl committed
7
8
9

### Data Preparation
1. Dataset Download: [Wizard of Wikipedia](https://parl.ai/projects/wizard_of_wikipedia/) and [Wizard of Internet](https://parl.ai/projects/sea/)
zihanl's avatar
zihanl committed
10
2. Data Processing: We provide the script [`tasks/knwl_dialo/scripts/data_processing.sh`](./scripts/data_processing.sh) to process the data.
zihanl's avatar
zihanl committed
11

zihanl's avatar
zihanl committed
12
### Stage-1: Prompting for Knowledge Generation
zihanl's avatar
zihanl committed
13
1. The script [`tasks/knwl_dialo/scripts/prompt_knwl_gen.sh`](./scripts/prompt_knwl_gen.sh) provides an example for how to perform the first-stage prompting for the knowledge generation.
zihanl's avatar
zihanl committed
14
2. We provide the script [`tasks/knwl_dialo/scripts/eval_knwl_generation.sh`](./scripts/eval_knwl_generation.sh) for the automatic evaluation (i.e., F1, BLEU, METEOR, and ROUGE-L) of the knowledge generation.
zihanl's avatar
zihanl committed
15

zihanl's avatar
zihanl committed
16
### Stage-2: Prompting for Response Generation
zihanl's avatar
zihanl committed
17
18
1. The script [`tasks/knwl_dialo/scripts/prep_resp_gen.sh`](./scripts/prep_resp_gen.sh) helps to prepare the input file for the response generation (based on the previously generated knowledge file).
2. The script [`tasks/knwl_dialo/scripts/prompt_resp_gen.sh`](./scripts/prompt_resp_gen.sh) provides an example for how to perform the second-stage prompting for the response generation.
zihanl's avatar
zihanl committed
19
3. We provide the script [`tasks/knwl_dialo/scripts/eval_resp_generation.sh`](./scripts/eval_resp_generation.sh) for the automatic evaluation (i.e., F1, KF1, BLEU, METEOR, and ROUGE-L) of the knowledge generation.