Introduction
Artificial intelligence (AI) has traditionally been synonymous with big data. From training language models on the entire internet to teaching algorithms to recognise tumours from thousands of medical scans, the prevailing wisdom has been the more data, the better.
But that perception is shifting. A technique called few-shot prompting is proving that valuable insights don’t always require vast datasets. Instead, models prompted with a small number (few-shot) of examples can effectively reason, classify, and generate outputs. It is a bit like briefing a highly trained consultant: show them five complex patient cases and ask their view on a sixth. They don’t need thousands of datapoints - they need context, nuance, and specialist insight.
Here’s how AI prompting works in practice:
This technique of few-shot prompting is already being used in areas like natural language processing, content generation, and even creative collaboration. It’s efficient, adaptable, and fast to deploy, especially where data are limited, access is restricted, or standardisation is difficult.
It’s also proving particularly powerful for developing specialised, in-house chat applications. Within healthcare and life sciences, this means tailoring general purpose models that can quickly adapt to specific therapeutic areas or brands without costly retraining.
Beyond internal use, the same principles open up wider possibilities. In domains where data are scarce or sensitive, few-shot prompting could augment decision making and extract value from data that would otherwise go unused. Examples could be clinical research, regulatory content, or data on rare disease populations.
Few-shot prompting in rare disease
In rare disease, data scarcity isn’t a technical inconvenience - it’s the default. Many conditions affect small, highly diverse patient populations that are geographically scattered.
And yet, collectively, rare diseases are not rare. Globally, more than 300 million people live with one of over 7,000 rare conditions - including around 3.5 million in the UK alone. Yet for many, getting an accurate diagnosis can take years, with repeated referrals and enormous emotional and financial strain.
This reveals a fundamental mismatch:
This poses a challenge for traditional AI, which is built to detect patterns in large, structured datasets. However, this is precisely where few-shot prompting with large models can make a difference. When applied to small but curated datasets, this technique can identify patterns, highlight clinical similarities, and support early decision-making. Even when the data are complex, this is possible because large language models (LLMs) and generative AI only need representative examples that reflect real-world variability.
In fact, these models can work across and draw insights from many different medical inputs, including:
The strength of LLMs lies in semantic reasoning, not syntax, so they are uniquely suited to rare disease, where datasets are patchy and unstandardised.
In short, few-shot prompting doesn’t rely on quantity. It excels with quality, diversity, and contextual richness, making it a powerful tool in rare disease, where every datapoint counts.
From diagnostic delay to early signposting
For patients with rare diseases, the journey to diagnosis is often long and fragmented. The average time to diagnosis can stretch to seven years, involving multiple referrals, incomplete diagnoses, and growing emotional and physical tolls. This isn’t just a data problem - it’s a human one.
Few-shot prompting in AI offers a new route: not in diagnosis, but diagnostic assistance. It can signpost likely conditions earlier and help healthcare professionals decide where to focus their attention. Using a handful of carefully selected examples such as anonymised patient records, clinical narratives, or diagnostic test summaries, these models can compare new cases against existing patterns and suggest potential directions for clinical exploration.
This matters because in many rare diseases, early intervention can directly influence outcomes. Treatments are often more effective, or even only viable, when started early.
Moreover, for many patients and families, receiving a diagnosis is itself a form of relief, a moment of clarity after years of uncertainty. Even where treatment options are limited, knowing what to expect can transform planning, psychological wellbeing, and access to appropriate support.
By using few-shot prompting to augment clinical decision making, these models can help bring forward that moment of clarity.
Key considerations
While the promise of few-shot prompting is powerful, its deployment in healthcare hinges on trust, transparency, and regulatory compliance. This isn’t just about building clever tools - it’s about building them responsibly.
First, there’s the language of function. Most vendors and regulators are clear: AI should support diagnosis, not make it. The correct positioning is ‘diagnostic assistance.’ These tools can guide direction, suggest possibilities, or triage cases, but they cannot and should not replace clinical expertise.
Second, data governance must be handled with care. In rare disease, as with other conditions, anonymised datasets are essential. Removing names, locations, and other direct identifiers helps protect patient confidentiality while still allowing AI to learn from meaningful clinical patterns.
In fact, minimising data isn’t just about privacy - it’s also about performance. Including irrelevant or overly specific details can distract the model or introduce unintended bias. This has been noted in other domains, such as automated CV screening, where names or personal traits can influence decisions more than job-relevant qualifications. In healthcare, the same principle applies: the model should focus on the clinical features that matter most, not incidental information. Thus, it is crucial to include only the data needed for the AI to do its job and to structure that input with care.
Of course, small datasets come with real risks. Chief among them are bias and overfitting. With limited training data, a model may simply memorise the inputs rather than learning patterns that generalise. This is especially problematic if the dataset reflects only one type of patient, potentially leading the AI to draw false associations. That’s why careful feature engineering and dataset design are critical. By deliberately selecting training examples that reflect diversity in gender, ethnicity, age (where possible), and comorbidities, developers can help the model learn what matters, while avoiding misleading signals.
Additional safeguards include:
In cases with more advanced use, we’ve seen the emergence of virtual AI teams, or ‘AI crews’. Here, multiple specialised agents collaborate, review one another’s outputs, and bring different perspectives to a shared task. Much like a multidisciplinary clinical team, these coordinated agents can challenge assumptions, reduce error, and solve problems. This area is evolving rapidly and holds significant promise for solving complex, cross-functional challenges in healthcare and beyond.
Ultimately, AI in this space must be auditable, explainable and aligned with clinical judgement. It should provide clarity, not obfuscation, and work alongside healthcare professionals - not instead of them. Explainability is more than a regulatory box-tick; it’s a prerequisite for trust, adoption, and safe deployment in healthcare. Fortunately, the toolkit for AI transparency is evolving rapidly. New methods are emerging to assess reasoning, detect bias, and validate outputs. This is an area where our team brings deep expertise - from designing transparent prompt structures to applying the latest interpretability frameworks. We help healthcare brands build AI tools that healthcare professionals can understand, trust, and use confidently in real-world settings.
From insight to implementation
In rare disease, time, data, and expertise are all in short supply, yet the stakes couldn’t be higher. Few-shot prompting strategies in AI offer a compelling path forward. By learning from small, curated, diverse datasets, it can help identify patterns, triage cases, and support earlier intervention. Few-shot prompting avoids the accumulation of vast amounts of data. Instead, it produces high-quality, representative datasets that capture the diversity and nuance needed to make the model useful. These tools don’t replace human expertise - they amplify it. And when applied responsibly, they can transform how healthcare brands deliver value to healthcare professionals and patients alike.
Encouragingly, the technological landscape is evolving rapidly. A new wave of open-source, domain-specific models is making AI more accessible and tailored. For example, MedGemma - developed by DeepMind - is trained specifically on healthcare data and is freely available for further refinement. These models, when combined with prompt-based techniques like few-shot learning, offer healthcare teams the opportunity to innovate without starting from scratch.
It’s also important to note that few-shot prompting is just one way to extract value from small datasets. In some cases, especially when working with open-source or domain-specific models like MedGemma, transfer learning or fine-tuning may offer even greater customisation.
These approaches require more time and governance but offer healthcare brands a powerful route to create tailored, task-specific AI tools, even with limited data.
The convergence of few-shot prompting techniques and increasingly accessible LLMs presents a unique window of opportunity for healthcare brands. This may be particularly important for those working in rare disease or underrepresented patient populations. Many such organisations already possess valuable datasets but may lack the internal capability to transform them into actionable tools.
That’s where the right partner could make all the difference. Implementing few-shot prompting strategies calls for a deep understanding of medical nuance, the creativity to shape insights into practical solutions, and the governance to manage data responsibly. With the right expertise, few-shot prompting isn’t a future possibility – it’s a present-day advantage. It’s already helping healthcare teams generate deeper insights to support faster decision-making. If you want to build smarter tools and accelerate change, you can start today.
If you would like to discuss the content of this article or a potential AI project, please do not hesitate to contact Claire at claire.dobbs@solarishealth.com
Disclaimer
We use AI to push creative boundaries, deliver impactful work and improve efficiency. We are committed to transparency around AI use and will always use it in line with the terms of client contracts. We use pre-vetted AI tools, audited under the Mission AI Acceptable Use and Guidance Policy, to meet our intellectual property, data protection and client confidentiality standards. If any work is in part generated by AI, we will let you know and advise you of any limitations in fidelity, resolution, adaptability, reproducibility or licensing.