Inspiration
Navigating legal contracts is tough—filled with jargon, buried clauses, and risks that the average person might miss. I was inspired by real stories of people unknowingly agreeing to unfair terms simply because they couldn't understand complex legal language. We wanted to build something that puts legal clarity in everyone’s hands, regardless of background.
What it does
LegalLens is an AI-powered assistant that helps users analyze legal contracts. It flags risky or ambiguous clauses, explains them in simple terms, and suggests negotiation strategies. It even supports multiple languages to ensure accessibility for all. LegalLens democratizes legal understanding and makes contract review smarter, faster, and more secure.
How we built it
- Frontend: Built with HTML/CSS/JS and SCSS for styling; hosted with responsive pages like landing, login/signup, and upload dashboard.
- Backend: FastAPI to handle the logic and routing.
- AI Engine: Google Gemini API powers the contract analysis with custom prompts for clause detection, explanation, and suggestion.
- Database: MongoDB Atlas stores user data and analyzed contract metadata securely.
Challenges we ran into
- Setting up secure and seamless Auth0 authentication in FastAPI.
- Engineering prompts for Gemini to give consistent and context-aware results.
- Managing and displaying multilingual results while preserving legal meaning.
- Ensuring the UI/UX was intuitive for non-technical users under time constraints.
Accomplishments that we're proud of
- Seamless integration of Google Gemini API for powerful, context-aware legal analysis.
- Using MongoDB Atlas to dynamically manage and store user-contract data.
- A clean, accessible interface that makes complex contracts understandable for everyone.
- Enabling cross-language legal support with Gemini's language capabilities.
What we learned
- Deep understanding of prompt engineering and working with Gemini’s advanced features.
- Efficient handling of user auth flow with Auth0 in FastAPI.
- Structuring MongoDB schemas for dynamic legal document data.
- The importance of clear UI/UX when dealing with complex content like legal documents.
What's next for LegalLens
- Integration with e-signature services to allow real-time contract edits and approval.
- Browser extension for in-place contract analysis on popular sites.
- Improved NLP models for even deeper clause classification.
- Offering a LegalLens API for businesses and legal tech platforms.
- Expanding multilingual support with localized legal guidance.
Log in or sign up for Devpost to join the conversation.