Skip to content

sasikiran0601/FastApi-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastApi-Application

MedAssist AI — Medical RAG Chatbot (Cloud Deployed)

MedAssist AI is a Retrieval-Augmented Generation (RAG) based medical chatbot deployed using a production-style cloud architecture. The system integrates FastAPI, Docker, NGINX reverse proxy, HTTPS SSL, and AWS EC2 infrastructure, demonstrating real-world backend and DevOps deployment practices.


Live Demo

🔗 https://medassist.n8nautomations.me


Project Overview

MedAssist AI allows users to ask medical-related questions through a web interface. User queries are processed through a FastAPI backend which triggers automated workflows using n8n, enabling intelligent responses powered by RAG pipelines.

This project focuses not only on AI integration but also on industry-standard deployment and infrastructure design.


System Architecture

User Browser (HTTPS)
        │
        ▼
NGINX Reverse Proxy (SSL Termination)
        │
        ▼
Docker Container (FastAPI Backend)
        │
        ▼
n8n Workflow Automation Server
        │
        ▼
RAG Processing Pipeline

Tech Stack

Backend

  • FastAPI
  • Python
  • REST APIs
  • Jinja2 Templates

AI / Automation

  • RAG-based chatbot workflow
  • n8n Automation Server
  • Webhook-based orchestration

DevOps & Cloud

  • Docker Containerization
  • AWS EC2 Deployment
  • NGINX Reverse Proxy
  • Let's Encrypt SSL (HTTPS)
  • Linux Server Administration

Networking

  • Domain + DNS configuration
  • Secure reverse proxy routing
  • Private backend exposure

Containerization

The application is fully containerized using Docker.

Key Benefits

  • Environment consistency
  • Easy deployment
  • Scalability readiness
  • Cloud portability

Docker Image hosted on Docker Hub:

sasikiran06/fastapi-application

Cloud Deployment (AWS)

The application is deployed on an AWS EC2 instance following production practices:

  • Public domain routing
  • Secure HTTPS communication
  • Reverse proxy architecture
  • Backend isolation from public internet

Security Improvements:

  • Backend ports hidden behind NGINX
  • SSL encryption enabled
  • Controlled inbound traffic via Security Groups

HTTPS & Security

SSL certificates are issued using Let's Encrypt and automatically renewed.

Features:

  • HTTPS enforced
  • Secure API communication
  • Reverse proxy protection
  • No direct container exposure

📂 Project Structure

FastApi-Application/
│
├── app.py
├── Dockerfile
├── requirements.txt
│
├── templates/
│   └── index.html
│
├── static/
│   └── style.css
│
└── README.md

▶️ Local Setup

1. Clone Repository

git clone https://github.com/<your-username>/FastApi-Application.git
cd FastApi-Application

2. Run with Docker

docker build -t medassist .
docker run -p 8000:8000 medassist

Open:

http://localhost:8000

Production Deployment Highlights

This project demonstrates:

Dockerized backend deployment Cloud infrastructure setup Reverse proxy configuration Domain & DNS mapping HTTPS SSL setup API automation integration Real-world DevOps workflow


Future Improvements

  • CI/CD pipeline using GitHub Actions
  • Kubernetes deployment
  • Authentication system
  • Conversation history storage
  • Monitoring & logging stack

Why This Project Matters

This project demonstrates the ability to:

  • Design backend systems
  • Deploy AI applications to cloud infrastructure
  • Work with production networking concepts
  • Implement secure web deployments

It reflects real-world software engineering and DevOps practices, not just model development.

About

Medical Chat bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors