{"data":{"kind":"file","path":"README.md","version_id":"btsjz3ozqvfds40wdi0qlod6","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1703,"modified_at":"2026-02-14T22:04:31.382000","content_hash":"53d1504e39aa062244947ea17b20da33557723eb7e054d285c0c83b95a5f2e84"},"entries":[],"content":"# OpenMed MedO1\n\nOpen-ended verifiable medical reasoning environment using the medical-o1-verifiable-problem dataset.\n\n## Task\n\nGiven a medical question, provide the correct short answer. Covers lab values, pharmacology, surgery, pediatrics, emergency medicine, and more. Answers are concise exact-match strings (e.g., \"Gastric ulcer\", \"25%\", \"Head CT\").\n\n## Dataset\n\n- **Source**: [FreedomIntelligence/medical-o1-verifiable-problem](https://huggingface.co/datasets/FreedomIntelligence/medical-o1-verifiable-problem)\n- **Size**: 40K+ medical problems (~38.6K train / ~2K eval, 95/5 split)\n- **Format**: Open-ended question -> short verifiable answer\n- **License**: Apache 2.0\n\n## Reward Structure\n\n| Reward Function | Weight | Description |\n|----------------|--------|-------------|\n| accuracy_reward | 70% | Normalized fuzzy string matching + numerical tolerance (exact=1.0, 5% tolerance=1.0, 10% tolerance=0.8, containment=0.6) |\n| thinking_reward | 20% | Quality of medical reasoning in `<think>` tags (length-based: 300+ chars=1.0, 150+=0.75, 50+=0.5) |\n| format_reward | 10% | Proper \\boxed{} usage with concise answer content |\n\n## Example\n\n**Input**: \"A patient presents with epigastric pain worse after meals, history of NSAID use, and positive H. pylori test. What is the most likely diagnosis?\"\n\n**Expected Output**: `\\boxed{Gastric ulcer}`\n\n## Usage\n\n```python\nfrom OpenMed_MedO1 import load_environment\n\nenv = load_environment()\nprint(f\"Train: {len(env.dataset)} examples\")\nprint(f\"Eval: {len(env.eval_dataset)} examples\")\n```\n\n## Citation\n\n```bibtex\n@article{medical_o1_2024,\n  title={Medical-o1: Open-ended Verifiable Medical Problems},\n  author={FreedomIntelligence},\n  year={2024}\n}\n```\n","encoding":"utf-8","truncated":false,"total_bytes":1703},"status":null}