THE FUTURE IS HERE

Prompt Engineering

What is Prompt Engineering? and why is it called ‘Prompt Engineering’ if it is just about asking questions to the LLM?
Please see below the resources I used for this video, you can use them for further study.
https://platform.openai.com/docs/guides/prompt-engineering

The code that I used in the Video:
############ Code Begins ###################################
import openai
# Assigning openAPI key
openai.api_key = my_api_key

# Additional Prompts given to the LLM (Instructions to follow)
# along with the user Question
messages=[{“role”: “developer”,
“content”:
”’You are a intelligent assistant and
limit your answer to 20 words

”’
} ]

# Running loop to continuously chat
while True:
message = input(“User : “)
if message:
if message==’bye’:
break;
messages.append(
{“role”: “user”, “content”: message},
)
chat = openai.ChatCompletion.create(
model=”gpt-3.5-turbo”, messages=messages
)
reply = chat.choices[0].message.content
print(f”ChatGPT: {reply}n”)
messages.append({“role”: “assistant”, “content”: reply})
############ Code Ends ###################################

In this series of shorts I am covering the absolute basics you must know before attending a GenAI interview. Subscribe the ThinkingNeuron channel for more such videos!

#prompt #promptengineering #ai #largelanguagemodels #genai #viralshorts #interview #chatgpt #jobhacks #techtips #deepseek

Music from #Uppbeat (free for Creators!):
https://uppbeat.io/t/tobias-voigt/machina
License code: WFPNKB63TEFURNDI