Skip to content
EPFLiGHTPublic

About

Meditron: open medical AI, built with clinicians and tested by them

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Meditron site

Static site (GitHub Pages ready): index.html, static/style.css, static/app.js.

  • Globe: d3 orthographic projection of static/data/land-110m.json (world-atlas), stipple-dithered on a canvas each frame. Amber squares are MOOVE event sites (SITES in app.js). The globe is the story: it runs on its own clock while the stage is mostly in view, a year at a time (the sites grouped by the year of their first vote, in three steps, about 12 seconds), and the scroll only moves the page past it. On landing its middle, the equator, is level with the bottom of the screen (lift()), with the name and the buttons centred above it. The rail (one line per year), Play/Pause and a sideways drag move the story. A year's card gives its countries and votes; clicking the year on the rail also lists its sites with their votes.
  • Layout: every section below the globe is on one column, --col in static/style.css, on both pages. The name is in capitals in Chillax, the Meditron logo's font (static/fonts/chillax-700.woff2); ?ivy and ?manrope (ivy/, manrope/) show it in Ivy Presto or Manrope. Links to other pages are cards like a Substack post's: the picture across the top, a band under it with a title, a grey line and a small line in capitals, the whole card the link (no button or link text).
  • Commitments: the story ends on a card about the clinical evaluation (MOOVE), in the Indian Ocean. Under the globe, Openness has the MeditronFO page's openness table and the latest project its HealthBench chart, each with a line of text and a link card. The chart, its tooltip and esc/fmt are in static/charts.js, and the shared table and figure rules in static/style.css, both used by the two pages; the points are healthbench in meditronfo/data.json. The table is plain HTML, in both pages.
  • Panels: #open, #moove, #publications, #results, #automoove and others; each opens <template id="tpl-NAME"> in the dialog via #NAME. Older hashes (#apertus, #data, #healthbench, #swiss-moove, #east-africa-moove) still work through ALIASES in app.js.
  • AutoMOOVE game: static/data/clinician_rounds.json, 5 pairs from meditron-4/data/moove/moove_eval_unanimous_576.jsonl joined with the Gemma-4-31B log-prob judge verdicts (auto_moove/judge_outputs/judged_unanimous576_winner_logprob_bidir_gemma4_31b.jsonl). Judge agreement over all 576: 455 (79%).
  • Chat: server/chat_server.py serves the site and relays /api/chat to RCP (https://inference-rcp.epfl.ch/v1, model EPFLiGHT/Apertus-70B-MeditronFO). It holds RCP_API_KEY, pins temperature 0.7 and max_tokens 2048 (RCP's default temperature 1.0 is what truncated MeditronFO on MOOVE; see meditron-4/truncation/README.md), serves one request at a time (the key allows one in flight), and rate-limits per client. The page enables the chat only if GET api/chat answers, so a static-only host shows "not connected". Answers render as sanitised markdown (marked + DOMPurify).

Run it:

set -a; . ~/meditron-4/.env; set +a
python3 server/chat_server.py --port 8000

For a page hosted elsewhere (e.g. GitHub Pages), set CHAT.endpoint in app.js to the server's full URL and start it with --allow-origin https://<pages-origin>; behind a reverse proxy add --trust-proxy.

About

Meditron: open medical AI, built with clinicians and tested by them

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages