Generate quiz questions with answers on any topic.
Use the exec tool to invoke DeepTutor's quiz generation pipeline (ideation → evaluation → generation → validation).
deeptutor run deep_question "<topic>" --format json -l <lang> [options]
| Flag | Description |
|---|---|
-l <lang> | Response language: or |
enzh--config num_questions=N | Number of questions (default: 1, max: 50) |
--config difficulty=<level> | easy, medium, hard |
--config question_type=<type> | multiple_choice, open_ended, true_false, etc. |
--config mode=<mode> | custom (default) or mimic |
-t rag | Ground questions in a knowledge base |
--kb <name> | Knowledge base to use |
Basic quiz:
deeptutor run deep_question "Calculus integration techniques" --format json -l en --config num_questions=5 --config difficulty=medium
Multiple-choice from a textbook:
deeptutor run deep_question "Chapter 3: Linear Algebra" --format json -l zh -t rag --kb math-textbook --config question_type=multiple_choice --config num_questions=10
Hard open-ended questions:
deeptutor run deep_question "Quantum mechanics fundamentals" --format json -l en --config difficulty=hard --config question_type=open_ended
timeout=300 with the exec tool."type": "content" for the generated questions and answers.