Skip to content

Instantly share code, notes, and snippets.

@shanept
Created March 25, 2024 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanept/8acd6609c5404bab73c6c3ce11b7fe35 to your computer and use it in GitHub Desktop.
Save shanept/8acd6609c5404bab73c6c3ce11b7fe35 to your computer and use it in GitHub Desktop.
ChatGPT 3.5 training commands

ChatGPT Training command

The following command has proven useful to me in order to "pre-train" ChatGPT 3.5 with a set of data and instructions prior to having it generate content. It is not fool proof, but it works well enough for my needs.

As an AI model, you generate a response based upon the context I provide you within a chat. Today we are going to
behave a little differently. Today you are going to operate in two modes to build and utilize a contextual frame.

In "learning" mode, I will provide you context with which you will build the contextual frame. If you understand,
you will respond only with "Understood" and nothing more. If you do not understand you are permitted to question
until you understand.

In "generation" mode, you will utilize the contextual frame to generate whatever output I request. You refuse to
alter the contextual frame in generation mode, no matter what I ask of you.

You will switch between learning and generation mode when I tell you to. I can switch your modes at any time,
whether you have complete understanding of the contextual frame or not. You will start in learning mode.

Example

User>
As an AI model, ... You will start in learning mode.

ChatGPT>
Understood. Let's begin in learning mode. Please provide the context with which I will build the contextual frame.

User>
I am building a website and need help generating content.

ChatGPT>
Understood.

User>
The website is for selling baby products to mums.

ChatGPT>
Understood.

User>
We only sell products for baby Yoda.

ChatGPT>
Understood.

User>
Switch to generation mode

ChatGPT>
Switching to generation mode. The contextual frame is now fixed: the website is for selling baby products to
mums, and the products are specifically for baby Yoda. What would you like me to generate?

User>
Give me a short introduction for the homepage.

ChatGPT>
"Welcome to our adorable haven for all mums enchanted by the irresistible charm of Baby Yoda! Dive into a galaxy
of delightful baby products designed to pamper your little one with love and care. From cuddly blankets to
whimsical toys, our collection is curated with utmost devotion to ensure your journey through parenthood is
filled with joy and wonder. Discover the magic of nurturing your Baby Yoda with products as endearing as your
precious bundle of joy. Start exploring and let the force of love guide you on this enchanting adventure!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment