Skip to content
29 November 2026

Dinesh Rai and the rise of the clinical AI engineer

Dinesh Rai applied for a prompt engineer job at Boston Children's Hospital and ended up in a role that looks very different from the one he first applied for.

Dinesh Rai and the rise of the clinical AI engineer

When Boston Children’s Hospital posted a job listing for a prompt engineer in 2023, Dinesh Rai applied. He did not expect to get the job. At the time, prompt engineering was described as one of the new roles created by generative AI, since companies wanted people who could get better answers from large language models by carefully wording instructions, supplying examples and setting personas or other context.

Rai was an unusual candidate for a hospital. He trained as an emergency physician and had taught himself to code just before entering medical school. After a fellowship in clinical informatics, which focuses on the intersection of clinical practice and IT systems, he moved into health technology. Boston Children’s hired him in August 2023. Three years later, he still works there, although prompting has become a much smaller part of his job.

From prompts to embedded systems

When Rai joined, the hospital expected prompting to become a job in itself. John Brownstein, chief innovation officer at Boston Children’s, said the hospital first needed internal expertise on how to begin using AI. Better models later made elaborate prompting less important. The harder work became building AI into real health care systems and deciding whether its answers can be trusted.

Brownstein said the questions the team now focuses on have shifted. He asked how the hospital can embed these tools in its day-to-day operations and how to build agents to manage almost everything the hospital does. For Rai, this meant taking on a broader job. “I’m more like a clinical AI engineer now,” he said.

At Boston Children’s, roughly half of his day is spent working with developers, writing code and moving projects forward on the technical side. The other half goes to clinicians, to work out what they actually need. Rai’s background explains the mix. He studied business as an undergraduate at Rutgers Business School and began teaching himself to code in 2014, the year he entered medical school at Albert Einstein College of Medicine. During medical school he built Academius, a platform for students to track residency interviews and assemble their rank lists.

A hard choice and a return to medicine

Rai’s path into technology required leaving clinical work for a time. His 2021–22 informatics fellowship made full-time technology work seem realistic. In 2022 he joined Pieces, a health care AI company, where he led work to bring LLM-based medical summarization into clinical use. “Stepping away was definitely a hard decision,” he said. He has since reactivated his medical license and hopes to return to clinical practice in some capacity within the next year.

Where the prompt stops mattering

One project, called clinical doppelgangers, is designed to help doctors treating complicated patients find similar cases in the hospital’s historical data. The system would let clinicians identify previous patients with relevant similarities, examine their trajectories and see how different interventions turned out. It is not meant to replace randomized clinical trials. It could add another source of evidence when published literature offers little guidance.

A recent project showed the kind of problem the work now involves. Rai’s team and a clinical team were deciding how much of a patient’s medical record to give an AI model when asking it to identify findings relevant to a clinical outcome. Both groups first favored giving the model more information, but for different reasons. The developers assumed any data point could be useful. The clinicians assumed the model would recognize irrelevant findings and ignore them. Rai saw a problem with both assumptions. An abnormal lab result is not necessarily relevant to the question, and a language model cannot be counted on to recognize that irrelevance. It may build a plausible explanation even when the record does not support the connection.

“That’s where the dual perspective has been valuable,” Rai said, “not just translating between teams, but recognizing when an approach that looks reasonable from either perspective rests on assumptions we shouldn’t make.”

Rai also said the team told clinicians up front that its draft-note tool used generative AI and was meant to support their judgment, not replace their review of the chart. “People trust it more when they’ve seen its mistakes than when we just tell them it’s good,” he said. He acknowledged that some health care professionals remain skeptical. “I think some skepticism is healthy, and we don’t try to talk people out of it,” he said.

Author

Evelyn Marks

Evelyn Marks writes about Deep Tech for the readers of this website, covering breakthroughs in AI, quantum computing, advanced materials, and platform technologies. She translates complex research into clear, practical analysis, highlights real-world implications, and helps technologists and business readers understand what advances mean in practice. Evelyn has tracked deep technology developments and collaborated with sector partners to deliver accessible, reliable coverage.