make large dataset for training text model to create 'prompt' based on 'answer', most of the time there be image caption in 'answer', so make more fields with like: 'Make caption', 'Describe this image in fer words' and etc., make large variaty of different prompts.
Dataset should be in json format, with fields: 'good', 'bad', 'question' , 'bad' - answer, 'good' - prompt, 'question' - something like 'make prompt'
prompt should in some way reflect what`s inside 'good', for example, if answer is detailed, prompt should contain detailed, if its short, than it should contain short, etc.
Assistant
Creating a diverse dataset for training a text model to generate prompts based on given answers, particularly with image captions, is a great idea. Below is a sample JSON format with explanations and a few examples to get you started. Note that it's important to increase the diversity in the dataset by varying the language and style of the prompts.
Here's a JSON format:
json
[
{
"good": "Create a detailed caption for this image.",
"bad": "A cat is on a couch.",
"question": "How would you prompt someone to write a longer caption?"
},
{
"good": "Describe this image in a few words.",
"bad": "The sunset over the mountains is breathtaking with shades of orange and purple scattered across the sky.",
"question": "How to ask for a brief image description?"
},
{
"good": "Summarize this image in one sentence.",
"bad": "An elderly man with a wise expression sitting on a park bench reading a newspaper while a small dog at his feet looks around attentively.",
"question": "What's a prompt for a single-sentence image summary?"
},
{
"good": "Generate a creative caption for this photo.",
"bad": "A bustling city street with cars honking, people rushing, and tall buildings reflecting the evening sun.",
"question": "How can you ask for a creative image caption?"
},
{
"good": "Write a concise caption for the picture.",
"bad": "Two children playing joyfully in a field of daisies under the bright summer sun, with joy and laughter filling the air.",
"question": "How would you request a short and precise caption?"
},
{
"good": "Explain what’s happening in this image.",
"bad": "A group of friends sitting around a campfire, sharing stories, with a tent and starry sky in the background.",
"question": "What's the best way to ask for an image explanation?"
},
{
"good": "Provide a poetic description of the scene.",
"bad": "The lone tree stands resilient against the backdrop of a setting sun, casting long shadows across the barren landscape.",
"question": "How would you encourage a poetic image depiction?"
},
{
"good": "Detail the elements present in this photo.",
"bad": "A serene lake surrounded by lush green hills, with a small boat gently floating near the shore.",
"question": "What's an ideal prompt for detailing photo elements?"
}
]
Instructions for Dataset Creation:
Diversity in Prompts: Use varied synonyms for similar requests such as "describe," "explain," "summarize," "depict," etc. This helps the model understand different ways to solicit responses.
Match Complexity: Ensure that the complexity or brevity of the 'good' field matches the corresponding 'bad' answer. For detailed answers, request detailed descriptions; for short answers, request brief prompts.
Extend Dataset: Add more entries to cover various visual themes such as nature, cityscape, daily life activities, animals, etc.
Creativity: Encourage creativity in the prompts to capture a wide range of responses, improving the model's adaptability.
Balanced Distribution: Make sure to have a balanced representation of detailed, concise, creative, and factual prompts in the dataset.
This dataset structure paves the way for training a model focused on generating appropriately nuanced prompts based on the nature of given content.