Covenant AI is a smart lease contract analysis system that leverages Agentic RAG for information retrieval. The RAG architecture is built without the use of external libraries/frameworks for scalability.
For a comprehensive overview, please visit the offical Covenant AI Documentation
The project root has a few sample lease agreements you can use to test the project and its funcationalities.
- Contract Upload: Users can upload lease contracts in PDF or DOCX format.
- Summary & Insights: Provides an AI-generated summary of key terms.
- Highlight PDF: Highlights the important clauses and obligations in the pdf.
- Interactive Chatbot: Allows users to ask AI-driven questions about the contract.
- Document Processing: Extracts and parses text from uploaded documents using OCR.
- NLP Analysis: Uses AI models to analyze legal language.
- Database Management: Stores analyzed contracts in the supabase.
- Dynamic ground rules: Update rules and regulations that must be present in agreement.
- Summarization: Summarize the uploaded agreements with LLM.
- Compare agreements: Compare 2 agreements and see which one is better.
- ChatBot: RAG based chatbot that helps understand jargons.
- Multiple contracts: Upload multiple PDFs and can chat with any of them.
- Frontend: HTML, CSS, JavaScript
- Backend: Flask Framework, SupaBase
- AI & NLP: SpaCy, Transformers (BERT/GPT), OCR for text extraction
- Cloud & APIs: AWS S3 for file storage, FastAPI for AI models
- Python 3.x
- SupaBase
- Flask framework
- NLTK, Sentence Transformers
- HTML, CSS, JS
pip install -r requirements.txt
Below are platform-specific instructions:
- Download and install from: https://github.com/UB-Mannheim/tesseract/wiki
- Ensure the tesseract.exe location is added to your PATH.
- Install Homebrew if needed (https://brew.sh).
- Run:
brew install tesseract.
- Update your package list:
sudo apt-get update. - Install Tesseract:
sudo apt-get install tesseract-ocr.
After installation, verify with:
tesseract --version
root/src:
python app.py
This project is licensed under the MIT License - see the LICENSE file for details.
For inquiries, contact u2022378@giki.edu.pk
