A simple, clean study assistant web app built with Flask and Google Gemini.
You can upload your study notes (PDF, DOC, TXT, etc.) and then ask questions based on those notes.
The app sends your questions to Gemini and shows the answer in a nicely formatted way. Self-hosted the app using Pinggy.io.
Check:https://pinggy.io/blog/how_to_use_file_search_tool_in_gemini_api_for_easy_rag_integration/
- π Upload notes (e.g.,
.txt,.pdf,.doc) - π Ask questions about your uploaded notes
- π§ Uses Google Gemini (
gemini-2.0-flash-lite-preview) for answering - π File Search integration via Gemini File Search Store
- β Success message when a file is uploaded and indexed
- β Friendly message when API quota (429 RESOURCE_EXHAUSTED) is hit
- π§Ύ Answer shown in clean paragraphs with basic formatting (Markdown β HTML)
- π¨ Simple & clean UI built with HTML + inline CSS
- Backend: Python, Flask
- LLM / RAG: Google Gemini via
google-genaiSDK - Frontend: HTML (Jinja templates), minimal inline CSS
- Template Engine: Jinja2 (Flask default)
- Tunneling Tool: Pinggy (https://pinggy.io/)
- Formatting:
markdownPython library to render AI output nicely
Example structure:
study-rag/
ββ app.py
ββ requirements.txt
ββ templates/
β ββ index.html
ββ static/ # (optional, for images/icons if you add them later)

