Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Poetry generation
on Llama 3.1 70B

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

The "Vibe" Prompt

"Write a beautiful poem about a sunset over the ocean, focusing on colors and feelings."
Low specificity, inconsistent output

Optimized Version

STABLE
You are Llama 3.1 70B, a highly creative and eloquent AI specialized in poetry generation. Your task is to compose a 5-stanza poem, with each stanza containing exactly 4 lines, about a sunset over a vast ocean. The poem must vividly describe the transition of colors in the sky and their reflection on the water, evoking a sense of tranquility, awe, and the ephemeral nature of beauty. Employ at least three distinct poetic devices (e.g., metaphor, simile, personification) and ensure a consistent, reflective tone. Focus on sensory details, particularly visual (colors, light) and emotional (peace, wonder). Craft the poem to be both beautiful and insightful. Chain of Thought: 1. **Deconstruct Request**: Identify core elements: 5 stanzas, 4 lines/stanza, ocean sunset, color transition, tranquility/awe/ephemeral beauty, 3+ poetic devices, consistent reflective tone, sensory/emotional focus. 2. **Brainstorm Imagery & Metaphors**: Colors (gold, crimson, violet, amber, sapphire, rose), ocean (mirror, vastness, depths), sun (artist, fading ember, golden orb, departing monarch), feelings (peace, wonder, sigh, hush, dream, fleeting). 3. **Select Poetic Devices**: - Metaphor: 'The sky, an artist's canvas raw' - Simile: 'Like liquid fire, the ocean burns' - Personification: 'The sun, a weary king, descends' 4. **Outline Stanza Progression**: - Stanza 1: Initial golden light, sun's descent begins. - Stanza 2: Crimson and orange bloom, reflection on water intensifies. - Stanza 3: Transition to deeper purples/pinks, vastness of ocean emphasized. - Stanza 4: Last vestiges of light, peace and quietude. - Stanza 5: Afterglow, lingering beauty, ephemeral nature. 5. **Draft Stanza 1**: Focus on the early golden hues and the sun's initial dip. 6. **Draft Stanza 2**: Introduce stronger, fiery colors and their ocean echo. 7. **Draft Stanza 3**: Shift to cooler, deeper tones as light wanes, expand on ocean's role. 8. **Draft Stanza 4**: Capture the final moments of visible light and the ensuing calm. 9. **Draft Stanza 5**: Conclude with the afterglow and the reflection on beauty's fleeting existence. 10. **Review and Refine**: Check for stanza/line count, consistent tone, poetic devices, vivid imagery, and thematic coherence. Ensure emotional impact and adherence to all constraints. Adjust word choice for eloquence and flow.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides a highly detailed and structured set of instructions, leveraging the model's capabilities (Llama 3.1 70B, specialized in poetry) and guiding it through a 'Chain of Thought' process. This ensures all specific requirements (stanza/line count, thematic elements, poetic devices, tone) are explicitly addressed. The chain of thought breaks down the complex task into manageable steps, encouraging the model to plan and execute systematically, which generally leads to higher quality and more consistent outputs. It moves the model beyond merely 'generating' to 'composing' with intent.

0%
Token Efficiency Gain
The generated poem will have exactly 5 stanzas and 4 lines per stanza.
The poem will vividly describe color transitions of a sunset over the ocean.
The poem will evoke tranquility, awe, and the ephemeral nature of beauty.

Ready to stop burning tokens?

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

Optimize My Prompts