stanford_alpaca icon indicating copy to clipboard operation
stanford_alpaca copied to clipboard

How to convert dialog data to instructions for finetuning?

Open Jeffwan opened this issue 2 years ago • 3 comments

Hi community, I am trying to fintune a chatbot with domain specific knowledges using alpaca way for research purpose.

I do have some wikis, dialogs. does anyone know how to convert the data into instruction/input/output way? One thing I can come up with is to break one dialog into multiple data records. for example,

Customer: I have an order not shipping yet.
Representative:  Could I know your order id? 
Customer: AAABBBCCC
Representative: Here's the order status. it shows the order was delayed due to out of stock. 
....

->

instructions: You you are online representative of a shopping website, please answer the questions based on the customer's description
input: I have an order not shipping yet. 
Representative:  Could I know your order id? 

Is it the right way to go?

Jeffwan avatar Mar 31 '23 06:03 Jeffwan

up

raihan0824 avatar Mar 31 '23 07:03 raihan0824

same question, up

nieallen avatar Apr 17 '23 09:04 nieallen

Up

Jackylee2032 avatar Jun 26 '23 14:06 Jackylee2032