kaustubh99j/RAG-based-Project ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python app that can answer factual questions from monthly current affairs PDF magazines and also evaluate how good the whole RAG flow is.
I want to give it a question, retrieve the best matching chunks from the PDF content, generate a grounded answer from those chunks, and attach citations that show the source file and page. Please also add an evaluation mode that checks retrieval quality, answer quality, citation validity, and overall performance, then saves the results so I can review them later.
Use the current current affairs PDFs in the data folder and make it work end to end with a small test set of factual questions like definitions, indices, and schemes. It would be great if the app can show where retrieval is right but the answer is incomplete, since that seems to be an important issue here.
If you need to look up current docs or best practices online, feel free to do that.
Are you gonna build this?
make sure you review the code using coderabbit