shreeramdrao/Legal-Chatbot ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple web app that works like a legal helper chatbot for Indian law documents.

I want users to be able to ask questions in plain English and get back clear answers pulled from a couple of PDF files about Indian litigation and corporate compliance. The app should search the documents first, then summarize the most relevant parts into an easy to understand response, instead of just dumping raw text. It should feel like a clean Streamlit app with a chat style interface, and it should use an OpenAI API key stored securely in secrets.

Please make sure it can load the PDFs from a data folder, build the document index, and answer questions accurately from the content it finds. If anything in the setup needs current docs or best practices, look it up online and use that. Keep the app simple, reliable, and easy to run locally from one main file.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab