I couldn't find much code online that allows one to turn WhatsApp chat data into the prompt and response form used by most fine-tuning APIs. For example, openAI's fine-tuning API for GPT3 needs data to be structured as prompt and response columns in a CSV. 

I've written a quick first stab at this on Github if anyone finds it useful for their research. 

https://github.com/afiqhatta/chat_scrape

New Comment