Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Poetry generation
on SambaNova Llama 405B

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

The "Vibe" Prompt

"Write a beautiful poem about the stars and the night sky. Keep it ethereal and full of wonder. Make me feel small and awe-struck. Use vivid imagery and metaphors. Focus on the vastness and mystery."
Low specificity, inconsistent output

Optimized Version

STABLE
Task: Generate a poem. Topic: Stars, night sky. Tone: Ethereal, awe-struck, wonder. Theme: Vastness, mystery, human insignificance. Style: Vivid imagery, metaphors. Structure: 4 stanzas, AABB rhyme scheme. Key Adjectives: Twinkling, ancient, boundless, silent, velvet. Key Nouns: Cosmos, abyss, stardust, dreams. Consider: The profound silence of space. The feeling of being a small observer. The ageless journey of light. Output: A four-stanza poem, strictly adhering to the specified tone, theme, and style, with an AABB rhyme scheme, using the key adjectives and nouns.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear, structured instructions using explicit constraints and categorized information, which guides the model more precisely. It breaks down the 'vibe' into actionable components like 'Tone', 'Theme', 'Style', and even 'Structure', reducing ambiguity. The inclusion of 'Key Adjectives' and 'Key Nouns' primes the model with relevant vocabulary, potentially leading to more consistent output and reducing the need for extensive internal searching during generation. The 'Consider' section acts as a mini-chain-of-thought, guiding the model's conceptualization without detailing output steps.

15%
Token Efficiency Gain
The generated poem should evoke a sense of 'awe-struck wonder' as explicitly requested.
The poem must be exactly four stanzas long.
The poem must adhere to an AABB rhyme scheme.

Ready to stop burning tokens?

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

Optimize My Prompts