taouchikhtkhouloud/Legal-AI-Project — reverse-engineered prompt
Reverse engineered prompt
Build me a legal document analysis web app that helps someone understand a contract before they sign it. I want a clean Next.js interface where a user can upload or paste a legal document, then ask questions about it and get clear answers pulled from the text.
The app should also highlight or list important clauses, explain confusing contract language in simpler words using a paraphrasing model, and show a basic sentiment or risk impression for clauses so the user can spot things that may be harmful or important. Connect the web app to a Python Flask backend that handles the NLP and machine learning work, using models or libraries like SQuAD style question answering, CUAD contract clause analysis, T5 base paraphrasing, and TextBlob sentiment analysis where practical.
Please include a clear disclaimer that this is not legal advice and users should consult a lawyer. Make it easy to run locally, and include Docker Compose so the frontend and Flask server can start together. Look up current docs online if needed.
Want more depth? Deep Reverse