Spaces:
Runtime error
Runtime error
File size: 1,348 Bytes
9de97e7 |
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 |
# Medical QA Chatbot
This is a Chain-of-Thought powered medical chatbot that:
- Retrieves answers from a Qdrant Cloud vector DB using dense + ColBERT multivectors
- Uses Stanford DSPy to reason step-by-step with retrieved context
- Supports traceable source highlighting in Chainlit
- Deployable on Hugging Face Spaces via Docker
---
## How to Deploy
- Add your `OPENAI_API_KEY` as a secret environment variable in Hugging Face Space settings
- Make sure `qdrant-client` points to your Qdrant Cloud instance in `rag_dspy.py`
- Run the Space
## Sample Questions
### General Medical Knowledge
- What are the most common symptoms of lupus?
- How is type 2 diabetes usually managed in adults?
- What is the difference between viral and bacterial pneumonia?
### Treatment & Medication
- What are the first-line medications for treating hypertension?
- How does metformin work to lower blood sugar?
### Diagnosis & Tests
- What diagnostic tests are used to detect rheumatoid arthritis?
- When is a colonoscopy recommended for cancer screening?
### Hospital & Patient Care
- What are the psychosocial challenges faced by cancer patients?
- How do hospitals manage patients with multidrug-resistant infections?
### Clinical Guidelines / Rare Topics
- What is the recommended treatment for acute myocardial infarction in elderly patients? |