pediatric-ai-scribe-v3/docs
Daniel 1270899dcb
Some checks failed
Forgejo Android APK / Root app tests (push) Successful in 46s
Forgejo Docker Build / Root app tests (push) Successful in 47s
Forgejo Android APK / Build signed APK (push) Successful in 1m56s
Forgejo Docker Build / Build Docker image (push) Successful in 18s
Forgejo Docker Build / Deploy to the host (push) Failing after 0s
feat: PubMed search for My Resources, and an image tool that actually fires
PubMed joins web search as an optional source for a generated resource: a
literature search on the topic, with abstracts, cited by PMID in References.
Off by default, admin-enabled, with its own optional API key (NCBI raises the
rate limit from 3/sec to 10/sec; it works without one).

Neither search is a tool any more, and that is the point. Offering them as
function calls meant the model decided whether to search, and with a prompt
ending "Output ONLY Pandoc markdown" it decided not to — every time, with and
without corpus grounding, no matter how the tool description was worded.
Calling callAI with the tool directly produced a correct pubmed_search call, so
the plumbing was never the problem. The search only ever needed the topic, and
the route knows the topic before it calls the model, so both searches now run up
front and their results go into the prompt as findings, exactly the way corpus
excerpts do. Ticking the box now means the search happened.

Verified live against deepseek-v4-flash: 30 corpus excerpts and 6 PubMed
results, and a References slide carrying both the library sources and four real
PMIDs (29562151, 38506440, 35721052, 28814254).

Three fixes to illustration, which had never once fired:

- The dispatch call had been lost in a refactor. The tool was still offered, the
  model still called it, and the call was dropped, so no job was ever enqueued.
- imageContext was passed as a bare topic string where dispatch expects
  { request, history }, which made the bound request undefined.
- The prompt never mentioned the tool existed while explicitly demanding only
  markdown — the same suppression that killed the searches. It now says an
  illustration is available and that calling it is not a violation of that rule.

my_resources is its own image workflow rather than a reuse of learning_hub,
because generated_image_links only accepts learning_hub assets, and that is
exactly the barrier that keeps a private illustration out of published content.
The illustration renders in the panel, rather than a toast pointing at an image
history this feature does not have.

Verified end to end: job queued, rendered, and the asset served to its owner as
a correctly labelled subglottic-anatomy teaching diagram.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dv6sqaY6Vq3ChZHMem3cnU
2026-09-11 16:47:08 +02:00
..
logic simplify speech and embeddings through litellm 2026-05-09 05:09:02 +02:00
ai-providers.md docs refresh current workflows 2026-05-09 00:40:45 +02:00
api-reference.md docs: recording, 24-hour retention, and the STT picker 2026-09-10 16:44:17 +02:00
ARCHITECTURE.md document architecture and harden rendering 2026-05-10 01:07:56 +02:00
architecture.md ci: route Android APK through Forgejo releases 2026-05-11 04:21:15 +02:00
authentication.md Fix Turnstile in the mobile app; drop it from login 2026-07-30 17:22:03 +02:00
CLINICAL_ASSISTANT.md feat: My Resources has a menu, a library and three downloads 2026-09-11 15:00:19 +02:00
configuration.md feat: My Resources has a menu, a library and three downloads 2026-09-11 15:00:19 +02:00
database.md docs align memory and audio backup behavior 2026-05-08 23:32:39 +02:00
deployment.md feat: ship reviewed prompt history, conversation limits and account protections 2026-09-07 04:01:01 +02:00
developer-guide.md feat: ship reviewed prompt history, conversation limits and account protections 2026-09-07 04:01:01 +02:00
DEVELOPMENT.md feat: ship reviewed prompt history, conversation limits and account protections 2026-09-07 04:01:01 +02:00
embeddings-setup.md simplify speech and embeddings through litellm 2026-05-09 05:09:02 +02:00
features-explained.md simplify speech and embeddings through litellm 2026-05-09 05:09:02 +02:00
global-prompt-administration.md fix: reviewer findings — mhchem macro wrapping, regenerate history dedupe, strict safe image allowlist, stale docs 2026-09-08 19:25:31 +02:00
improvements.md docs refresh current workflows 2026-05-09 00:40:45 +02:00
learning-hub.md feat: My Resources has a menu, a library and three downloads 2026-09-11 15:00:19 +02:00
migrations.md
mobile-build.md ci: route Android APK through Forgejo releases 2026-05-11 04:21:15 +02:00
MODULE_CONVENTIONS.md document architecture and harden rendering 2026-05-10 01:07:56 +02:00
openid-setup.md feat: ED multi-stage UX, extensions polish, docs viewer + application-logic docs 2026-04-28 03:09:38 +02:00
ops-docs-ped-ai-and-milvus.md docs: Ops Docs page on how Ped-AI and the two Milvus servers work 2026-09-10 18:37:41 +02:00
retrieval-tuning.md feat: PubMed search for My Resources, and an image tool that actually fires 2026-09-11 16:47:08 +02:00
SCALING.md document architecture and harden rendering 2026-05-10 01:07:56 +02:00
speech.md refactor: one place decides which bucket, on which S3, with which credentials 2026-09-10 17:09:13 +02:00
transcription-options.md docs: recording, 24-hour retention, and the STT picker 2026-09-10 16:44:17 +02:00