Elimufy Logo Elimufy

15/08/2023 10:08 AM 788

The Art of Show vs Tell: Crafting Effective Prompts for Generative AI

Generative AI systems like ChatGPT have taken the world by storm. Their ability to generate human-like text on demand has captured people's imagination. However, behind the magic is the art and science of "prompt engineering" - composing effective prompts to get the desired output from these large language models. In this post, we'll explore the timeless writing principle of "show vs tell" and how it can help create better prompts.

The Power of Prompts 


The key to unlocking the potential of ChatGPT and similar AI systems lies in how you frame the initial prompt. A well-crafted prompt acts like a mapping function, guiding the model to generate relevant, high-quality responses. On the other hand, a poorly framed prompt can lead to rambling, inconsistent or even nonsensical AI-written text.

As AI researcher Anthropic puts it: "The prompt is like the genie's lamp - rub it right and magical things come out. Rub it wrong and the genie might misinterpret your wish."

With the prompt being so crucial, techniques like show vs tell prompting can help provide the genie with useful guardrails.

What is an AI prompt? An AI prompt is essentially the initial input or question that you provide to an AI model like ChatGPT. It sets the stage for the conversation, providing the AI with the context it needs to generate a relevant response.

Mastering the ChatGPT basic prompt structure is a crucial step in effectively using the system. This involves understanding how to frame your prompts in a way that guides the AI towards generating the desired output. It's about learning the language that the AI understands and responds to best.

Show Don't Tell - A Writing Principle


"Show, don't tell" is a longstanding principle in writing and storytelling. The basic idea is that showing events and details through vivid description is often more engaging than simply stating facts. For example:

Tell: Jane was very sad. 

Show: Jane sat alone in the dark bedroom, tears rolling down her cheeks as she clutched a photo of her late husband.

The "show" version helps readers visualize the scene and connect emotionally with the character. 

This technique can be adapted when creating prompts for ChatGPT and other generative AI systems.

Show-Me vs Tell-Me Prompts


Applying show vs tell to AI prompts gives us two stylistic options:

Show-me prompts demonstrate the desired output by providing examples.

Tell-me prompts give instructions by explaining specifications directly. 

Let's see how this works in practice.

Show-Me Prompt Example


Say we want ChatGPT to generate a poem in the style of Robert Frost. A show-me prompt might look like:

Here are two example poems in the style of Robert Frost:

The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep.

The river glides so sweet and slow,
As into town the people go
To markets filled with fruits and flowers
For summer's finest hours.

Now, please write an original poem in the style and tone of Robert Frost.


This demonstrates the lyrical, naturalistic style we're looking for. The AI can then pattern match and emulate that style in its output poem.



Tell-Me Prompt Example


A tell-me prompt achieves the same goal by directly explaining what we want:

Please write an original poem in the style of poet Robert Frost. The poem should have:

- Rhyming lines with a simple ABA or ABCB rhyme scheme

- Vivid natural imagery like forests, rivers, trees, mountains, etc.

- Thoughtful reflections on nature, the passing of time, changing seasons, life's journeys, etc.

- Clear, conversational language using words of 1-2 syllables

- An introspective tone and melancholic mood


The tell-me prompt communicates the key specifications without providing any examples.

So which approach is better for prompting generative AI? Let's weigh the tradeoffs.

Robot playing chess

Robot playing chess

Show-Me vs Tell-Me: Key Tradeoffs


Show-me and tell-me prompts each have advantages and disadvantages:

Show-Me Pros:

- Provides tangible examples for the AI to analyze
- Reduces chances of misinterpretation  
- Often faster/easier than elaborating specifications

Show-Me Cons:

- Hard to find suitable examples for some tasks
- May bias AI towards imitating the exact examples
- Requires multiple examples to avoid overfitting 



Tell-Me Pros:

- Precisely communicates desired qualities  
- Avoids imitation risks of examples
- Can work with no examples (zero-shot)

Tell-Me Cons:

- Hard to articulate nuanced qualities  
- More time-consuming to write detailed specs 
- Higher risk of misinterpretation by AI

There are also some key considerations:

- Nature of the task/question being posed
- Personal preferences in learning styles  
- Time available for composing prompts

In practice, combining both approaches often works best - show some examples, tell some specs. The art is finding the right mix.

Principles for Effective Show-Me/Tell-Me Prompting


Based on the tradeoffs, here are some principles to guide show-me and tell-me prompting:

When showing examples:

- Use 2-4 samples to avoid overfitting on one
- Keep samples concise and tailored to the task
- Use examples representative of desired qualities 



When telling specifications:

- Focus on 3-5 key attributes to convey
- Be precise yet avoid overly rigid constraints
- Use natural language rather than bullet points 

When combining show and tell:

- Order matters: Tell then show or show then tell
- Blend and interleave don't work as well  
- Leverage strengths of each: Show nuance, tell structure

For any prompt:

- Frame the actual task clearly at the end
- Keep prompt focused, simple, free of humor/fluff
- Revise prompts based on AI output quality

These principles help craft prompts that provide the AI with just enough guidance - like giving helpful writing advice to a student.

The Art of Prompt Engineering 


Just as writing has subjective nuances, so does the art of prompting AI systems. Experience and experimentation over time can help develop "prompt intuition".

Some additional tips:

- Vary prompt structure - don't always follow one template
- Try unusual blends of show-tell techniques 
- Analyze AI outputs to diagnose prompt issues
- Treat prompt crafting like a creative writing exercise

