The Art of Asking: How Prompt Engineering Unlocks the Power of Large Language Models like ChatGPT (2 CASE Studies)

Muhammad Farhan Data Analyst
7 min readMar 24, 2024
Art of Asking; Prompt Engineering 2 real world case studies

Imagine having a conversation with a being that can access and process information like a supercomputer, but communicate and generate creative text formats just like a human. That’s the potential of Large Language Models (LLMs) like GPT-3 and Jurassic-1 Jumbo. However, this power lies hidden without proper guidance. Enter prompt engineering, the art of crafting the perfect prompt to unlock the true potential of LLMs like ChatGPT.

What is Prompt Engineering?

Think of a prompt as a question or instruction you give to a very knowledgeable but easily-distracted assistant. A good prompt is clear, concise, and provides enough context for the LLM to understand what you want it to do. Here’s the key: by carefully crafting prompts, we can steer the LLM towards generating specific creative text formats, translating languages, writing different kinds of creative content, and even answering your questions in an informative way.

Case Study: Simplifying Legal Documents

The legal industry is filled with complex documents written in dense legalese. Imagine a lawyer using prompt engineering to simplify a complex contract for their client. Here’s a possible prompt:

“Take this legal contract (insert contract text here) and rewrite it in plain English, suitable for someone with a high school education level. Explain the key points of the contract in a clear and concise manner, highlighting any obligations or risks for the client involved.”

By feeding the contract text and providing specific instructions, the LLM can analyze the document and generate a simpler, easier-to-understand version. This can save lawyers time and improve client communication.

Dummy Legal Document (Complex Version)

This Agreement (hereinafter referred to as the “Agreement”) is made and entered into as of this [DATE], by and between [Muhammad Farhan] (hereinafter referred to as “Client”), residing at [Multan, Punjab, Pakistan], and [FAST AI Engineering] (hereinafter referred to as “Company”), a corporation duly organized and existing under the laws of the State of [State], with its principal place of business at [Khan Garh Road, Shujabad, Multan, Pakistan].

Witnesseth

WHEREAS, Client desires to engage Company to provide [AI Engineering Services], and Company desires to provide such services (collectively, the “Services”);

NOW, THEREFORE, in consideration of the foregoing premises and the mutual covenants hereinafter set forth, the parties agree as follows:

  1. Services. Company agrees to provide the Services to Client in accordance with the terms and conditions set forth in this Agreement and the attached Exhibit A (the “Scope of Work”).
  2. Client Responsibilities. Client agrees to: (a) cooperate with Company in the performance of the Services; (b) provide Company with all necessary information and materials in a timely manner; and © pay Company the fees set forth in Section 3 below.
  3. Fees and Payment. Client shall pay Company a fee of $[Amount] for the Services (the “Fee”). The Fee shall be payable in full upon execution of this Agreement.
  4. Term and Termination. This Agreement shall commence on the Effective Date and shall continue for a period of [Number] months (the “Term”). This Agreement may be terminated by either party upon [Number] days’ written notice to the other party.
  5. Confidentiality. Each party agrees to hold in confidence all Confidential Information of the other party. “Confidential Information” means any information disclosed by one party to the other party that is designated as confidential or that, by its nature, ought to be treated as confidential.
  6. Limitation of Liability. IN NO EVENT SHALL EITHER PARTY BE LIABLE TO THE OTHER PARTY FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, ARISING OUT OF OR RELATING TO THIS AGREEMENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  7. Entire Agreement. This Agreement constitutes the entire agreement between the parties with respect to the subject matter hereof and supersedes all prior or contemporaneous communications, representations, or agreements, whether oral or written.
  8. Governing Law. This Agreement shall be governed by and construed in accordance with the laws of the State of [State].

IN WITNESS WHEREOF, the parties have executed this Agreement as of the date first written above.

[Muhammad Farhan]

[FAST AI Engineering Services]

By: [Muhammad Farhan, AI Engineer]

Legal Document (Plain English Version)

This Simple Agreement (we’ll call it an “Agreement”) is between you (we’ll call you the “Client”) and [FAST Engineering Services] (the “Company”).

Why We’re Making this Agreement

You want [Company Name] to do [Service Description] for you, and they’ve agreed! This Agreement explains what they’ll do and what you’ll do in return.

What [FAST Engineering Services] Will Do

[FAST Engineering Services] agrees to provide the services described in detail in a separate document attached to this Agreement (called the “Scope of Work”).

What You Will Do

  • You’ll help [FAST Engineering Services] do their job by providing information and materials they need.
  • You’ll pay them $[100] for their services (the “Fee”). You’ll pay this fee right away, upon signing this Agreement.

How Long This Agreement Lasts

This Agreement starts on [DATE] and lasts for [Number] months (the “Term”). Either you or [FAST Engineering Services] can end this Agreement early by giving written notice to the other party [2] days in advance.

Keeping Things Confidential

Any private information you or [FAST Engineering Services] share with each other (called “Confidential Information”) needs to be kept secret.

Just in Case Something Goes Wrong

There’s a limit to how much either you or [FAST Engineering Services] can be held responsible for damages related to this Agreement, even if we were warned about the possibility of such damages.

The Whole Agreement

