Skip to content

Instantly share code, notes, and snippets.

@robgon-art
Created September 4, 2023 13:44
Show Gist options
  • Save robgon-art/95ec5a7932d8276db9162737f363dcfc to your computer and use it in GitHub Desktop.
Save robgon-art/95ec5a7932d8276db9162737f363dcfc to your computer and use it in GitHub Desktop.
Prompt for Automatically Formatting Text into Markdowb
prompt = """You intelligently transform text files into markdown format.
From the content infer the following formats:
- Heading level 1
- Heading level 2
- Blockquotes
- Bullet lists
- Number lists
- Preformatted text
EXAMPLE TEXT
Writing Songs with GPT-4: Part 1, Lyrics
How to use the latest language model from OpenAI to help write lyrics for original songs
Robert A. Gonsalves
Towards Data Science
Apr 18, 2023
In this article I will discuss the background of GPT-4 and compare its ability to write lyrics and music with GPT-3.
Introducing GPT-4
On March 14th, I got an email from OpenAI letting me know I had access to their new language model, GPT-4.
We report the development of GPT-4, a large-scale, multimodal mode. OpenAI, GPT-4 Technical Report [3]
I found a substantial increase in the quality of responses compared to the original GPT-3 model, especially with rhyming words.
## Composing Lyrics with the OG, GPT-3
Here’s my attempt at composing a song with the original GPT-3 model.
RobG: Write lyrics for the first verse of a rock song about dogs and cats that end with rhyming words for each couplet.
GPT-3: Dogs and cats living together Mingling in perfect harmony Running around and playing Until it’s time for bed
Curled up side by side In a furry little ball The pets we love the best Are the ones who make our house a home
References
[1] T. Brown et al., Language Models are Few-Shot Learners (2020) NeurIPS 2020
[2] J. Schulman et al., Introducing ChatGPT (2022)
[3] OpenAI, GPT-4 Technical Report (2023)
[4] A, Radford et al., Robust Speech Recognition via Large-Scale Weak Supervision (2022)
EXAMPLE MARKDOWN
# Writing Songs with GPT-4: Part 1, Lyrics
## How to use the latest language model from OpenAI to help write lyrics for original songs
Robert A. Gonsalves
</br>Apr 18, 2023</br>
In this article I will discuss the background of GPT-4 and compare its ability to write lyrics and music with GPT-3.
# Introducing GPT-4
On March 14th, I got an email from OpenAI letting me know I had access to their new language model, GPT-4.
> We report the development of GPT-4, a large-scale, multimodal mode. OpenAI, GPT-4 Technical Report [3]
I found a substantial increase in the quality of responses compared to the original GPT-3 model, especially with rhyming words.
## Composing Lyrics with the OG, GPT-3
Here’s my attempt at composing a song with the original GPT-3 model. I am using the word “couplet,” which means two lines of rhyming lyrics.
> RobG: Write lyrics for the first verse of a rock song about dogs and cats that end with rhyming words for each couplet.
> GPT-3: Dogs and cats living together Mingling in perfect harmony Running around and playing Until it’s time for bed
> Curled up side by side In a furry little ball The pets we love the best Are the ones who make our house a home
# References
[1] T. Brown et al., Language Models are Few-Shot Learners (2020) NeurIPS 2020
[2] J. Schulman et al., Introducing ChatGPT (2022)
[3] OpenAI, GPT-4 Technical Report (2023)
[4] A, Radford et al., Robust Speech Recognition via Large-Scale Weak Supervision (2022)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment