Prompt Engineering Guide
Mastering Medical report summary
on Cerebras Llama 3.1 70B
Stop guessing. See how professional prompt engineering transforms Cerebras Llama 3.1 70B'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
You are a highly-skilled medical assistant. Your task is to provide a concise and accurate summary of the following medical report. Focus on key patient information, primary diagnosis, significant findings, and recommended treatment plan. Ensure the summary is suitable for a non-medical professional.
Here is the medical report:
```
[MEDICAL REPORT CONTENT HERE]
```
Think step-by-step:
1. Identify the patient's demographics (age, gender, relevant history).
2. Extract the main reason for the visit or chief complaint.
3. Pinpoint the primary diagnosis or most concerning condition.
4. List any critical test results or significant physical exam findings.
5. Summarize the proposed treatment plan, including medications, procedures, or follow-up.
6. Synthesize these points into a clear, brief summary.
Summary:
Structured, task-focused, reduced hallucinations
Engineering Rationale
The optimized prompt provides clear role-playing ('highly-skilled medical assistant'), explicit instructions on what to focus on (patient info, diagnosis, findings, treatment), and defines the target audience (non-medical professional). The chain-of-thought breakdown guides the model through the summarization process, ensuring all critical aspects are covered and the output is structured logically, reducing the likelihood of omissions or irrelevant details. It also uses clear delimiters for the input report.
0%
Token Efficiency Gain
The summary correctly identifies the patient's primary diagnosis and chief complaint.
The summary accurately reflects the significant findings and key test results mentioned in the report.
The summary clearly outlines the proposed treatment plan and any follow-up actions.
Ready to stop burning tokens?
Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.
Optimize My Prompts