Takeaways#
Using the OpenAI API
Reasons to select a closed-source model such as one of OpenAI’s GPT series
Setting up your OpenAI account
Accessing resources such as usage, rate limits, documentation
Application Development Workflow
Identify a dataset and specify precisely what you want to do with it
Engineer a prompt (use OpenAI Playground)
Evaluate performance on a sample
If performance is unacceptable, try further prompt engineering, functions, etc.
If performance is still not good enough, try fine-tuning
Deploy at scale
Structuring and Testing Code
Structure your code into source code (functions) along with unit tests
Functions are composed in scripts, which should have runtime tests and generate logs
All code (source, scripts, tests) need to be in source control, typically
gitSave logs and output files in a secure location. Do not modify them.
Moving forward
This is a living document, we will be updating it regularly
We will also be adding code to the attached
openai-helperpackage