Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Poetry generation
on DeepSeek V3

Stop guessing. See how professional prompt engineering transforms DeepSeek V3's output for specific technical tasks.

The "Vibe" Prompt

"Write a poem about a lost love, focusing on autumn and fading memories. Make it sound a bit melancholic but also with a hint of acceptance."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly skilled poet. Your task is to generate a melancholic poem about lost love, set against an autumn backdrop, concluding with a nuanced hint of acceptance. To achieve this, follow a chain-of-thought process: 1. **Understand the Core Emotion:** The poem's primary emotion is melancholy due to lost love. Autumn reinforces this with its themes of decay and ending. 2. **Identify Key Autumn Imagery:** Brainstorm specific autumn elements that evoke sadness or memory (e.g., falling leaves, crisp air, shorter days, muted colors, scent of woodsmoke). 3. **Connect Imagery to Lost Love:** For each autumn image, consider how it can symbolize or trigger memories of the lost relationship. For example, 'falling leaves' could represent the slipping away of time or the relationship itself. 4. **Develop Metaphors/Similes:** Create evocative comparisons between the autumn setting, the lost love, and the speaker's feelings. 5. **Structure:** Aim for 3-4 stanzas. Each stanza could develop a different aspect of the memory or emotional state. 6. **Craft the Opening:** Begin with an image or feeling that immediately sets the melancholic autumn tone. 7. **Build Towards Acceptance:** In the final stanza, gently pivot from pure sorrow to a feeling of peace or understanding. This doesn't mean happiness, but a quiet resignation or strength. 8. **Refine Language:** Use rich, sensory language. Pay attention to rhythm and flow. Begin the poem now.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought by breaking down the complex task into manageable, sequential steps. It explicitly instructs the model on how to approach the theme (core emotion), brainstorm relevant imagery (autumn elements), connect those elements to the central theme (lost love), and structure the poem for a nuanced emotional arc (acceptance). It also assigns a persona ('highly skilled poet') and emphasizes refined language. This structured guidance helps the model generate a more coherent, emotionally deep, and stylistically appropriate poem, reducing the chance of a superficial or off-topic output compared to the vague 'vibe' prompt.

0%
Token Efficiency Gain
The generated poem should include clear autumn imagery.
The poem must convey a sense of melancholy.
The poem should explicitly or implicitly reference lost love or a past relationship.

Ready to stop burning tokens?

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

Optimize My Prompts