Connect with me: LinkedIn • GitHub
A searchable database of UPSC Previous Year Questions created from UPSC PDFs using OCR, PostgreSQL (Supabase), and FastAPI.
🔗 Live: searchupsc.onrender.com
This repository's code is licensed under the MIT License (see LICENSE).
The UPSC question content indexed by this project is sourced from official UPSC previous year question papers and remains the property of the Union Public Service Commission (UPSC). It is used here strictly for educational, non-commercial purposes to assist aspirants.
UPSC PDF
↓
Tesseract OCR
↓
Question Extraction & Cleaning
↓
CSV Dataset
↓
PostgreSQL (Supabase)
↓
FastAPI Search Engine
↓
Render Deployment
- Keyword-based search across PYQs
- Highlights matching keywords in results
- Fast and lightweight — no JS frameworks
- Python
- FastAPI
- PostgreSQL (Supabase)
- SQLAlchemy
- Tesseract OCR
- Deployed on Render
-
~300 searchable questions
-
UPSC Prelims 2026 (Paper 1)
-
UPSC Prelims 2025 (Paper 1)
-
UPSC Prelims 2024 (Paper 1)
- Questions with tables (e.g. match the following) lose their formatting after OCR — they appear as plain text which is hard to read. This needs to be fixed.
Feel free to open an issue or reach out directly on LinkedIn
- Add older PYQs (2023, 2022, ...)
- Mains questions
- Subject and year filters
- PostgreSQL Full-Text Search (tsvector)
- Semantic search using embeddings
- Similar question discovery
- Better OCR handling for tables
I spent 8 years preparing for UPSC. During that time I often struggled to search through previous year questions quickly, so I built the tool I always wished existed.
I am currently pursuing Big Data Analytics from CDAC and actively looking for a job opportunity. If you think I can contribute to your team, please reach out.
Built by someone who walked this road for 8 years.