PDF-to-MCQ: AI-Powered Multiple-Choice Question Generator

React.jsTailwind CSSJavaScriptNode.jsMulterpdf-parseLLM(gemma3)langchain

Introduction

This project began as a way to test myself without knowing the answers in advance. While there are existing tools that can generate quizzes, many of them are expensive. In this project, I leverage open-source, free large language models (LLMs) and full-stack development to build a web app. You simply upload a PDF of your choice, and the app generates questions so you can quiz yourself and assess your knowledge.

Tech Stack

To get started quickly, I chose well-known, free, and well-documented tech stack. See the details below.
  • Frontend: React.js, Tailwind CSS (or your CSS framework)
  • Backend: Node.js, Express PDF Handling: Multer,AI Integration: Langchain, pdf-parse
  • LLM model: gemma3, embedding:mxbai-embed-large

Demo

What I Learned

  • Got solid practice with full-stack development, handling both the frontend and backend.
  • Learnt how to integrate LLM to build software solutions
  • Built a clean and modern UI with React, focusing on a smooth user experience.
  • Improved my understanding of how LLMs and embeddings work under the hood and how to use them in real projects.