Spaces:
Sleeping
Sleeping
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
---
|