Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
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 creative story about a lone starship captain exploring a mysterious nebula. Make it atmospheric and intriguing."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a creative writing assistant expertly skilled in crafting engaging narratives. Your task is to write a short story (approx. 500 words) about a lone starship captain exploring a mysterious nebula. The story should be atmospheric, intriguing, and evoke a sense of wonder and subtle dread. To achieve this, follow these steps: 1. **Character Introduction:** Briefly introduce Captain Eva Rostova, focusing on her a solitary nature and seasoned experience. Establish her connection to her ship, 'The Wanderer'. 2. **Setting the Scene:** Describe the approach to the 'Veiled Nebula.' Use sensory details (sight, sound, even a subtle 'feel' through the ship's hull) to build an evocative atmosphere. Emphasize its enigmatic nature. 3. **First Encounter/Discovery:** Detail an unusual phenomenon or object encountered within the nebula. This should be a subtle, non-aggressive anomaly that sparks curiosity and unease. Avoid immediate conflict. 4. **Internal Monologue/Reflection:** Show Eva's reaction. What thoughts does she have? Is it fear, wonder, scientific curiosity, or a mix? How does this discovery challenge her understanding or beliefs? 5. **Rising Intrigue/Subtle Tension:** Introduce a secondary, perhaps more ambiguous, detail related to the anomaly. Is there a faint signal, a fleeting image, or a change in the nebula's behavior? Keep it ambiguous. 6. **Open Ending/Lingering Question:** Conclude with Eva contemplating her next move or with a profound question about the nebula, leaving the reader with a sense of unresolved mystery. Ensure consistent tone throughout. Focus on 'show, don't tell' for emotional states and environmental descriptions. Use vivid adjectives and strong verbs. Prioritize evocative imagery over rapid plot progression. Maintain a word count around 500 words. Do not exceed 600 words.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages Chain-of-Thought reasoning by breaking down the complex 'creative writing' task into sequential, manageable steps. It provides specific instructions for each stage of the story (character, setting, plot points, emotional arc, ending), guiding the model's creative process. It explicitly states the desired tone, style (show, don't tell), and word count, reducing ambiguity. By instructing the model *how* to write rather than just *what* to write, it primes the model for a higher-quality, more structured output that aligns precisely with the user's expectations. The persona assignment and explicit constraints (e.g., 'subtle dread,' 'avoid immediate conflict,' 'open ending') further refine the output and prevent generic responses.

0%
Token Efficiency Gain
The optimized prompt explicitly defines narrative structure (intro, discovery, reflection, tension, ending).
It specifies character details (Eva Rostova, 'The Wanderer', solitary, seasoned).
It mandates specific atmospheric elements (wonder, subtle dread) and sensory details.

Ready to stop burning tokens?

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

Optimize My Prompts