A Quiz Generator powered by EvaDB
To install the Quiz Generator, follow these steps:
- Clone the repository to your local machine.
- Open a terminal
- Navigate to the downloaded project folder
- Execute the following command
pip install -r requirements.txtto install the dependencies required for the application.
- Open the quizcreator.py file
- Substitute your OpenAI API Key on line 19.
18: #Enter your OpenAI API key here 19: openai.api_key = "<OPENAI-API-KEY>" - Substitute the path to your PDF on line 22.
22: pdf_path = '<PDF-PATH>' - The application is now ready to run
- Open a terminal
- Navigate to the project folder
- Run the application using the command
python quizcreator.py.
Lines 104 to 115 in quizcreator.py contain the prompt being provided to the GPT 3.5 API.
This prompt can be altered to modify parameters/format of the quiz like number of questions, output format, number of multiple choice options, and so on.
The following references were used while building this project were:
-
OpenAI Pricing - https://openai.com/pricing
-
EvaDB documenta9on - https://evadb.readthedocs.io/en/stable/source/overview/gegng-started.html
-
EvaDB Repository - https://github.com/georgia-tech-db/evadb
-
OpenAI Embeddings - https://plaoorm.openai.com/docs/guides/embeddings
-
HuggingFace “bart-large-cnn” - https://huggingface.co/facebook/bart-large-cnn