RAG Analysis Model is a Retrieval-Augmented Generation (RAG) based web application that allows users to upload documents through a simple user interface and prepare them for future analysis using AI-driven retrieval systems. The project currently focuses on the frontend upload interface and Flask backend integration for document handling.
This system is designed as a foundation for a full RAG pipeline where uploaded documents will later be processed for embeddings, retrieval, and intelligent question answering.
- ๐ Document Upload Interface (UI)
- ๐ก Flask Backend API for file uploads
- ๐๏ธ Automatic file storage in the uploads folder
- ๐ฅ๏ธ Simple and clean user interface (HTML, CSS)
- ๐ REST API integration with frontend
- ๐งฑ Scalable architecture for future RAG pipeline (Embeddings + Vector Search)
Frontend:
- HTML
- CSS
- JavaScript (Basic)
Backend:
- Python
- Flask
- Flask-CORS
Development Tools:
- VS Code
- Git & GitHub
RAG-Analysis-Model/
โโโ app.py
โโโ uploads/
โโโ templates/
โโโ static/
โโโ README.md
app.pyโ Flask backend serveruploads/โ Stores uploaded documentstemplates/โ Frontend HTML filesstatic/โ CSS and JS files
git clone https://github.com/TM11005/TM11005.git
cd RAG-Analysis-Modelpython -m venv venv
venv\Scripts\activate # For Windowspip install flask flask-corspython app.pyOpen your browser and go to:
http://localhost:5000
Endpoint: /api/upload
Method: POST
Description: Uploads documents and saves them to the uploads folder for future RAG processing.
โ๏ธ UI for document upload completed โ๏ธ Flask backend for file handling implemented โ Query/Chat RAG pipeline not yet implemented โ Embeddings and vector database integration pending
- ๐ Add vector database (FAISS / ChromaDB)
- ๐ฌ Implement chat/query endpoint for document Q&A
- ๐ค Integrate LLM for intelligent responses
- ๐ Add authentication (Student/Teacher/Admin roles)
- โก Upgrade UI with React or Angular
- ๐ Document analysis dashboard
This project was developed to:
- Understand Retrieval-Augmented Generation (RAG) architecture
- Build full-stack AI applications using Flask
- Design REST APIs for AI workflows
- Create a scalable frontend for AI-based systems
Developed as part of a B.E. Computer Science project focusing on AI, cybersecurity, and intelligent document analysis systems.
This project is for educational and academic purposes.
