Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Summarize document
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 the following document: [document_content]"
Low specificity, inconsistent output

Optimized Version

STABLE
Document Summary Task: 1. Objective: Condense the key information from the provided document into a concise and accurate summary. 2. Target Audience: General audience, assume no prior knowledge of the topic. 3. Desired Output Length: Approximately 3-5 sentences, or 100-150 words. 4. Key Elements to Extract: a. Main topic or subject of the document. b. Primary purpose or argument presented. c. Key findings, conclusions, or actions. d. Any significant data points, if crucial to understanding. 5. Tone: Objective and informative. 6. Format: A single paragraph summary. Now, analyze the document provided below, identify the core message and supporting details, and then generate the summary based on the above instructions. Document: [document_content]
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought principles by breaking down the summarization task into explicit steps and requirements. It guides the model to understand the objective, target audience, desired length, and specific elements to extract, reducing ambiguity. This structured approach helps 'Phi-3.5 MoE' to focus its processing on relevant information and produce a higher-quality, more consistent summary. By defining output constraints and a clear process, it steers the model away from potential off-topic generation or excessive verbosity, leading to more relevant and precise output.

0%
Token Efficiency Gain
The optimized prompt should consistently produce summaries that are more focused on key information than the naive prompt.
Summaries generated by the optimized prompt should adhere more closely to the specified length constraints.
The optimized prompt should lead to fewer instances of irrelevant details being included in the summary.

Ready to stop burning tokens?

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

Optimize My Prompts