Contract Analyzer Agentic AI Web Application
This full-stack Agentic AI application automates legal contract understanding using Large Language Models (OpenAI GPT-4.1-mini) combined with a Retrieval-Augmented Generation (RAG) system. Users can upload PDF contracts, which are processed and converted into structured text. The system then performs multi-step AI analysis including risk detection, simplification into plain English and interactive Q&A. A modern React frontend provides a real-time, chat-like experience with drag-and-drop file upload, animated UI components and dynamic risk visualization.
Key Features
- Natural language contract analysis powered by OpenAI GPT models for summarization, risk detection and explanation generation
- Multi-step agentic workflow separating reasoning into modular AI components (summarization, risk analysis, simplification and Q&A)
- Retrieval-Augmented Generation (RAG) pipeline enabling context-aware contract question answering
- Structured JSON output pipeline for transforming unstructured LLM responses into frontend-ready risk objects
- Interactive React-based UI with drag-and-drop PDF upload, real-time chat interface and animated UX components (Framer Motion)
- Dynamic risk visualization system with severity-based UI highlighting (low / medium / high risk categorization)
- FastAPI-based backend architecture enabling clean separation between AI processing and frontend communication
- Secure environment-based configuration for API key management and deployment safety using .env files
Tech Stack
Python (FastAPI)OpenAI API (GPT-4.1-mini)RAG PipelinePDF ProcessingReact.jsTailwind CSSFramer MotionJavaScript (ES6+)
Screenshots






