Spaces:
Runtime error
Runtime error
| 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 | |
| --- | |