Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Medical report summary
on SambaNova Llama 405B

Stop guessing. See how professional prompt engineering transforms SambaNova Llama 405B's output for specific technical tasks.

The "Vibe" Prompt

"Summarize this medical report in a few sentences. Make it easy to understand."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly skilled medical summarizer. Your task is to provide a concise, accurate, and easy-to-understand summary of the following medical report. Focus on identifying the patient's key medical conditions, the primary reason for the visit/report, significant findings from examinations or tests, and the recommended treatment plan or next steps. De-emphasize minor details unless they directly impact the main narrative. Use clear, concise language suitable for a general audience. Structure your summary as follows: 1. **Patient Overview:** Briefly state the patient's demographic information (if provided and relevant) and the main presenting complaint or reason for the report. 2. **Key Findings:** Summarize the most important diagnostic results, physical examination findings, or relevant historical information. 3. **Diagnosis/Assessment:** State the primary confirmed or suspected diagnoses. 4. **Treatment/Recommendations:** Outline the proposed treatment plan, medications, follow-up instructions, or other recommendations. Medical Report: [Insert Medical Report Text Here]
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear instructions, defines the persona ('highly skilled medical summarizer'), specifies the desired output structure, and explicitly states what to focus on and what to de-emphasize. The chain-of-thought elements (Patient Overview, Key Findings, Diagnosis/Assessment, Treatment/Recommendations) guide the model to extract and organize information systematically, reducing the likelihood of omissions or misinterpretations. It also clarifies the target audience and language style. The naive prompt is vague and open to interpretation, often leading to less structured and potentially incomplete summaries.

0%
Token Efficiency Gain
The optimized prompt explicitly asks for a structured output, which improves consistency and readability.
The optimized prompt defines the 'persona' of the summarizer, likely leading to more professional and accurate output.
The optimized prompt guides the model on what information is most important (key conditions, primary reason, significant findings, treatment plan) and what to de-emphasize, leading to more focused summaries.

Ready to stop burning tokens?

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

Optimize My Prompts