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