Prompt engineering guides the AI, but doesn't overly constrain it. Well-designed prompts strike a balance, providing a spark without smothering the AI's creativity.

Your ultimate ChatGPT cheat sheet from beginner to pro would include tips on crafting effective prompts, understanding the model's limitations, and how to iterate on your prompts to improve the AI's responses. This cheat sheet would be a valuable resource for anyone looking to harness the power of ChatGPT, whether they're just starting out or are already experienced users.

The ultimate prompt engineering secret lies in understanding the nuances of the AI model and how it interprets different prompts. It's about finding the right balance between being too vague and too specific, and knowing how to guide the AI without over-constraining it. This secret is what separates the average users from the pros, and it's what allows you to truly unlock the potential of ChatGPT. 

The Future of Show-Tell Prompting


As generative AI grows more powerful, prompt engineering will only become more crucial in steering these models safely and effectively.  

Future research may reveal additional prompting techniques beyond show-tell. But for now, these principles provide a solid starting point for extracting the best output from ChatGPT and similar systems.

The core ideas of show vs tell prompt design - demonstrating through examples and specifying attributes - will continue empowering both human and AI creators.

So next time you use an AI assistant, think about how show-me or tell-me prompting can help it generate higher quality responses. With practice, you'll gain intuition for which approach works best in different situations.

The future of AI is bright, as long as we light its path with thoughtful, well-designed prompts.



You might also interested

16/10/23

Elevate Your Design with DALLE-3 Prompts

Take your design prowess to new heights with the innovative power of artificial intelligence (AI)! In a world where AI meets artistry, which opens up a world of creative possibilities. Discover the impressive capabilities of DALL-E 3, an advanced AI system by OpenAI, which is revolutionizing the graphic design sphere by turning textual descriptions into visually stunning graphics. We dive into its nuanced features, accessibility, and operation.

Read more

13/07/23

How to Access Claude Outside the US and UK

Claude is an AI assistant created by Anthropic that is currently only available in the US and UK during its beta testing period. This article provides detailed instructions on how users outside of those two countries can gain access to Claude by masking their location. The two methods outlined are using a VPN service to route your traffic through US or UK servers, or using the built-in VPN in the Opera browser to change your virtual location. The article explains how these VPN options allow you to bypass Claude's geolocation restrictions by making it appear as if you are accessing the service from within the US or UK. This grants international users the ability to test out Claude's conversational abilities and knowledge until the service is available more widely. In summary, the article outlines workarounds that provide worldwide access to Claude's limited beta release.

Read more

05/11/23

Accessing GPT-4 For Free: Tips and Resources to Access this Powerful AI

AI is revolutionizing industries, and at the forefront is GPT-4, the latest innovation from Open AI. It promises unprecedented capabilities in natural language processing and reasoning. But, is its steep subscription putting it out of your reach? Fret not! In this insightful blog post, we expose free alternatives and methods to tap into GPT-4, and comparable AI tech. From Bing to Nat.Dev, Merlin and HuggingFace, we guide you to explore these tools irrelevant of your budget. Get ready to harness the remarkable capacities of AI to streamline your workflows, foster creativity, and venture into untapped possibilities.

Read more

30/08/23

Unleash the Power of AI: How to Use ChatGPT on Telegram

The rise of artificial intelligence (AI) is transforming how we access and use information. AI-powered chatbots and virtual assistants like ChatGPT have made obtaining answers and knowledge easier than ever before. In this blog, we will explore how the platform Elimufy allows you to harness the power of advanced AI through seamless integration with the popular messaging app Telegram. You will learn what Elimufy and ChatGPT are, the benefits of accessing Elimufy via Telegram, how to set up and use Elimufy on Telegram, and how AI assistants can enhance learning and creativity. We discuss the future potential of AI in education and how services like Elimufy make AI accessible to all. Whether you want to level up your knowledge or build the next big idea, this blog provides insights on how to unleash AI to get the most out of your pursuits. Read on to discover how you can tap into this revolutionary technology today using Elimufy and Telegram.

Read more

28/09/23

Groundbreaking AI Tools to Elevate Your Productivity

Artificial Intelligence (AI), once a distant sci-fi dream, is now a game-changing reality revolutionising our work methods. Be it outperforming humans at complex games like chess or producing human-like conversations, AI's capabilities are vastly expanding. This incredible evolution opens doors to employ AI for augmenting productivity in numerous practical applications. In this blog post, we explore eight innovative AI tools that can radically transform your work, boost creativity, and save you valuable time. These tools, beneficial for writers, developers, entrepreneurs, or job seekers, promise to ignite a significant productivity surge in your professional life. Join us as we delve into the fascinating world of AI, enabling you to work smarter in this digital age!

Read more

01/11/23

Making Money Online with AI

Welcome to the future of digital entrepreneurship made more accessible with AI. The internet has always been a rich source of business opportunities, and as we advance into 2024, AI tools like ChatGPT, Claude, Dalle-3 and Midjourney are making it simpler, faster, and more profitable to create and sell high-quality digital products online. Regardless of the stage of your entrepreneurial journey, these advanced tools spell success when properly harnessed. From ebooks to online courses, 3D models, and consulting packages - the applications are limitless. This comprehensive guide will outline the top 10 lucrative AI-assisted digital products to sell online, effective tips to maximize profit, and insights for launching a successful online business. As an entrepreneur in 2024, you're standing on the frontiers of a new era. Let's explore this exciting landscape together!

Read more