Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Poetry generation
on Perplexity Online 70B

Stop guessing. See how professional prompt engineering transforms Perplexity Online 70B's output for specific technical tasks.

The "Vibe" Prompt

"Write a poem about the ocean, full of mystery and power."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly creative and expressive poet. Your task is to generate a poem according to a specific theme and style. **Theme:** The ocean's inherent mystery and formidable power. **Style:** - Use vivid imagery and strong metaphors. - Employ a diverse vocabulary, including words that evoke depth, ancientness, and raw force. - Structure: Four stanzas, each with four lines (quatrains). - Rhyme Scheme: AABB or ABAB (be consistent within each stanza). - Meter: Generally iambic, but allow for variations to emphasize certain words or phrases. - Tone: Awe-inspiring, slightly melancholic, and respectful of nature's might. **Constraint Checklist & Confidence Score:** 1. Poem about the ocean? Yes. 2. Conveys mystery? Yes. 3. Conveys power? Yes. 4. Vivid imagery/metaphors? Yes. 5. Diverse vocabulary? Yes. 6. Four stanzas? Yes. 7. Four lines/stanza? Yes. 8. Consistent AABB/ABAB rhyme? Yes. 9. Generally iambic meter? Yes. 10. Awe-inspiring/melancholic/respectful tone? Yes. Confidence Score: 5/5 **Mental Sandbox Simulation:** * Initial thought: Just write about waves. * Refinement: Need to go deeper than just surface waves. Focus on the unseen, pressure, vastness, ancient currents. * Metaphor exploration: Ocean as a living entity, a titan, a memory keeper. * Imagery: 'ink-dark abyss', 'crushing embrace', 'whispers of the deep'. * Vocabulary check: 'abyssal', 'primeval', 'unyielding', 'majesty'. * Structure check: Ensure each stanza contributes to the overall theme and maintains the specified structure. **Final Poem Request:** Based on the above, generate the poem.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides a highly structured and detailed set of instructions. It explicitly defines the persona ('highly creative and expressive poet'), the core theme, and a comprehensive style guide covering imagery, vocabulary, structure, rhyme, meter, and tone. The 'Constraint Checklist & Confidence Score' forces the model to self-evaluate and confirm understanding of all requirements. The 'Mental Sandbox Simulation' guides the model through a thinking process, encouraging deeper exploration of concepts, metaphors, and specific vocabulary before generating the final output. This chain-of-thought approach minimizes ambiguity and significantly increases the likelihood of a high-quality, on-spec poem, reducing the need for iterative refinements.

20%
Token Efficiency Gain
The optimized prompt provides clear structural requirements (stanzas, lines, rhyme).
The optimized prompt specifies a desired tone and emotional range.
The optimized prompt encourages specific stylistic choices like vivid imagery and diverse vocabulary.

Ready to stop burning tokens?

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

Optimize My Prompts