Django Rag

A RAG-Based Chat with Django REST Framework

Check out the project on github

rest_rag is a lightweight Retrieval-Augmented Generation (RAG) chat application built with Django REST Framework. Users can upload documents and chat with an AI assistant that understands and responds based on the uploaded content.

Features Link to heading

  • ๐Ÿ” User authentication (Login/Register)
  • ๐Ÿ“„ Document upload with parsing
  • ๐Ÿ’ฌ Chat interface with context-aware responses
  • ๐Ÿง  RAG pipeline for document-based Q&A
  • โš™๏ธ Django REST API backend
  • ๐ŸŽจ Simple HTML(Django template) frontend

Tech Stack Link to heading

  • Backend: Django, Django REST Framework
  • AI/NLP: Groq(OpenAI API) and ChromaDB
  • Database: PostgreSQL

Installation Link to heading

git clone https://github.com/Duks31/django_rag
cd rest_rag

# Create virtual environment
python -m venv venv
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Apply migrations
python manage.py migrate

# Run the server
python manage.py runserver

Project Overview Link to heading

Django_RAG