This Agreement is the entire agreement between you and [FAST Engineering Services] about the services described. It replaces any previous discussions or agreements, written or spoken.

Following the Rules

This Agreement follows the laws of the State of [State].

Signatures

By signing below, you and [FAST Engineering Services] agree to this Agreement.

[Muhammad Farhan]

[FAST Engineering Services]

By: [Muhammad Farhan AI Engineer]

Note: This is a simplified version of a legal document for informational purposes only and should not be considered

Case Study: Boosting Content Creation

Content creators are constantly looking for new ideas and ways to engage their audience. Here’s how prompt engineering can help:

“Write a blog post in the style of [insert favourite blog] about the top 5 benefits of using renewable energy sources. Include relevant statistics and examples to support your points.”

This prompt instructs the LLM to mimic the writing style of a preferred blog while generating content on a specific topic. It can be a valuable tool for generating ideas or kick-starting the writing process.

Case Study: Boosting Content Creation with Prompt Engineering — Tasty Tuesday Takes on Plant-Based Burgers

The Challenge: Sarah, the creator behind the popular food blog “Tasty Tuesday,” is facing a content rut. She wants to create fresh and engaging content for her audience but struggles with coming up with new recipe ideas.

The Solution: Sarah decides to experiment with prompt engineering to spark inspiration for her next blog post.

The Prompt: “Write a blog post in the style of Tasty Tuesday about a creative and delicious plant-based burger recipe. Highlight the top 3 reasons why someone might choose a plant-based burger and include links to at least 2 relevant recipes.”

The Result: The LLM generates the following draft blog post:

Plant-Powered Perfection: Top 3 Reasons to Love a Plant-Based Burger

Hey Tasty Tuesday fans! Today, we’re taking a delicious detour into the world of plant-based burgers! These aren’t your sad, dry veggie burgers of the past. Modern plant-based burgers are bursting with flavor and creativity, making them a fantastic option for everyone, not just vegetarians and vegans.

Top 3 Reasons to Love a Plant-Based Burger:

  1. Flavor Explosion: Plant-based burgers come in a mind-boggling variety, from black bean to beet to lentil-based options. Each patty offers a unique flavor profile that can be dressed up with your favorite toppings.
  2. Better for You: Many plant-based burgers are lower in saturated fat and cholesterol compared to traditional beef burgers. They can also be packed with protein, fiber, and other essential nutrients.
  3. Eco-Friendly Choice: Raising livestock for meat production has a significant environmental impact. Choosing plant-based burgers can help reduce your carbon footprint and conserve resources.

Ready to Get Grilling?

Here are two inspiring plant-based burger recipes to get you started:

  • The Ultimate Black Bean Burger: This hearty and flavorful recipe is a crowd-pleaser. [Link to recipe]
  • Beetroot Burgers with Creamy Feta Sauce: These vibrant burgers offer a unique twist with a delicious tangy sauce. [Link to recipe]

So, next time you’re firing up the grill, consider giving a plant-based burger a try! You might be surprised at how delicious and satisfying it can be.

The Impact: Sarah loved the draft post! It provided a fresh recipe idea, addressed her audience’s interests, and included valuable information about plant-based burgers. She added her personal touch to the post with an intro and concluding paragraph before publishing it on Tasty Tuesday.

This example shows how prompt engineering can be a valuable tool for content creators. It can help overcome writer’s block, spark new ideas, and generate content that resonates with the target audience.

The Future of Prompt Engineering

Prompt engineering is a rapidly evolving field with vast potential. As LLMs continue to improve, so will our ability to guide them with effective prompts. Imagine using prompts to:

  • Generate personalized learning materials for students
  • Develop creative marketing copy for businesses
  • Translate languages in real-time during conversations
  • Write different kinds of creative text formats, like poems, code, scripts, musical pieces, etc.

The Takeaway

Prompt engineering is not about replacing human creativity, but rather about augmenting it. By mastering the art of asking, we can unlock the true potential of LLMs and unlock a future filled with new possibilities for communication, content creation, and information access.

Remember:

  • Effective prompts are clear, concise, and provide context.
  • Experiment with different prompts to achieve the desired outcome.
  • As LLMs evolve, so will the possibilities of prompt engineering.

My Name is Muhammad Farhan. I am a Prompt Engineer AI Master. Feel free to contact me on my WhatsApp: 923017504302

Published by

Muhammad Farhan

Farhan MuhammadFarhan Muhammad

Content Writer: Data AnalystContent Writer: Data Analyst

The article is all about: #PromptEngineering
hashtag#LargeLanguageModels
hashtag#ChatGPT
hashtag#NaturalLanguageProcessing
hashtag#AIResearch
hashtag#LanguageModeling
hashtag#ArtificialIntelligence
hashtag#NLP
hashtag#MachineLearning
hashtag#CaseStudies
hashtag#DataScience
hashtag#TextGeneration
hashtag#ConversationalAI
hashtag#AskChatGPT
hashtag#Technology
hashtag#Innovation
hashtag#DeepLearning
hashtag#LanguageUnderstanding
hashtag#Chatbots
hashtag#ResearchInsights

--

--

Muhammad Farhan Data Analyst

Business Data Analysis Services Provider. I help my clients to analyze and visualize Business data by using tools like python, sql and Power BI.