Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 80c3d12

Browse filesBrowse files
committed
Update quiz generation parameters to include 15 multiple-choice questions and clarify fill-in-the-blank format
1 parent 54e00d8 commit 80c3d12
Copy full SHA for 80c3d12

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎document_analysis/document_analysis/analysis.py‎

Copy file name to clipboardExpand all lines: document_analysis/document_analysis/analysis.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ def generate_quiz():
133133

134134
if not text:
135135
return jsonify({"error": "No text provided"}), 400
136-
136+
137+
# Prompt for quiz generation
137138
prompt = f"""Generate a quiz based on the following text. Include:
138-
- 5 multiple-choice questions
139-
- 3 fill-in-the-blank questions
139+
- 15 multiple-choice questions
140+
- 3 fill-in-the-blank questions with associated answer choices
140141
- 2 true/false questions
141142
Format the output as a JSON object.
142143

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.