Giter Site home page Giter Site logo

dephinate / quizmaster Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50.4 MB

QuizWiz is an innovative GenAI-powered tool designed to generate quizzes from any educational document with ease.

License: MIT License

Python 34.41% Jupyter Notebook 65.59%

quizmaster's Introduction

QuizMaster

QuizMaster is an innovative GenAI-powered tool designed to generate quizzes from any educational document with ease.

Table of Contents

Overview

QuizWiz is an innovative GenAI-powered tool designed to generate quizzes from any educational document with ease.

Brief Description

QuizMaster is an AI powered quiz generator that can generate and assess Quizzes from any educational document with ease. User can upload any number of pdfs and enter the topic to generate quizzes and give the assessment. Say goodbye to manual quiz creation and hello to automated, efficient learning.

Watch the video

Why QuizMaster?

  • Limitations of the Human Brain: Firstly, the human brain tends to forget ideas, the information it has consumed, and the understanding it has built on the assimilated infromation. Quizzes are a very effective way of both learning and retaining the information.
  • The Abundance of Data: Secondly, creating quizzes can itself be a very challenging task. Imagine you are student and you want to make a quiz out of the five research papers you read on text embeddings. Now, imagine that you a professor and you teach three courses, each course has minimum five topics, and for each topic there are atleast three documents on an average to refer. In the latter case you would definitely not say no to an automatic quiz generator like QuizMaster.

Technologies used

  • Langchain, Chroma DB, GCP, VertexAI, Gemini 1.5, Streamlit, HuggingFace

Target Audience

  • Students
  • Teaching Assitants
  • Professors
  • Educators
  • E-Learning Platforms

Technical Architecture

Technical Architecture

  • DocumentProcessor : Renders a streamlit UI, allows users to upload multiple PDFs and processes them into pages using Langchain's PyPDFLoader.
  • ChromaCollectionCreator : Further breaks down the pages from Document Processor into chunks using Langchain's RecursiveCharacterTextSplitter. Uses embeddings from either VertexAI or locally from HuggingFace depending on user's choice. Also has the option to persist the DB onto local machine for later use.
  • QuizGenerator : Implements RAG by extractings chunks relevant to the topic from user, formulates a prompt, passes it to LLM, generates quizzes, validates the structure, and renders the quizzes through streamlit.
  • QuizManager : Facilitates moving from one question to another.

Project Status

  • Phase 1 : Currently the project only supports uploading PDFs.

Future Scope

  • Extend the capabilities of the the application to allow for uploading Youtube Videos, Podcasts, Links to URLs, and PDFs at the same time.
  • Host the app on a server
  • Make the data-ingestion system more robust

Installation

** Python 3.10**

  1. Clone this repository to your local machine using:
    $ git clone https://github.com/Dephinate/QuizMaster.git
    $ cd your_project
  2. Create a conda environment and install dependencies
    $ pip install -r requirements.txt

Usage

  1. Need to first perform google authentication to use Gemini pro from Vertex AI.
  2. To run the app copy the following command in your terminal:
    $ streamlit run src/user_interface/streamlitui.py
  3. Upload PDFs, write the topic and give the quiz.

Model and Data

For embeddings used: all-mpnet-base-v2/Embeddings from Vertex AI. LLM uses: Gemini Pro from Vertex AI

How to authenticate GCP to access APIs?

Watch the video : https://www.loom.com/share/fa6cd412c1274683a0ebab5a43b09597?sid=bff89143-0997-426d-81ee-c3f0feea549f

Contributing

Coming soon..

Acknowledgments

https://www.linkedin.com/in/mikhail-ocampo/

https://python.langchain.com/v0.1/docs/get_started/introduction/

https://python.langchain.com/v0.1/docs/integrations/vectorstores/chroma/

https://python.langchain.com/v0.1/docs/expression_language/

https://colabdoge.medium.com/what-is-rag-retrieval-augmented-generation-b0afc5dd5e79

https://www.hopsworks.ai/dictionary/vector-database

Contact

[LinkedIn] (https://www.linkedin.com/in/vks2102/)

quizmaster's People

Contributors

dephinate avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.