File size: 1,847 Bytes
fc46562
ff9d83e
 
 
fc46562
 
 
 
 
 
ff9d83e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0aac165
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
title: CardioQA AI System
emoji: πŸ«€
colorFrom: blue
colorTo: red
sdk: docker
pinned: false
license: mit
---

# CardioQA - AI-Powered Cardiac Diagnostic Assistant πŸ«€

Professional cardiac health assistant powered by **RAG** (Retrieval-Augmented Generation), **ChromaDB**, and **Google Gemini 2.0**.

## 🌟 Features
- πŸ«€ **364+ cardiac medical Q&As** - Comprehensive knowledge base
- πŸ€– **AI-powered responses** with Google Gemini 2.0 Flash
- πŸ›‘οΈ **Medical safety validation** - Emergency detection & warnings  
- πŸ“Š **Confidence scoring** - Dynamic response quality metrics
- ⚑ **Real-time semantic search** - ChromaDB + Sentence Transformers
- 🎯 **Professional safety features** - Medical disclaimers & consultation recommendations

## πŸš€ API Endpoints
- **`/`** - API information & status
- **`/health`** - System health check & database status
- **`/query`** - Ask cardiac health questions (POST)
- **`/docs`** - Interactive FastAPI documentation
- **`/stats`** - System statistics & model information

## πŸ› οΈ Built With
- **Backend:** FastAPI + Uvicorn
- **AI Model:** Google Gemini 2.0 Flash
- **Vector Database:** ChromaDB with persistent storage
- **Embeddings:** Sentence Transformers (all-MiniLM-L6-v2)
- **Safety:** Custom medical validation system
- **Deployment:** Docker + HuggingFace Spaces

## πŸ“Š System Architecture
User Query β†’ Semantic Search (ChromaDB) β†’ Context Retrieval β†’
Gemini AI Generation β†’ Safety Validation β†’ Response + Disclaimers


## ⚠️ Medical Disclaimer
This system provides **educational information only**. Always consult qualified healthcare professionals for medical advice, diagnosis, or treatment. For medical emergencies, contact emergency services immediately.

## πŸ‘¨β€πŸ’» Developer
Built by **Novonil Basak** - AI/ML Engineer & Biotechnology Student

---