Azure Open AI Trainingsdata Studio - cannot process trining file with empty prompts

Wolfgang Schneider 0 Reputation points
2023-06-01T13:27:57.74+00:00

Help Says I can use empty promts (https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/prepare-dataset)

{"prompt":"", "completion":" <company voice textual content>"}
{"prompt":"", "completion":" <company voice textual content2>"}

But I get an error during Test- und Trainingsdataset processing:

Validation of jsonl file failed: No valid json line found in file. Each line's json may only contain two properties with exact casing: ("context" or "prompt") and "completion"

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,599 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,686 Reputation points Microsoft Employee
    2023-06-05T07:50:10.56+00:00

    @Wolfgang Schneider Are you using a file with complete empty prompts? I have added empty prompts along with prompts with data and the file is processed successfully. I think you need to add some prompts along with empty data to ensure your file is processed successfully. Here is the sample data I used.

    {"prompt":"When I go to the store, I want an ->\n\n###\n\n","completion":" apple\n."}
    {"prompt":"When I go to work, I want a ->\n\n###\n\n","completion":" coffee\n."}
    {"prompt":"When I go home, I want a ->\n\n###\n\n","completion":" soda\n."}
    {"prompt":"Company: BHFF insurance\nProduct: allround insurance\nAd:One stop shop for all your insurance needs!\nSupported:\n\n###\n\n","completion":" yes."}
    {"prompt":"Company: Loft conversion specialists\nProduct: -\nAd:Straight teeth in weeks!\nSupported:\n\n###\n\n","completion":" no."}
    {"prompt":"","completion":" Ya Sure"}
    {"prompt":"","completion":" Let me test this!!"}
    
    
    
    

    File processed successfully:

    User's image

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments