Skip to content

csv610/mcq_generator

Repository files navigation

MCQ Generation using LLM

Generating Multi-Choices Questions (MCQ) that evaluates diverse knowledge of the test takers is often very challenging and time-consuming task. Large Language Models (LLMs) hold a promising method that can be useful while meeting the objectives of the MCQ.

Using the Power of AI in Question Generation

Our MCQ Generator leverages new AI models, including OpenAI's GPT and the open-source Ollama framework, to generate thoughtful, relevant, and challenging questions. These models allow the tool to create questions that are not only grammatically accurate but also contextually relevant, tailored to various subjects and difficulty levels.

Key Features

1. Flexible Model Selection

Choose between OpenAI's GPT models or the open-source Ollama framework to suit your needs, whether you're looking for performance, cost-efficiency, or specific use cases.

2. Customizable Question Generation

Tailor your quiz to perfection with these options:

  • Subject/Specialization: Input your area of interest.
  • Difficulty Level: Select from Easy, Medium, or Hard.
  • Number of Questions: Choose how many questions you want to generate.
  • Maximum Token Limit: Adjust the length of responses and explanations.

3. Comprehensive Question Analysis

For every generated question, users can:

  • Check the Correct Answer: Instantly verify the solution.
  • Request a Detailed Explanation: Gain insights into why the answer is correct or incorrect.
  • Access Prerequisite Knowledge: Understand any foundational concepts needed for the question.
  • Translate the Question: Convert the question to different languages (currently supporting English and Hindi).

4. Intelligent Caching

Our caching system optimizes performance by minimizing redundant API calls. If a question's explanation, prerequisites, or translation has been generated before, the system retrieves it instantly from memory.

5. Unique Question Identification

Each generated question is assigned a unique identifier, making it easy to track, reference, and reuse specific questions. This identifier includes the specialization and a counter for easy question management.

Technical Detail

The MCQ Generator is built using Python and Streamlit, providing a sleek and intuitive interface for seamless user interaction. The core of the system is powered by the ModelInterface, which integrates various AI models, allowing for easy adaptability and expansion.

The PromptManager class handles the creation of precise prompts that guide the AI models to generate questions. This ensures that the content not only meets factual accuracy but also adheres to educational best practices.

Real-World Applications

This tool has a broad range of applications across various fields:

  • Education: Teachers can quickly generate quizzes for assessments or homework.
  • E-Learning Platforms: Content creators can generate quizzes that complement their online courses.
  • Corporate Training: HR departments can create skill evaluation tests for employees.
  • Test Prep Companies: Generate practice questions for standardized tests like SAT, GRE, etc.
  • Gamified Learning Apps: Integrate endless MCQs into educational games for dynamic learning experiences.

Looking Ahead

The future of the MCQ Generator is bright, with planned enhancements such as:

  • Support for More Languages: Expand multilingual question generation.
  • LMS Integration: Seamlessly connect to popular learning management systems.
  • Advanced Analytics: Track question performance and difficulty for continuous improvement.
  • Collaborative Features: Enable team-based question creation and curation.

Conclusion

The AI-powered MCQ Generator may be useful to educators, content creators, and e-learning professionals. By automating the creation of high-quality, tailored multiple-choice questions, this tool not only saves time but also opens up new avenues for personalized learning, adaptive testing, and data-driven insights.

We invite educators, trainers, and quiz enthusiasts to experience how AI is revolutionizing quiz creation. With the MCQ Generator, high-quality educational content becomes more accessible, adaptable, and engaging than ever before.

About

Generate Multi-Choices Questions using LLM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages