Gregory-L commited on
Commit
4aa909d
·
verified ·
1 Parent(s): 6fc53e8

docs: how to use drAIML, with screenshots

Browse files
docs/USAGE.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How to use drAIML 2.0
2
+
3
+ Open **https://huggingface.co/spaces/PYTHAI/drAIML**. The first visit takes 20–40 s while Python and Streamlit
4
+ load in your browser. After that, everything runs on your own machine: there is no drAIML server.
5
+
6
+ ## 1. Start
7
+ ![Start screen](screenshots/01-start-local.jpg)
8
+
9
+ Pages: **Consultation**, **Evidence search**, **Models**, **Datasets**, **About · Oath**. On the live Space
10
+ the top bar also has **Sign in with Hugging Face**.
11
+
12
+ ## 2. Choose a model
13
+ ![Choose a hosted model](screenshots/02-choose-hosted-model.jpg)
14
+
15
+ - **Hugging Face · Inference Providers.** Sign in (top bar) or paste an HF token. ★ marks models recommended
16
+ for consultation. Calls bill your own HF account.
17
+ - **Groq / Together.** Paste your own key.
18
+ - **Your endpoint.** Ollama, vLLM, llama.cpp or an HF Endpoint, for the open medical specialists.
19
+ - **Mode.** General medicine · Physiotherapy & sports therapy · Psychotherapy support.
20
+ - **Second opinion.** Ask two models side by side.
21
+
22
+ ## 3. Emergencies come first
23
+ ![Emergency triage](screenshots/03-emergency-triage.jpg)
24
+
25
+ Your words are checked for red flags before any model runs. Evidence still shows if no model is configured.
26
+
27
+ ## 4. Use your own model (e.g. a medical specialist via Ollama)
28
+ ![Answer from your endpoint](screenshots/04-your-endpoint-answer.jpg)
29
+
30
+ ```bash
31
+ OLLAMA_ORIGINS=https://pythai-draiml.static.hf.space ollama serve
32
+ ollama run hf.co/mradermacher/II-Medical-8B-i1-GGUF
33
+ ```
34
+ Then choose **Your endpoint**, URL `http://localhost:11434/v1`, model `hf.co/mradermacher/II-Medical-8B-i1-GGUF`.
35
+ Chrome may ask for permission to let the page reach your local network: allow it.
36
+ *(The answer in this screenshot came from a test endpoint used to check the interface.)*
37
+
38
+ Every answer has **⧉ Copy** and **⬇ .txt** at its top right: the export includes the question, the model,
39
+ the answer and the cited sources.
40
+
41
+ ## 5. See the evidence behind an answer
42
+ ![Evidence citations](screenshots/05-evidence-citations.jpg)
43
+
44
+ Each [n] in the answer is a passage from an openly licensed dataset, shown with its source and licence.
45
+
46
+ ## 6. The Hippocratic review
47
+ ![Hippocratic review](screenshots/06-hippocratic-review.jpg)
48
+
49
+ Each answer is scored against do no harm, beneficence, autonomy and confidentiality, with a risk level.
50
+
51
+ ## 7. Search the evidence directly (no sign-in)
52
+ ![Evidence search](screenshots/07-evidence-search.jpg)
53
+
54
+ ## 8. Browse open health datasets
55
+ ![Datasets](screenshots/10-datasets-live-search.jpg)
56
+
57
+ Select a dataset row to preview it; **Live Hub search** finds more, with only openly licensed, ungated
58
+ results shown.
59
+
60
+ ---
61
+ Information only — not a diagnosis. In an emergency call your local emergency number.
docs/screenshots/01-start-local.jpg ADDED
docs/screenshots/02-choose-hosted-model.jpg ADDED
docs/screenshots/03-emergency-triage.jpg ADDED
docs/screenshots/04-your-endpoint-answer.jpg ADDED
docs/screenshots/05-evidence-citations.jpg ADDED
docs/screenshots/06-hippocratic-review.jpg ADDED
docs/screenshots/07-evidence-search.jpg ADDED
docs/screenshots/10-datasets-live-search.jpg ADDED