StudyBuddy is an intelligent assistant built with FastAPI and Streamlit, offering two core modes:

Powered by a RAG (Retrieval-Augmented Generation) pipeline using LangChain and Gemini embeddings.
Users upload a PDF or text, ask questions, and the AI responds based on the actual context.
Automatically generates a 10-question multiple-choice quiz derived from the uploaded content.
Users answer the quiz through Streamlit and receive an instant score with detailed feedback.
-cd Backend
-pip install -r requirements.txt
-uvicorn app.main
FastAPI – Efficient API backend to support both learning and quiz endpoints.
Streamlit – Interactive and user-friendly UI for content ingestion, Q&A, and quizzes.
LangChain – Manages embedding, retrieval, and generation workflows.
Gemini Embeddings & Responses – Leverages Google’s Gemini LLM for accurate context interpretation and answer generation.
Modular Architecture – Separate endpoints for learning mode and quiz logic, promoting clean and testable code.
Upload any PDF or text file, then engage in context-based Q&A.
Generate a custom 10-question quiz directly from the source material.
Instant scoring and feedback, with correct/incorrect responses highlighted.
Full ingestion-to-assessment workflow, all within one seamless app.
– Visit the demo and upload a PDF (top-left corner) to start interacting:
➤ studybuddyforyou.streamlit.app
Languages: Python (99%) & Dockerfile (1%)
No stars/watchers/forks yet—your feedback would be invaluable!
Includes a minimal setup with modular backend/frontend and RAG pipeline for quick experimentation.