VINEELAMALLA/Quiz_Generator

An AI-powered quiz generator that uses Large Language Models (LLMs) to analyze input text and automatically generate structured quizzes for effective learning and assessment. The AI Quiz Generator is an intelligent system that converts raw text into interactive quizzes using LLMs. It helps students, educators, and self-learners quickly

Python

0

17 commits

updated Apr 7, 2026

See the code

README

๐Ÿง  AI Quiz Generator using LLM

๐Ÿ”น Repository Description

An AI-powered quiz generator that uses Large Language Models (LLMs) to analyze input text and automatically generate structured quizzes for effective learning and assessment.


๐Ÿš€ Overview

The AI Quiz Generator is an intelligent system that converts raw text into interactive quizzes using LLMs. It helps students, educators, and self-learners quickly create assessments from notes, articles, or study materials.


โœจ Features

  • ๐Ÿ“„ Accepts any text input (notes, articles, PDFs, etc.)
  • ๐Ÿค– Uses LLMs to understand and extract key concepts
  • โ“ Generates different types of questions:
    • Multiple Choice Questions (MCQs)
    • True/False
    • Short Answer Questions
  • โšก Fast and automated quiz generation
  • ๐ŸŽฏ Improves learning through self-assessment

๐Ÿงฉ How It Works

  1. User inputs text
  2. The system processes and analyzes the content
  3. LLM identifies important concepts and topics
  4. Quiz questions are generated automatically
  5. Output is displayed in a structured format

๐Ÿ› ๏ธ Tech Stack

  • Python
  • Large Language Models (LLMs)
  • Natural Language Processing (NLP)
  • Streamlit (for UI - optional)
  • OpenAI API / Hugging Face API

๐Ÿ“‚ Project Structure

AI-Quiz-Generator/ โ”‚ โ”œโ”€โ”€ app.py # Main application file โ”œโ”€โ”€ quiz_generator.py # Core quiz generation logic โ”œโ”€โ”€ utils.py # Helper functions โ”œโ”€โ”€ requirements.txt # Dependencies โ”œโ”€โ”€ README.md # Documentation โ””โ”€โ”€ data/ # Sample input files


โš™๏ธ Installation

  1. Clone the repository:

git clone https://github.com/your-username/ai-quiz-generator.git

cd ai-quiz-generator

  1. Install dependencies:

pip install -r requirements.txt

  1. Set up API key (if required):

export OPENAI_API_KEY=your_api_key


โ–ถ๏ธ Usage

Run the application:

python app.py

Or with Streamlit UI:

streamlit run app.py

Steps:

  • Input or upload text
  • Click on "Generate Quiz"
  • View the generated questions instantly

๐Ÿ“ธ Example

Input:

Machine learning is a subset of artificial intelligence that enables systems to learn from data.

Output: What is machine learning? Machine learning is a subset of which field? a) Data Science b) Artificial Intelligence c) Robotics d) Cybersecurity


๐ŸŽฏ Use Cases

  • ๐Ÿ“š Students for exam preparation
  • ๐Ÿ‘ฉโ€๐Ÿซ Teachers for creating quizzes
  • ๐ŸŒ EdTech platforms
  • ๐Ÿง  Self-learning and revision

๐Ÿ”ฎ Future Improvements

  • Difficulty level control (Easy / Medium / Hard)
  • Topic-based quiz generation
  • Multilingual support
  • Voice-based quiz interaction
  • Integration with LMS platforms

VINEELAMALLA/Quiz_Generator

An AI-powered quiz generator that uses Large Language Models (LLMs) to analyze input text and automatically generate structured quizzes for effective learning and assessment. The AI Quiz Generator is an intelligent system that converts raw text into interactive quizzes using LLMs. It helps students, educators, and self-learners quickly

Python

0

17 commits

updated Apr 7, 2026

See the code

README

๐Ÿง  AI Quiz Generator using LLM

๐Ÿ”น Repository Description

An AI-powered quiz generator that uses Large Language Models (LLMs) to analyze input text and automatically generate structured quizzes for effective learning and assessment.


๐Ÿš€ Overview

The AI Quiz Generator is an intelligent system that converts raw text into interactive quizzes using LLMs. It helps students, educators, and self-learners quickly create assessments from notes, articles, or study materials.


โœจ Features

  • ๐Ÿ“„ Accepts any text input (notes, articles, PDFs, etc.)
  • ๐Ÿค– Uses LLMs to understand and extract key concepts
  • โ“ Generates different types of questions:
    • Multiple Choice Questions (MCQs)
    • True/False
    • Short Answer Questions
  • โšก Fast and automated quiz generation
  • ๐ŸŽฏ Improves learning through self-assessment

๐Ÿงฉ How It Works

  1. User inputs text
  2. The system processes and analyzes the content
  3. LLM identifies important concepts and topics
  4. Quiz questions are generated automatically
  5. Output is displayed in a structured format

๐Ÿ› ๏ธ Tech Stack

  • Python
  • Large Language Models (LLMs)
  • Natural Language Processing (NLP)
  • Streamlit (for UI - optional)
  • OpenAI API / Hugging Face API

๐Ÿ“‚ Project Structure

AI-Quiz-Generator/ โ”‚ โ”œโ”€โ”€ app.py # Main application file โ”œโ”€โ”€ quiz_generator.py # Core quiz generation logic โ”œโ”€โ”€ utils.py # Helper functions โ”œโ”€โ”€ requirements.txt # Dependencies โ”œโ”€โ”€ README.md # Documentation โ””โ”€โ”€ data/ # Sample input files


โš™๏ธ Installation

  1. Clone the repository:

git clone https://github.com/your-username/ai-quiz-generator.git

cd ai-quiz-generator

  1. Install dependencies:

pip install -r requirements.txt

  1. Set up API key (if required):

export OPENAI_API_KEY=your_api_key


โ–ถ๏ธ Usage

Run the application:

python app.py

Or with Streamlit UI:

streamlit run app.py

Steps:

  • Input or upload text
  • Click on "Generate Quiz"
  • View the generated questions instantly

๐Ÿ“ธ Example

Input:

Machine learning is a subset of artificial intelligence that enables systems to learn from data.

Output: What is machine learning? Machine learning is a subset of which field? a) Data Science b) Artificial Intelligence c) Robotics d) Cybersecurity


๐ŸŽฏ Use Cases

  • ๐Ÿ“š Students for exam preparation
  • ๐Ÿ‘ฉโ€๐Ÿซ Teachers for creating quizzes
  • ๐ŸŒ EdTech platforms
  • ๐Ÿง  Self-learning and revision

๐Ÿ”ฎ Future Improvements

  • Difficulty level control (Easy / Medium / Hard)
  • Topic-based quiz generation
  • Multilingual support
  • Voice-based quiz interaction
  • Integration with LMS platforms