QnABuilderAI
Upload a PDF and automatically generate well-structured questions of any type and difficulty using retrieval-augmented generation.
Technical Information
Project Type
RAG ApplicationQuestion GenerationEducational Tool
Tech Stack
PythonFlaskMistral AISentence-TransformersPhiDataFAISSLangChainPyPDFReportLabEmbeddings
Topics / Modules
Document ChunkingPage SelectionTopic ManagementQuestion Types & DifficultyExport
Links
Project Summary
A RAG-powered tool that turns any PDF into a question bank. Configure chunking, choose pages and topics, then generate questions across multiple types and difficulty levels – and export the results.
Skills Demonstrated
Retrieval-Augmented GenerationDocument ChunkingEmbeddingsPrompt DesignPDF ProcessingExport Generation
Solution
Documents are chunked and embedded with Sentence-Transformers into FAISS; a Mistral model generates questions grounded in the retrieved context, with fine control over types, difficulty and topics, exported via ReportLab.
Approach
- Upload: Accept a PDF and extract text with PyPDF.
- Chunk: Let users configure chunking and select pages to process.
- Index: Embed chunks with Sentence-Transformers into FAISS.
- Generate: Produce questions by type and difficulty grounded in retrieved context.
- Manage: Allow topic management and review of generated questions.
- Export: Download results as formatted documents.