π 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! β¨π€
- 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.
- Clone the repo:
git clone https://github.com/45-Hrishi/MCQ-Generator-LLM-Application.git
- Move into required directory:
cd MCQ-Generator-LLM-Application
- 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
- Setup the API Key:
export MISTRAL_API_KEY=your_api_key_here
To run the QuizChain application:
- 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)
- Python
- Langchain
- Mistral AI
- Git
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
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature
) - Open a Pull Request
- Add the functionality of Download in the application.
- Deployment on the Azure / AWS.