Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Medical report summary
on Phi-3.5 MoE

Stop guessing. See how professional prompt engineering transforms Phi-3.5 MoE's output for specific technical tasks.

The "Vibe" Prompt

"Summarize this medical report. Make it easy to understand for a general audience. Include all important information but keep it concise and to the point. Focus on diagnosis, treatment, and prognosis. Extract key lab results. Be empathetic."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly skilled medical summarizer. Your task is to generate a concise, accurate, and empathetic summary of the provided medical report. This summary is intended for a non-medical audience (e.g., patient, family member). Follow these steps: 1. **Patient Information:** Extract the patient's age and gender. If not available, state 'not provided'. 2. **Chief Complaint/Reason for Visit:** Identify the primary reason the patient sought medical attention. 3. **Diagnosis:** Clearly state the confirmed diagnosis or working diagnosis. 4. **Key Medical Findings:** Summarize the most significant findings from the physical exam, imaging, and procedures. Prioritize abnormalities. 5. **Key Lab Results:** Extract and list any critical or abnormal lab values with their reference ranges if present. 6. **Treatment Plan:** Describe the current or proposed treatment plan, including medications, procedures, and lifestyle recommendations. 7. **Prognosis:** Explain the expected outcome and any follow-up actions required. 8. **Overall Summary:** Synthesize the above points into a narrative summary, using clear, simple language. Avoid jargon. Maintain an empathetic tone. Medical Report: [MEDICAL REPORT TEXT HERE] Summary:
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages a chain-of-thought approach, breaking down the complex task into discrete, manageable steps. This reduces cognitive load on the LLM and guides it precisely on what information to extract and how to present it. Explicit instructions for audience (non-medical), tone (empathetic), and format (bulleted points followed by narrative summary) ensure consistency and quality. Specifying 'prioritize abnormalities' and 'critical or abnormal lab values' helps the model filter relevant information effectively. The 'vibe_prompt' is too general and leaves too much to the model's interpretation, potentially leading to omissions or irrelevant details.

0%
Token Efficiency Gain
The optimized prompt explicitly defines the target audience and tone.
The optimized prompt provides a step-by-step extraction and summarization process.
The optimized prompt guides the model on prioritizing information (e.g., critical lab values, abnormal findings).

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts