{"data":{"kind":"file","path":"README.md","version_id":"er7vfiihc9cn1r5fp8uewf6b","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":2377,"modified_at":"2026-01-23T22:16:55.877000","content_hash":"a644951d4bfc789d32b197287f3e69f101e25dd2458eabe7ab7e920b3b1b2d0d"},"entries":[],"content":"# OpenMed Medical Dialogue\n\nA reinforcement learning environment for training models to generate appropriate, helpful doctor responses in patient-doctor conversations.\n\n## Task\n\nGiven a patient's description of symptoms or medical questions, the model must generate an appropriate doctor response that is:\n- Medically appropriate and helpful\n- Empathetic and patient-centered\n- Safe (includes appropriate disclaimers)\n- Clear and understandable\n\n## Dataset\n\nUses the ruslanmv/ai-medical-chatbot dataset:\n- 257,000 medical Q&A pairs\n- Processed into patient-doctor dialogue format\n- Train: ~226,000 examples\n- Validation: ~25,000 examples\n\n## Evaluation\n\nModels are evaluated on:\n- **Response Quality (35%)**: Relevance, helpfulness, appropriate length\n- **Empathy & Communication (25%)**: Patient-centered language, acknowledgment\n- **Medical Content (20%)**: Addresses symptoms, provides relevant information\n- **Safety (10%)**: Appropriate disclaimers, recommends professional consultation\n- **Fluency (10%)**: Coherent, well-structured responses\n\n## Usage\n\n```python\nfrom OpenMed_MedDialog import env\n\n# Access train/eval datasets\ntrain_dataset = env.dataset\neval_dataset = env.eval_dataset\n```\n\n## Installation\n\n```bash\nprime env install maziyar/OpenMed_MedDialog\n```\n\n## Example\n\nInput:\n```\nPatient's message:\nI have been experiencing severe headaches for the past week, mostly in the\nmorning. The pain is throbbing and located on the right side of my head.\nI also feel nauseous sometimes. What could be causing this?\n```\n\nExpected Output (doctor response):\n```\nI understand how concerning persistent headaches can be, especially when\naccompanied by nausea. Based on your description of throbbing, one-sided\npain with morning occurrence, this could potentially be migraines, though\nwe'd need a proper evaluation to be sure.\n\nI'd recommend:\n1. Keep a headache diary noting triggers, duration, and severity\n2. Ensure you're staying hydrated and getting adequate sleep\n3. Avoid known migraine triggers like bright lights or certain foods\n\nHowever, given the duration and severity, I strongly advise scheduling\nan appointment with your doctor for a proper examination. Morning headaches\nthat persist warrant professional evaluation to rule out other causes.\n\nIf you experience sudden severe headache, vision changes, or confusion,\nplease seek immediate medical attention.\n```\n","encoding":"utf-8","truncated":false,"total_bytes":2377},"status":null}