|
Download docs/USAGE.md from PYTHAI/drAIML: direct link, hf CLI and curl.
- Browser
- Download file 5.05 kB
-
https://huggingface.co/spaces/PYTHAI/drAIML/resolve/main/docs/USAGE.md
- Command line
-
hf download hf://spaces/PYTHAI/drAIML/docs/USAGE.md
-
curl -L -o USAGE.md https://huggingface.co/spaces/PYTHAI/drAIML/resolve/main/docs/USAGE.md
5.05 kB
| # How to use drAIML 2.0 | |
| Open **https://huggingface.co/spaces/PYTHAI/drAIML**. The first visit takes 20–40 s while Python and Streamlit | |
| load in your browser. After that, everything runs on your own machine: there is no drAIML server. | |
| ## 1. Start | |
|  | |
| Pages: **Consultation**, **Evidence search**, **Models**, **Datasets**, **About · Oath**. On the live Space | |
| the top bar also has **Sign in with Hugging Face**. | |
| ## 2. Choose a model | |
|  | |
| - **Hugging Face · Inference Providers.** Sign in (top bar) or paste an HF token. ★ marks models recommended | |
| for consultation. Calls bill your own HF account. | |
| - **Groq / Together.** Paste your own key. | |
| - **Your endpoint.** Ollama, vLLM, llama.cpp or an HF Endpoint, for the open medical specialists. | |
| - **Mode.** General medicine · Physiotherapy & sports therapy · Psychotherapy support. | |
| - **Second opinion.** Ask two models side by side. | |
| ## 2a. Bonsai in your browser: free, private, no key | |
|  | |
| Choose **Bonsai · in this browser** as the source. On your first question drAIML shows its Agreement: | |
|  | |
| One click on **I agree** downloads prism-ml's Bonsai-1.7B (1-bit, Apache-2.0, 248 MB) from Hugging Face | |
| once, checks it against its sha256 pin and keeps it in this browser. The | |
| [browseML](https://github.com/browseML/browseML) engine (bankML on WebAssembly) then answers on your own | |
| computer, with drAIML's evidence searched in your browser too. Nothing you type leaves your device. | |
| Each answer carries a bankML receipt, which the page checks against the text it received. Bonsai is a | |
| small model: quick to load and private, but less reliable than large models, so check important things | |
| with a clinician. On a 4-core laptop expect a minute or two before the first words, then a couple of words a second. **Remove** in the sidebar deletes the model | |
| from this browser. | |
| ## 3. Emergencies come first | |
|  | |
| Your words are checked for red flags before any model runs. Evidence still shows if no model is configured. | |
| ## 4. Use your own model (e.g. a medical specialist via Ollama) | |
|  | |
| ```bash | |
| OLLAMA_ORIGINS=https://pythai-draiml.static.hf.space ollama serve | |
| ollama run hf.co/mradermacher/II-Medical-8B-i1-GGUF | |
| ``` | |
| Then choose **Your endpoint**, URL `http://localhost:11434/v1`, model `hf.co/mradermacher/II-Medical-8B-i1-GGUF`. | |
| Chrome may ask for permission to let the page reach your local network: allow it. | |
| *(The answer in this screenshot came from a test endpoint used to check the interface.)* | |
| ## 4a. Physiotherapy & sports therapy mode | |
|  | |
| Pick **🦴 Physiotherapy** under *Mode*. Retrieval leans on the physiotherapy, rehabilitation and exercise | |
| datasets, and answers follow *What this could be · Exercises & self-care · Red flags — seek care · | |
| Questions for you*. *(Answer from a test endpoint, used to check the interface.)* | |
| ## 4b. Copy or export any answer | |
|  | |
| Every answer has **⧉ Copy** and **⬇ .txt** at its top right. Both include the date, model, question, | |
| answer and the cited sources with their licences. | |
| ## 4c. Psychotherapy support mode | |
|  | |
| **🧠 Psychotherapy** gives CBT-style self-help and support options, with crisis lines first when needed. | |
| Without a model configured you still see the evidence, as here. | |
| ## 5. See the evidence behind an answer | |
|  | |
| Each [n] in the answer is a passage from an openly licensed dataset, shown with its source and licence. | |
| ## 6. The Hippocratic review | |
|  | |
| Each answer is scored against do no harm, beneficence, autonomy and confidentiality, with a risk level. | |
| ## 7. Search the evidence directly (no sign-in) | |
|  | |
| ## 8. Browse models | |
|  | |
| **Hosted engines** lists the open models live on HF Inference Providers right now, with licence, context | |
| length, price and providers; select a row to consult it. | |
|  | |
| **Medical specialists** are open medical fine-tunes not hosted anywhere: each has a one-line Ollama command | |
| and a **Use via Ollama** button. | |
| ## 9. Browse open health datasets | |
|  | |
|  | |
| Select a dataset row to preview it; **Live Hub search** finds more, with only openly licensed, ungated | |
| results shown. | |
| --- | |
| Information only — not a diagnosis. In an emergency call your local emergency number. | |