GenAI
LegalEagle — AI Contract Assistant
A RAG chatbot that demystifies contracts and statutes, grounding every answer in the uploaded document.
Problem
Legal documents are dense, and both professionals and laypeople need fast, trustworthy answers without wading through pages of boilerplate.
Solution
Built a LangChain-orchestrated RAG pipeline that parses uploaded PDFs with PyMuPDF, embeds them with OpenAI's text-embedding-3-small, and stores vectors in Pinecone. A Streamlit chat interface answers plain-English questions grounded in GPT-4o, with every response backed by expandable source citations.
Technology
- Python
- Streamlit
- LangChain
- OpenAI GPT-4o
- Pinecone
- PyMuPDF
Result
Answers stay grounded in the source document instead of the model's general knowledge, cutting hallucination risk and giving users a citation trail to verify every claim.