Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Summarize document
on SambaNova Llama 405B

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

The "Vibe" Prompt

"Please summarize the following document: [document_text_here]"
Low specificity, inconsistent output

Optimized Version

STABLE
You are an expert summarizer. Your task is to provide a concise and accurate summary of the following document. Follow these steps: 1. Identify the main topic and purpose of the document. 2. Extract the key arguments, findings, or conclusions. 3. Condense these points into a coherent, flowing summary, prioritizing clarity and brevity. 4. Avoid introducing new information or personal opinions. 5. Ensure the summary is no longer than three paragraphs. Document: """ [document_text_here] """ Summary:
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages several best practices for LLM prompting. Firstly, it establishes a 'persona' (expert summarizer), which can influence the model's tone and output quality. Secondly, it breaks down the task into explicit, numbered steps using a chain-of-thought approach. This guides the model through the summarization process, reducing the likelihood of omissions or misinterpretations. Constraints on length (three paragraphs) and content (no new info/opinions) are also explicitly stated, leading to more controlled and relevant output. The use of clear delimiters for the document text also improves parsing.

0%
Token Efficiency Gain
The summary generated by the optimized prompt should be more concise and accurate than the naive version.
The optimized prompt should consistently produce summaries within the specified length constraints.
The optimized prompt's summary should contain only information present in the original document.

Ready to stop burning tokens?

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

Optimize My Prompts