Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Medical report summary
on GPT-4o-mini

Stop guessing. See how professional prompt engineering transforms GPT-4o-mini's output for specific technical tasks.

The "Vibe" Prompt

"Summarize this medical report in a few sentences. Make it easy to read for a general audience. [MEDICAL REPORT TEXT]"
Low specificity, inconsistent output

Optimized Version

STABLE
You are an AI assistant specialized in medical document summarization for laypersons. Your goal is to extract key medical information from the provided report and present it concisely and clearly, without medical jargon. **Instructions:** 1. Read the entire medical report carefully. 2. Identify the patient's main complaint or reason for visit. 3. Extract significant diagnoses, conditions, or problems. 4. Note any critical test results (e.g., abnormal findings). 5. Identify the primary treatment plan or recommendations given. 6. Synthesize this information into a 3-5 sentence summary. Focus on clarity and simplicity, using everyday language. 7. Ensure accuracy and avoid introducing new information. **Medical Report:** [MEDICAL REPORT TEXT] **Summary:**
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear instructions, defines the AI's role and target audience, and uses a Chain-of-Thought approach to guide the model through specific steps. This structured prompt ensures all critical aspects of the medical report are considered and presented in a logical, layperson-friendly manner. It explicitly requests a specific output length and format, reducing ambiguity for the model.

10%
Token Efficiency Gain
The optimized_prompt produced a summary that is easier to understand for a non-medical audience.
The optimized_prompt consistently extracts the main diagnosis and treatment plan.
The optimized_prompt avoids irrelevant details often included in the vibe_prompt's summaries.

Ready to stop burning tokens?

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

Optimize My Prompts