File size: 1,588 Bytes
18bfaa1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 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).