Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Poetry generation
on Groq Llama 3.1 70B

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

The "Vibe" Prompt

"Write a poem about the sunrise, focusing on colors and new beginnings."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly acclaimed poet with a profound understanding of imagery, metaphor, and emotional resonance. Your task is to compose an original poem, between 12 and 16 lines, about the sunrise. Specifically, focus on: 1. **Visuals:** Describe the gradations of color in the sky (e.g., violet, crimson, gold, cerulean). 2. **Sensory Details:** Include at least one non-visual sensory experience (e.g., sound of birds, dew on leaves, crisp air). 3. **Metaphorical Representation:** Use a central metaphor to convey the theme of new beginnings, hope, or awakening. 4. **Structure:** Employ an AABB or ABAB rhyme scheme throughout. 5. **Tone:** Maintain a tone that is both awe-inspiring and reflective. Think step-by-step: - First, conceptualize the core metaphor for new beginnings (e.g., a canvas, a rebirth, a curtain rising). - Next, brainstorm specific color palettes and their symbolic associations with dawn. - Then, consider sensory details that enhance the atmosphere. - Afterward, draft stanzas, ensuring each line contributes to the visual and thematic goals, adhering to the rhyme scheme and line count. - Finally, review for coherence, emotional impact, and poetic language. Ensure it captivates and inspires about dawn's fresh start.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear constraints and detailed instructions, reducing ambiguity. It forces the model to engage in a step-by-step thought process (chain-of-thought), leading to more deliberate and higher-quality output. Specifying roles, line count, rhyme scheme, thematic elements, and sensory requirements guides the model to produce a poem that meets specific criteria, rather than a generic one. The 'Think step-by-step' section acts as an internal monologue, pushing the model towards a more structured and artistic composition.

0%
Token Efficiency Gain
The generated poem must be between 12 and 16 lines long.
The poem must explicitly describe colors of the sunrise (e.g., violet, crimson, gold).
The poem must include at least one non-visual sensory detail.

Ready to stop burning tokens?

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

Optimize My Prompts