Understand the generated dataset format
mainThe library returns a list of dictionaries. Each dictionary represents a single question-answer pair and includes the following keys:
question: The generated question.answer: The answer to the question.context: The specific snippet of text from the source used to derive the question and answer.
[
{
"question": "What was Airbnb's revenue in 2023?",
"answer": "$9.9 billion",
"context": "In 2023, revenue increased by 18% to $9.9 billion..."
}
]