firica/legalai — reverse-engineered prompt
Reverse engineered prompt
Build me a simple local web app that acts like an AI legal assistant for EU AI rules, especially the EU AI Act adopted in March 2024. I want a chat style interface where I can ask plain English questions like whether a use case is high risk, what obligations apply, or how a certain article should be understood, and get clear answers grounded in the actual text of the regulation.
Please make it use retrieval so it looks up the relevant parts of the document before answering, instead of just guessing. It should feel like a practical demo for exploring a long legal document, with concise answers and references to the relevant sections when possible. Use my OpenAI API key from an environment variable and make it easy to run locally in a browser.
If it makes sense, structure it so the same setup could later be reused for other legal documents too. You can look up current docs online if you need to.
Want more depth? Deep Reverse