QuestGen is a Chrome extension that automatically generates quiz questions based on the content of the user's current website. It uses natural language processing and machine learning to create relevant questions, helping users better understand and retain information from web pages they visit.
- Automatically generates 10 quiz questions from the current web page
- Stores questions and sources in a database for quick retrieval
- Provides a user-friendly interface to answer questions and track progress
- Allows users to rate the helpfulness of generated questions
- FastAPI
- SQLAlchemy
- PostgreSQL
- OpenAI's GPT-3.5 Turbo
- Newspaper3k for web scraping
- HTML/CSS/JavaScript
- Chrome Storage API
- Clone the repository
- Install the required packages.
- Set up a PostgreSQL database and update the
DATABASE_URLinconfig.py - Set your OpenAI API key in a
.envfile. - Run the FastAPI server.
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the directory containing the extension files
- The QuizGen extension should now be visible in your Chrome toolbar
- Navigate to any web page you want to generate questions for
- Click on the QuizGen extension icon in your Chrome toolbar
- The extension will automatically generate 10 questions based on the page content
- Answer the questions and rate their helpfulness
- View your progress and performance in the extension interface
GET /: Root endpointGET /url/{full_path:path}: Generate questions for a given URLPOST /questions/create: Create new questions in the databaseGET /questions/db: Retrieve all questions from the databaseGET /questions/get/{path}: Get questions for a specific URLDELETE /questions/delete/{path}: Delete questions for a specific URL