Keep up with the ever-evolving AI landscape
Unlock exclusive AI content by subscribing to our newsletter!!
December 18, 2023
When using AI tools like ChatGPT, the right prompt will get you the best results. Now, OpenAI has gifted the world a guide on how to improve your prompts.
OpenAI offers six steps, noting that some of the methods can be combined “for greater effect.”
Users can also explore various prompt examples to get the best out of their inputs.
The tactics from the new OpenAI prompt engineering guide can work in tandem with OpenAI’s Cookbook, which contains example code and links to third-party resources on prompting guides and tools as well as video courses.
OpenAI said that inputs require users to be specific about their needs. Want short responses? Say so. If you want less simplistic responses, ask for expert-level writing. Using your words will allow a system like ChatGPT to know exactly what you want. After all, these chatbots aren’t quite mind readers, yet.
Credit: AI Business
Here are some tips from OpenAI to improve the clarity of your prompts:
Include details in your query to get more relevant answers
Ask the model to adopt a persona
Use delimiters to clearly indicate distinct parts of the input
Specify the steps required to complete a task
Specify the desired length of the output
Systems like OpenAI’s ChatGPT are good – but that doesn't mean they're perfect. Even the most powerful models will sometimes return false responses. OpenAI’s guide said this especially occurs when systems are asked about esoteric topics or for citations and URLs.
The makers of ChatGPT argue that providing reference texts can result in fewer falsities in outputs. To achieve this, OpenAI suggests instructing the model to answer using reference text or with citations from a reference text.
Instead of uploading a document to ChatGPT and asking it to do everything at once, OpenAI’s prompting guide suggests better results can be achieved by breaking down your desired outputs.
For example, instead of uploading a report and asking the chatbot to summarize the entire thing, break the summaries down into sections and then use those multiple outputs to create a full, more detailed one.
OpenAI also suggests employing intent classification to identify the most relevant instructions.
OpenAI’s fourth suggestion for improving outputs is simply to have patience. The prompting guide suggests that models make more reasoning errors “when trying to answer right away, rather than taking time to work out an answer.”
Ways to improve this that OpenAI suggested include instructing the model to work on its solution to a query before rushing to a conclusion or using a sequence of queries to hide the model's reasoning process. Users could also ask the model to repeat the task, ensuring that it didn’t miss anything on previous passes.
Models like ChatGPT are only as good as the underlying models. However, many systems can be combined with external tools to improve results. Since May 2023, ChatGPT, for example, has had access to a myriad of plugins, with users able to find great restaurants using OpenTable or plan their next vacation with the Kayak extension.
OpenAI’s prompting guide said that plugins or external tools in generate can “compensate for the weaknesses of the model.”
“If a task can be done more reliably or efficiently by a tool rather than by a language model, offload it to get the best of both,” OpenAI’s guide reads.
OpenAI suggests using embeddings-based search to implement efficient knowledge retrieval or using code execution to perform more accurate calculations.
OpenAI suggests users could perform evaluations on the models they’re using to see if the system will give them the desired outputs. The ChatGPT makers suggest users may want to conduct tests like asking their model a collection of different scenarios or questions to test their AI, ensuring it performs well.
Read more about:ChatGPT / Generative AI
Ben Wodecki is the Jr. Editor of AI Business, covering a wide range of AI content. Ben joined the team in March 2021 as assistant editor and was promoted to Jr. Editor. He has written for The New Statesman, Intellectual Property Magazine, and The Telegraph India, among others. He holds an MSc in Digital Journalism from Middlesex University.
You May Also Like
Generative AI Journeys with CDW UK's Chief TechnologistFeb 28, 2024
Qantm AI CEO on AI Strategy, Governance and Avoiding PitfallsFeb 14, 2024
Deloitte AI Institute Head: 5 Steps to Prepare Enterprises for an AI FutureJan 31, 2024
Athenahealth's Data Science Architect on Benefits of AI in Health CareJan 19, 2024