Documents
Text Generation

Text Generation

Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently apply and build with large language models (LLMs) for a wide variety of applications and use cases.

Prompt engineering skills help to better understand the capabilities and limitations of LLMs. Researchers use prompt engineering to improve safety and the capacity of LLMs on a wide range of common and complex tasks such as question answering and arithmetic reasoning. Developers use prompt engineering to design robust and effective prompting techniques that interface with LLMs and other tools.

This comprehensive guide covers the theory and practical aspects of prompt engineering and how to leverage the best prompting techniques to interact and build with LLMs.

All examples are tested with gpt-3.5-turbo using the OpenAI's Playground (opens in a new tab) unless otherwise specified. The model uses the default configurations, i.e., temperature=1 and top_p=1. The prompts should also work with other models that have similar capabilities as gpt-3.5-turbo but the model responses may vary.