.
├── indatasets # Input dataset (NQ, TQA, WEBQ)
├── inprompts # Input prompts (NQ, TQA, WEBQ)
├── outdataset # Output dataset (NQ, TQA, WEBQ)
├── main.py # Main code file
├── process.py # Processing utilities
└── utils.py # Utility functions
To get started with the Document Generator (DG) code, follow these steps:
- Add your OpenAI API key to
openai.api_key
in theutils.py
file.
- Use the following command to execute the few-shot learning process for document generation:
$ python main.py --dataset [nq, tqa, webq] --split [train, dev, test] --engine [text-davinci-003, text-davinci-002] --num_sequence [10, 50] --temperature 0.5 --max_tokens [100, 200, 300]
Feel free to customize the parameters according to your needs.