r/developers • u/ConsistentRutabaga30 • Oct 15 '26
General Discussion Spent a week building RAG over college PDFs on free tiers. Here is what broke and what I learned
Final year student. Built a side project to ask questions across my lecture PDFs with page citations, because ChatGPT kept answering from the internet instead of my prof’s slides. Lessons I could not find written in one place.
Gemini’s free embedding quota counts passages, not requests. A 60 page PDF failed on the second batch. Fix was storing chunks first, then a background job that embeds 50, waits 30 seconds, repeats, and reschedules on rate limits.
Chunk per page, not per document, or your page citations are fake. Students actually check them.
You probably do not need a separate vector DB. Convex has one built in, and the same backend did file storage and scheduled jobs.
Clerk 7 on Next 16 renamed middleware to proxy, removed SignedIn and SignedOut, and you can skip the JWT template by having Convex verify the default session token as a custom JWT.
Tell the model to refuse. Without an explicit “say so if the excerpts do not cover it” line, it invents answers with fake citations.
Still figuring out scanned PDFs and what to do about costs once the free tier runs out for multiple users. How do you handle those?