LegalLens: Know What You're REALLY Signing | Catch Every Detail in Your Contract Now, Avoid Legal Issues Later #lightning_hackathon

Legal contracts are a headache, right? They’re usually super long, packed with technical jargon, and somewhere in those endless pages, there are clauses that could come back to bite you later. Even when we try our best to read them carefully, it’s easy to miss important details or not fully understand what we’re agreeing to.

That’s why I built LegalLens! It is an AI agent that can take your 40-page legal contract, read through the entire thing, and explain every part in simple, understandable terms. But LegalLens doesn’t stop there—it goes the extra mile by searching through all online legal forums, documents, and databases related to that clause to verify if it is within legal boundaries. It then suggests modifications and counteractions if a clause isn’t favorable or needs improvement and clarity.

i have used llama 3.2 11B vision to do preliminary analysis on the pdf images directly, llama 3.1 405B to dive deeper and really understand and explain everything in simple terms and a Crewai agent that searches online legal documents, forums, and databases to check the legality of each clause and propose recommendations or counteractions if needed.

Whether you’re someone about to sign a contract without fully reading it, an employee reviewing an employment agreement, a startup founder hesitant to hire legal help, or even a legal professional tired of analyzing multiple contracts every day—LegalLens might just be the tool you’ve been looking for.

I discovered this hackathon just 6 days ago and jumped right in! While the UI isn’t super polished, the app is fully functional with every feature I envisioned. really enjoyed the whole hackathon experience!

Try out the demo here: https://legallens.streamlit.app/
Watch it in action: https://www.youtube.com/watch?v=Qtl9buZRPOw
Check out the code: GitHub - Yub-S/legallens

5 Likes

Wow, this is really useful. This has the potential to save a lot of people a lot of headaches. I had a couple thoughts when it comes to simpler contracts like terms and conditions.

  1. If you baked in this functionality to a browser extension, it would make it really easy for users to do a “quick scan” of whatever T&C they’re agreeing to online, or through some web app.

  2. A lot of times, users tend to skip over these long contracts because they don’t have time to read everything. A potential improvement you could include would be a small summary section at the top that creates a small bulleted list that highlights any sneaky/controversial/serious clauses that should be looked at closely. I’m not sure if this is possible since this could be pretty subjective, but this could catch any T&C gotchas, like owing your first born child to a larger corporation! :wink:

1 Like

@Yubraj The integration of Llama 3.2 11B and Llama 3.1 405B to analyze and simplify complex legal language is genius! The added bonus of verifying clauses through online legal forums is a game-changer for ensuring everything’s within legal boundaries. Can’t wait to see this evolve—great job jumping in and building this in just 6 days!

1 Like

Thanks for the feedback guys.

couple of additions were made during the final 2 days Hackathon extension.

here is the final project.
LegalLens | Devpost