Skip to content

πŸ“š MCQ Generator: This app generates 5 MCQs from a concept using Mistral AI. It creates mcq's from uploaded pdf and stores questions & options in a CSV file, making quiz creation simple and efficient. Perfect for study materials! βœ¨πŸ€–

Notifications You must be signed in to change notification settings

45-Hrishi/MCQ-Generator-LLM-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QuizChain πŸ¦œβ›“οΈ - MCQ Generator LLM Application πŸš€

Build Status

πŸ“ Overview

πŸ“š This app generates 5 MCQs from a concept using Mistral AI. It creates mcq's from uploaded pdf and stores questions & options in a CSV file, making quiz creation simple and efficient. Perfect for study materials! βœ¨πŸ€–

✨ Features

  • Generate MCQs from PDFs: Automatically creates 5 multiple-choice questions (MCQs) from any uploaded PDF using Mistral AI, streamlining quiz creation.
  • CSV Export: Stores generated questions and options in a CSV file for easy access and future use.
  • Efficient Quiz Creation: Simplifies the process of making quizzes, perfect for creating study materials or practice tests.
  • Logging Functionality: Integrated logging to track the process and capture key information at every step for easier debugging and monitoring.

πŸ“š Table of Contents

βš™οΈ Installation

  1. Clone the repo:
    git clone https://github.com/45-Hrishi/MCQ-Generator-LLM-Application.git
  2. Move into required directory:
     cd MCQ-Generator-LLM-Application
  3. Install the requirements:
     pip install -r requirements.txt
NOTE : To install local packages into conda env, paste -e . inside requirements.txt and then run command : pip -r requirements.txt. Now you have install your local packages into your conda environment. else remove the -e . and then run pip -r requirements.txt
  1. Setup the API Key:
    export MISTRAL_API_KEY=your_api_key_here

πŸ› οΈ Usage

To run the QuizChain application:

  1. Run the following command to run the QuizChain:
    streamlit run app.py

Now, your app will be running on chrome or MS edge (based on the default browser)


πŸ› οΈ Technologies

  • Python
  • Langchain
  • Mistral AI
  • Git

πŸ—‚οΈ Project Structure

research/
β”‚
β”œβ”€β”€ logs/                              # Log files for tracking
β”‚
β”œβ”€β”€ 05_MiniProject1_MCQ_Generator.ipynb  # Jupyter notebook for MCQ generation project
β”œβ”€β”€ pdfextractor_research.ipynb          # Jupyter notebook for PDF extraction research
β”‚
β”œβ”€β”€ src/                                # Source code directory
β”‚   β”œβ”€β”€ mcq_generator/                  # Core project package
β”‚   β”‚   β”œβ”€β”€ __pycache__/                # Compiled Python files
β”‚   β”‚   β”œβ”€β”€ __init__.py                 # Marks directory as a package
β”‚   β”‚   β”œβ”€β”€ logger.py                   # Logging setup
β”‚   β”‚   β”œβ”€β”€ mcq_generator.py            # Script for generating MCQs
β”‚   β”‚   └── utils.py                    # Utility functions
β”‚
β”œβ”€β”€ .gitignore                          # Git ignore file (for ignoring unnecessary files)
β”œβ”€β”€ app.py                              # Main application file to run the project
β”œβ”€β”€ prompts.json                        # JSON file for storing AI model prompts
β”œβ”€β”€ quiz.csv                            # CSV file storing generated MCQs and options
β”œβ”€β”€ README.md                           # Documentation for the project
β”œβ”€β”€ requirements.txt                    # List of Python dependencies for the project
β”œβ”€β”€ response.json                       # JSON file storing API or model responses
β”œβ”€β”€ setup.py                            # Setup script for installing the project package

🀝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

πŸ›€οΈ Roadmap

  • Add the functionality of Download in the application.
  • Deployment on the Azure / AWS.

About

πŸ“š MCQ Generator: This app generates 5 MCQs from a concept using Mistral AI. It creates mcq's from uploaded pdf and stores questions & options in a CSV file, making quiz creation simple and efficient. Perfect for study materials! βœ¨πŸ€–

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published