Insider spoke to several experts to get their tips for prompting ChatGPT to generate better code.
Insider spoke to several computer-science experts and tech workers who've created software with ChatGPT to get their advice for generating better code.
Ernst, whose students sometimes use GPT to help them with assignments, said adding technical detail to prompts or feeding the bot example code can help improve results.
Assign ChatGPT a roleGiving ChatGPT a specific persona can help it understand what a user wants.
Brush up on the basicsNo matter how specific users keep their prompts, language can still be ambiguous.
Persons:
OpenAI's ChatGPT, ChatGPT, who've, Ammaar Reshi, who's, it's, Reshi, Neil Ernst, Ernst, Jason Gulya, Emery Berger, Berger
Organizations:
University of Victoria, Berkeley College, University of Massachusetts Amherst