Skip to content

Commit

Permalink
Update quiz generation parameters to include 15 multiple-choice quest…
Browse files Browse the repository at this point in the history
…ions and clarify fill-in-the-blank format
  • Loading branch information
Wambaforestin committed Dec 13, 2024
1 parent 54e00d8 commit 80c3d12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions document_analysis/document_analysis/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 80c3d12

Please sign in to comment.