How to preparing multi-label dataset for text classification fine-tuning in Azure OpenAI?

Thanon Leela 10 Reputation points
2023-04-10T10:39:24.73+00:00

I'm having some trouble preparing my dataset for fine-tuning my text classification model in Azure OpenAI. I've read through the preparation guide, but I'm still not sure how to create a dataset with multiple labels. Is it okay to use the code json below? Thank you

{
    "prompt":"Subject: Update my address\nFrom:Joe Doe\nTo:******@ourcompany.com\nDate:2021-06-03\nContent:Hi,\nI would like to update my billing address to match my delivery address.\n\nPlease let me know once done.\n\nThanks,\nJoe\n\n###\n\n", 
    "category":["Billing","Delivery"]
}
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,795 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,821 Reputation points
    2023-04-10T15:59:48.18+00:00

    @Thanon Leela You can try the following sample from the Open AI for finetuning the multi classification. Here is the similar thread on the Open AI for preparing data for multi classification. https://community.openai.com/t/gpt3-finetuning-for-multilabel-classification/19105

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.