A full-stack AI-powered document analysis system built with Python, FastAPI, and Groq LLaMA 3.1.
Upload PDF or DOCX documents and let AI extract meaningful insights including document type, summaries, important information, and key entities in structured JSON format.
Frontend: https://vineela959.github.io/ai-document-intelligence-system/
Backend API: https://ai-document-intelligence-system-255u.onrender.com/docs
- 📄 Upload PDF and DOCX files
- 🔍 Automatic text extraction
- 🤖 AI-powered document understanding using Groq LLaMA 3.1
- 🧠 Generate structured JSON analysis
- 🏷️ Extract important entities and information
- 💾 Store analyzed documents using SQLite database
- ⚡ FastAPI REST API backend
- 🌐 Simple frontend interface
- ☁️ Live deployment on Render
User Uploads Document
|
↓
FastAPI Backend
|
↓
PDF/DOCX Text Extraction
|
↓
Groq LLaMA 3.1 AI Analysis
|
↓
Structured JSON Response
|
↓
SQLite Database
- Python
- FastAPI
- Uvicorn
- Groq API
- LLaMA 3.1
- PyPDF
- python-docx
- SQLite
- SQLAlchemy
- HTML
- CSS
- JavaScript
- GitHub Pages (Frontend)
- Render (Backend)
AI-Document-Intelligence-System/
│
├── app.py
├── analyzer.py
├── db.py
├── pdf_reader.py
├── docx_reader.py
├── requirements.txt
│
├── frontend/
│ └── index.html
- User uploads a PDF/DOCX file
- Backend extracts text from the document
- Extracted text is sent to Groq LLaMA model
- AI analyzes the content
- System returns structured JSON response
- Analysis is stored in database
git clone <your-repository-link>Move into project folder:
cd AI-Document-Intelligence-Systempip install -r requirements.txtCreate a .env file:
GROQ_API_KEY=your_api_key_here
Start FastAPI server:
uvicorn app:app --reloadOpen API documentation:
http://127.0.0.1:8000/docs
POST /analyze
Upload a PDF/DOCX file and receive AI analysis.
Example response:
{
"document_type": "Resume",
"summary": "Developer experienced in building AI applications",
"important_information": [
"Experience: 3 years",
"Role: Python Developer"
],
"entities": [
"Python",
"FastAPI",
"Machine Learning"
]
}GET /documents
Returns previously analyzed documents stored in database.
- User authentication
- Cloud storage integration
- Dashboard UI
- RAG-based document search
- Multi-AI model support
- Advanced analytics
Python + FastAPI + Groq LLaMA 3.1
A GenAI automation project demonstrating document processing, AI integration, and full-stack development.