A Django-based web application that provides a professional, friendly, and accurate health assistant chatbot for rural communities. The system leverages an Agentic RAG architecture using LangGraph for intelligent, multi-step reasoning. It combines local document search with a web search fallback powered by SerpAPI, and includes features like appointment management, document uploads, and awareness campaigns.
- Healthcare Chatbot: Answers health-related questions using local documents and web search (SerpAPI) as fallback.
- Appointment Management: Book, update, and cancel appointments for villagers and health workers.
- Awareness Campaigns: Share health awareness materials and campaigns.
- Document Management: Upload and manage health-related documents.
- User Roles: Supports villagers, health workers, and admins.
- Modern UI: Responsive design using Tailwind CSS.
- Backend: Django, Celery, PostgreSQL
- Frontend: Django Templates, Tailwind CSS
- AI & RAG: LangChain, LangGraph, ChromaDB, Google GenAI, SerpAPI
- Task Queue: Celery with Redis
-
Clone the repository
git clone <your-repo-url> cd Rural-Health-AI-Smart-Healthcare-Solutions
-
Install dependencies
pip install -r requirements.txt
-
Configure environment variables
Create a
.envfile in the project root and add:SECRET_KEY=your_django_secret_key GOOGLE_GENAI_API_KEY=your_google_genai_api_key SERPAPI_API_KEY=your_serpapi_api_key EMAIL_HOST_USER=your_email@gmail.com EMAIL_HOST_PASSWORD=your_email_password
-
Setup the database
python manage.py migrate
-
Create a superuser
python manage.py createsuperuser
-
Run the development server
python manage.py runserver
-
Start Celery worker (for background tasks)
celery -A rural_health_assistant worker --beat --scheduler django --loglevel=info
accounts/- User authentication and managementappointments/- Appointment booking and managementawareness/- Health awareness campaignschat/- Chatbot logic and chat historydocuments/- Document upload and managementrag_components/- RAG, LLM, and vector store logicrural_health_assistant/- Django project settings and URLstemplates/- HTML templatesstatic/- Static files (CSS, JS)media/- Uploaded files
This project is for educational and non-commercial use only.
Developed by Binisha Chapagain & Arun Pandey Laudari For BCA 6th Semester Final Project