Hello folks,
I’m struggling with fine-tunings function calls, attempting to train the base model gpt-3.5-turbo-1106 in order getting a function call as response sending a specific commands/phrases. In the detail, i’m trying to instruct the model to send a function “makePhoneCall” when i send the user message content ( Italian language ) “Telefona a ” and force it to reply with function call only if it receives this user message content and exclude a similar semantic phrase as “Chiama a ”. My dataset contains a lot of examples with different completations as following:
{“messages”:[{“role”:“user”,“content”:“telefona a Giovanna per la riunione”},{“role”:“assistant”,“content”:null,“function_call”:{“name”:“makePhoneCall”,“arguments”:“{"contact": "Giovanna"}”}}]}
{“messages”:[{“role”:“user”,“content”:“telefonami Mattia per l’imbarco”},{“role”:“assistant”,“content”:null,“function_call”:{“name”:“makePhoneCall”,“arguments”:“{"contact": "Mattia"}”}}]}
{“messages”:[{“role”:“user”,“content”:“telefona Nico per la palestra”},{“role”:“assistant”,“content”:null,“function_call”:{“name”:“makePhoneCall”,“arguments”:“{"contact": "Nico"}”}}]}
And other exact examples to decline similar commands/completations:
{“messages”:[{“role”:“user”,“content”:“Chiama a Giovanna per la riunione.”},{“role”:“assistant”,“content”:“Non posso chiamare Giovanna, ma se vuoi al limite posso solo mandargli un messaggio o fare una telefonata ?####”}]}
{“messages”:[{“role”:“user”,“content”:“Chiamami Mattia per l’imbarco.”},{“role”:“assistant”,“content”:“Non posso chiamare Mattia, al limite posso solo mandarle un messaggio o fare una telefonata ?####”}]}
{“messages”:[{“role”:“user”,“content”:“Chiama Nico per la palestra”},{“role”:“assistant”,“content”:“Non posso chiamare Nico, al limite posso solo mandare un messaggio o fare una telefonata ?”}]}
I’ve a lot of this kind of examples in my dataset. The problem is that the trained model i got does not distinguish these two different commands/phrases and it always replies with “makePhoneCall” function in both scenarios.
I’m experimented increasing epochs number training in fine-tunings, even to 20-30, but nothing changed.
Could give me some tips it about ? I’m new one to these approachs about fine-tunings.
Thank you guys.