1.5 KiB
1.5 KiB
Contributing to MedGraph
Thanks for your interest in contributing! Here's how you can help.
Ways to Contribute
- Report bugs — Open an issue describing the problem, steps to reproduce, and expected behavior
- Suggest features — Open an issue with your idea and how it would improve the system
- Create DAGs — Clinical reasoning flows for new medical topics (YAML format in
dags/) - Improve the parser — Better structure detection for different book formats
- Improve entity extraction — Better prompts, validation, or canonicalization
- Add ontology mappings — Extend ATC/SNOMED coverage
- Documentation — Fix typos, improve explanations, add examples
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/medgraph.git - Install dependencies:
pip install -r requirements.txt - Copy
.env.exampleto.envand configure your credentials - Create a branch:
git checkout -b feature/my-feature - Make your changes
- Test locally
- Commit and push
- Open a Pull Request
Code Style
- Python code follows standard conventions
- No hardcoded credentials — use environment variables
- Functions should have docstrings explaining what they do
- Keep it simple — avoid over-engineering
Data and Copyright
- Do NOT commit copyrighted book content (PDFs, parsed chunks, extracted entities)
- Do NOT commit credentials or API keys
- DAGs, schema definitions, and pipeline code are fine to commit
Questions?
Open an issue on GitHub.