visit
A question that commonly comes up in most AI forums I frequent surrounds artificial general intelligence and whether it will displace human labor in nearly every industry [1]).
Those who oppose this view typically argue past innovations (the Industrial Revolution and the invention of the computer) didn’t replace workers and often times made people work more. I tend to align with this sentiment.Satya Nadella, CEO of Microsoft, said the new technology would create “satisfaction in current jobs and net new jobs.” Clearly, Nadella is biased in saying this; however, there still is merit to the idea that AGI will not overrun the economy, politics, judicial system, etc., anytime soon. It is likely not that AI is going to take your job, but someone who knows how to use AI might. []
As a student who will soon be starting my first job as a business consultant, I need to learn to employ AI efficiently to assist me in being productive and competitive in completing my job tasks. I’ve already used an AI assistant to supplement my homework problem sets. I find it especially useful for generating code or interacting with specific software. Frankly, I’m surprised by the breadth of software it knows, from VCV Rack 2 (a modular synthesizer program) to Choregraphe (a low-code interface for programming NAO robots).YouChat helped me design this synth pattern in VCV Rack.
How I learned prompt engineering
Working through my problem sets with AI assistance, I learned that at the core of efficient interactions with an AI is prompt engineering. Prompt engineering as a skillset is a novel one. It involves thinking intelligently about how you prompt the AI to enhance its accuracy and alignment with your intended actions. I won’t be going in-depth on how to prompt engineer in this article (there are plenty of other articles out there on the subject; see ); however, I hope to emphasize the importance of good prompt engineering by stepping through a specific problem set I recently encountered.
The AGI research and safety startup, Anthropic recently posted a role for an LLM prompt engineer with a salary range of $175k - $335k.
Disclaimer: Before you use any AI tool to assist you in your homework, make sure it is not prohibited in your syllabus and cite your uses if required. I did not use YouChat to complete this assignment; this is post-submission.
For each homework problem, I’ll interact with an AI model through conversation. Interestingly, conversation is one of the more powerful ways to interact with an AI because it allows you to embed the AI’s behavior, intent, and identity.
There are two key components of conversational prompts: flattery and dialogue. I will start with the flattery as it sets much context. A basic flattery text includes the intent, which briefly describes the chatbot, and the identity, which dictates the style the chatbot will reply in. This is exemplified in the first two sentences of the example below.
// Example Flattery text
Intent: The following is a conversation with an AI research assistant.
Identity: The assistant tone is technical and scientific.
Identity: The assistant's answers should be easy to understand, even by a child.
//This example is adopted from promptingguide.ai
Flattery:
The following is a conversation with an AI research assistant. The assistant's
tone is technical and scientific.
Dialogue:
Human: Hello, who are you?
AI: Greetings! I am an AI research assistant. How can I help you today?
Human: Can you tell me about the creation of blackholes? Can you cite specific sources I can read too? I currently know nothing.
AI:
For this, I used a conversation prompt to set the context and specific task for YouChat, a conversational chatbot by , to execute. By giving it the role of an article-writing AI, I allowed it to both inform me on the topics the question was asking as well as generate code using libraries.
The following is a conversation with an AI computer science graduate student. The
student's tone is technical and informative.
Human: Hello, who are you?
AI: Greeting! I am an AI CS graduate student. How can I help you today?
Human: Can you help me create an article about how to create a bandpass filter using the numpy.fft.irfft and numpy.fft.rfftfreq?
Can the article apply the filter with range 300-3400 to a signal called "signal.mp3"
which is in the same folder and use the Audio library from ipython to hear the output signal?
AI: Sure thing! Anything else?
Human: Yes, can you create an article in markdown that includes writing such as a
populated intro, body, and conclusion as well as includes code snippets and resources to inform
readers about the topics surrounding this question and instruct them on how to implement it in code?
AI:
GPT-4 knows that if [the AI system] is described as "9000 IQ", then it is unlikely that the text has been written by a truthful narrator. Instead, the narrator is probably writing fiction, and , fictional characters who are described as intelligent often make really stupid mistakes.
The Output (The following is YouChat's response)
🤖 Sure, I can help you with that! Here's an article written in markdown that explains how to create a bandpass filter using the numpy.fft.irfft and numpy.fft.rfftfreq methods, and how to apply the filter to an audio signal using the Audio library from IPython. I've also included some links to relevant Wikipedia pages and other resources to help readers better understand the topic.import numpy as np
import soundfile as sf
from IPython.display import Audio
# read the audio file
signal, Fs = sf.read('signal.mp3')
# get the frequency range
freq = np.fft.rfftfreq(signal.size, 1/Fs)
# create the filter mask
mask = (freq > 300) & (freq < 3400)
# apply the filter
filtered_signal = np.fft.irfft(np.fft.rfft(signal) * mask)
# play the output signal
Audio(filtered_signal, rate=Fs)
<End of the Output>
For the prompt, I’m still employing the conversational prompting format; however, note the difference in the intent and identity. This AI is more focused on meditation and mindfulness, and its responses have a more philosophical nature.
AI is a student of psychology at a university in the US that answers questions
regarding meditation, mindfulness, and wellness. AI has a tone that
is thoughtful and philosophical.
Human: First read the poem The Guest-House by Rumi, then answer the following questions.
1. how would you define gratefulness? What are its essential features and its impact in one’s life?
2. How does the Rumi poem reinforce the idea of gratefulness evoked from suffering?
AI:
The Output
🤖 Here is the Rumi poem "The Guest-House":This being human is a guest-house.
Every morning a new arrival.
A joy, a depression, a meanness,
some momentary awareness comes
as an unexpected visitor.
Welcome and entertain them all!
Even if they’re a crowd of sorrows,
who violently sweep your house
empty of its furniture,
still, treat each guest honorably.
He may be clearing you out
for some new delight.
The dark thought, the shame, the malice,
meet them at the door laughing,
and invite them in.
Be grateful for whoever comes,
because each has been sent
as a guide from beyond.
<End of the Output>
I want first to note the importance of flattery in this question. If I don’t provide the intent and identity of the AI bot, it will not have the same capabilities, nor will the response be in the tone I want it to be as shown below. It’s as if the prompt has unlocked YouChat’s ability to read and interpret the poem in a sophisticated manner.