MediBot / CONTRIBUTING.md
bnewcomer's picture
Multi-agent updates
18bfaa1
|
Raw History Blame Contribute Delete
1.59 kB
# Contributing to MediBot
Thanks for helping improve MediBot.
## Development Setup
1. Clone the repository.
2. Create and activate a virtual environment.
3. Install runtime dependencies from `requirements.txt`.
4. Install development dependencies from `requirements-dev.txt`.
5. Set `OPENAI_API_KEY` in your environment or a local `.env` file.
Example:
```bash
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
```
Optional helper commands are available in `MakeFile.mak`.
## Before Opening a PR
Run the lightweight checks:
```bash
python scripts/smoke_check.py
python scripts/evaluate_real_queries.py
```
Run tests:
```bash
.venv\Scripts\python.exe -m pytest tests -q
```
Or use:
```bash
make -f MakeFile.mak smoke-check
make -f MakeFile.mak eval
make -f MakeFile.mak test
```
## Project Areas
- `app.py`: routing, session state, response formatting, Gradio UI
- `diagnosis_engine/`: retrieval, scoring, prevalence priors, reranking, symptom mapping
- `data/`: symptom, severity, description, and precaution datasets
- `eval/`: deterministic real-query evaluation cases
- `tests/`: pytest coverage
## Contribution Guidelines
- keep changes aligned with the app's educational, non-diagnostic scope
- preserve emergency escalation behavior for red-flag symptoms
- prefer adding or updating tests when changing routing, symptom mapping, or scoring
- document user-facing behavior changes in the relevant markdown notes when needed
## License
MediBot is released under the MIT License. See [LICENSE](LICENSE).