This project enables the generation of quiz and worksheet questions using a machine learning model, integrated with LangChain. Users can provide topics, difficulty levels, and hints to generate customized questions, with robust validation processes to ensure accuracy and relevance.
Key Features
Dual-Prompt Setup
Based on experimentation, using two distinct prompts—one for quiz questions and another for worksheet questions—yields optimal results. This dual-prompt approach enhances the quality and relevance of the generated content.
Question Generation
The WorksheetBuilder class supports the generation of both quiz and worksheet questions based on:
Worksheet Question Generator
This project enables the generation of quiz and worksheet questions using a machine learning model, integrated with LangChain. Users can provide topics, difficulty levels, and hints to generate customized questions, with robust validation processes to ensure accuracy and relevance.
Key Features
Dual-Prompt Setup
Based on experimentation, using two distinct prompts—one for quiz questions and another for worksheet questions—yields optimal results. This dual-prompt approach enhances the quality and relevance of the generated content.
Question Generation
The
WorksheetBuilder
class supports the generation of both quiz and worksheet questions based on:Validation Mechanism
Logging & Error Handling
Detailed logs at key stages ensure smooth execution and help debug any issues.
How to Use
WorksheetBuilder
class with the required parameters.create_questions()
for quiz questions orcreate_worksheet_questions()
for worksheet questions.Example