From 80c3d12534e81d97edaa7096c80603d815767b2e Mon Sep 17 00:00:00 2001 From: Wambaforestin Date: Fri, 13 Dec 2024 01:21:54 +0100 Subject: [PATCH] Update quiz generation parameters to include 15 multiple-choice questions and clarify fill-in-the-blank format --- document_analysis/document_analysis/analysis.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/document_analysis/document_analysis/analysis.py b/document_analysis/document_analysis/analysis.py index 68cab4f..a98740b 100644 --- a/document_analysis/document_analysis/analysis.py +++ b/document_analysis/document_analysis/analysis.py @@ -133,10 +133,11 @@ def generate_quiz(): if not text: return jsonify({"error": "No text provided"}), 400 - + + # Prompt for quiz generation prompt = f"""Generate a quiz based on the following text. Include: - - 5 multiple-choice questions - - 3 fill-in-the-blank questions + - 15 multiple-choice questions + - 3 fill-in-the-blank questions with associated answer choices - 2 true/false questions Format the output as a JSON object.