Content Villain
  • Welcome to Content Villain
  • Introduction
    • Accessing Content Villain
  • Understanding AI
    • NLP Models
      • Model Filters
      • Guiding for Success
      • Fine-tuning
      • Prompt Engineering
    • Limitations of AI
  • Web Application
    • Web App Overview
    • Features in Depth
      • Dashboard
        • Initial View
        • Folders Tab
        • Documents Tab
        • Billing Tab
        • Account Tab
        • Connect Webhooks Tab
        • API Documentation
        • Request Custom Models
        • Build in the Lab
        • Contact Us
        • Support Docs
        • Video Showcase
        • Log out
      • Documents
        • Document Features
          • The Top Navigation
            • File
            • Tools
            • Translate
            • Navigation
            • Notepad
            • Focus Music for Productivity
          • The Right Sidebar
            • Creativity Settings
            • Output Length Settings
            • Trigger Webhooks
            • Add Webhooks
            • All AI Models Shortcut
            • Starred Models Shortcut
            • Custom Models Shortcut
            • AI Content History
            • AI Links
            • Write for Me Settings
            • Undo Button
            • Redo Button
            • Write for Me Button
        • Managing Your Documents
          • Creating New Documents
          • Change Document Folder
          • Renaming Documents
          • Deleting Documents
    • DIY Model Creation
      • Playground
  • Public Models
    • Public Models Available
      • Idea Generators
        • Marketing Ideas
        • Growth Ideas
        • Blog Ideas
        • Business Ideas
      • Product Descriptions
        • Ecommerce Descriptions
        • Etsy Descriptions
        • Food Descriptions
        • SaaS Descriptions
        • Course Descriptions
      • Blog Writing
        • Full Blog Creator
        • Blog Outlines
        • Blog Introductions
        • Section Creator
        • Conclusion Generator
      • Website Copy
        • Launch Your Product
        • Microcopy
        • Landing Page Text
        • Meta Descriptions
      • Business Specific
        • Company Press Release
      • Sales Copy
        • Marketing Angles
        • Features Advantage Benefit
        • Attention Interest Desire Action
        • Features to Benefit
        • Before After Bridge
        • Pain Agitate Solution
      • Email Creation
        • Outbound Sales Email
        • Special Offer Email
        • Email Subject Lines
        • Thank You Email
        • Reply to Email
        • Meeting Reminder
        • Confirmation Emails
      • Customer Service
        • Apologize for Issue
        • Review Responder
        • Complaint Escalation
        • Churn & Feedback Email
        • Issue Refund
      • YouTube Specific
        • YouTube CTA
        • YouTube Description Intros
        • Video Hooks
      • Facebook Specific
        • Facebook Ad Headlines
        • Facebook Link Descriptions
      • LinkedIn Specific
        • LinkedIn Text Ads
        • Share Article on LinkedIn
      • Google Specific
        • Google Ad Headlines
      • Twitter Specific
        • Twitter Content Strategy
      • Sentiment Analysis
        • Review Sentiment Analysis
      • Job Apply & Hiring
        • Cover Letters
        • Freelance Job Applications
      • Real Estate & Property
        • Airbnb Descriptions
      • Essays & Learning
        • Homework Excuse
        • Essay Introductions
        • Verb Thesaurus
        • Essay Outlines
        • Adjective Thesaurus
  • Custom Models
    • What is a Custom Model?
    • Custom Model Creation Process
  • Useful Links
    • Useful Links & Contacts
Powered by GitBook
On this page
  • Advantages of Prompt Engineering
  • Disadvantages of Prompt Engineering

Was this helpful?

  1. Understanding AI
  2. NLP Models

Prompt Engineering

Prompt Engineering is a super important concept when it comes to constructing AI models. With prompt engineering, you can create a model to do something and 'front-load' it with examples. This means that you do not need to spend the time to make a resource intensive dataset. So how does prompt engineering look like in real life?

You may have a prompt for a Product Description model which could look something like this;

Write an exciting product description based on the following information.

Product Title: <First Input>
Product Description: <Second Input>
###
<Expected Output>

This is a basic prompt and can work. The user would input their fields and you'd get something out the other end. The AI however does not know what length text you expect, what the tone should be or your style. That is a problem. The easiest way to fix this problem is with Prompt Engineering. To do this, you'd write a prompt like this;

Write an exciting product description based on the following information.

Product Title: <First Input Example>
Product Description: <First Input Example>
###
<Example Desired Output>
###
Product Title: <Second Example>
Product Description: <Second Example>
###
<Example Desired Output>
###
Product Title: <Third Example>
Product Description: <Third Example>
###
<Example Desired Output>
###
Product Title: <User Input 1>
Product Description: <User Input 2>
###

You see from Prompt Engineering, we give the AI context of three input pairing and three desired outputs. The AI now understands that this is the format it is expected to follow. When the AI is called into action, it will see the user inputs on line 18 and 19 and also see that 21 is blank. This is where it is expected to write the output as is shown on line 6, 11 and 16.

Advantages of Prompt Engineering

One of the main advantages is that it is incredibly quick. You can quickly test out giving the AI different contexts and teaching it the pattern you want it to follow. By providing just a few examples, it can learn with some incredible quality. If the pattern is a relatively simple one, then Prompt Engineering may be all that is needed to provide a useable model.

Using Prompt Engineering also means that you don't have to spend the time creating a wider dataset. A dataset can consist of thousands of examples and whilst you will get a better output when using a dataset and with fine-tuning, Prompt Engineering is a lot quicker of a process.

Disadvantages of Prompt Engineering

One of the main disadvantages of Prompt Engineering isn't immediately obvious. A lot of NLP models charge based on a system of tokens. They will charge based on both the input and the output. You are therefore going to pay more per request if you have a larger amount of Prompt Engineering. Your prompt is likely to be a larger size than the actual text you want to output so it can be a balancing act of getting quality outputs without having the model cost too much to run, this is where fine-tuning could be a better option.

Another disadvantage of Prompt Engineering is actually giving enough examples to get the pattern followed correctly. When things get more complex, this is difficult. One of the main downfalls of AI technology is the amount of tokens one can use in both the prompt and the completion. This can vary from NLP provider to NLP provider but tends to be anything from 1500 characters upwards to about a max of 3000 characters. There is only so much information you can provide in such limited tokens so for more complex or longer models, prompt engineering is not really suitable.

PreviousFine-tuningNextLimitations of AI

Last updated 3 years ago

Was this helpful?