Prompt Engineering with OpenAI
This workshop on prompt engineering with OpenAI discussed best practices for utilizing OpenAI models.
Prompt Engineering with OpenAI
This workshop on prompt engineering with OpenAI discussed best practices for utilizing OpenAI models. We will review how to separate instructions and context using special characters to help improve instruction clarity, context isolation, and enhances control over the generation process. The workshop also included code for installing the langchain library and demonstrated how to create prompts effectively, emphasizing the importance of clarity, specificity, and precision in prompts. Additionally, the workshop showed how to craft prompts for specific tasks, such as extracting entities from text. It provided templates for prompts and highlighted the significance of specifying the desired output format through examples for improved consistency and customization.
Lastly, the workshop addressed the importance of using prompts as safety guardrails. It introduced prompts to mitigate hallucination and jailbreaking risks by instructing the model to generate well-supported and verifiable information, thereby promoting responsible and ethical use of language models.
Tutorial Topics
Mary Grace Moesta
Welcome to the tutorial!
What You'll Learn in This Tutorial
How to use this tutorial
Tutorial Prerequisites
Best practices for prompting OpenAI models
Prompting safety guardrails
Lesson Notebook: Prompt Engineering Part II.
Prompt Engineering Part II
A Hands-on Tutorial