Examples and guides for using the OpenAI API
updates warning formatting to HTML to improve display on GitHub
Ted Sanders75aceae6b8d7
diff --git a/examples/fine-tuned_qa/olympics-1-collect-data.ipynb b/examples/fine-tuned_qa/olympics-1-collect-data.ipynbindex 67a97ac6..b3dec8ac 100644--- a/examples/fine-tuned_qa/olympics-1-collect-data.ipynb+++ b/examples/fine-tuned_qa/olympics-1-collect-data.ipynb@@ -4,7 +4,7 @@"cell_type": "markdown","metadata": {},"source": [- "<span style=\"color:orange\">**Note: To answer questions based on text documents, we recommend the procedure in [Question Answering using Embeddings](https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb). Some of the code below may rely on [deprecated API endpoints](https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints).**</span>"+ "<span style=\"color:orange; font-weight:bold\">Note: To answer questions based on text documents, we recommend the procedure in <a href=\"https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb\">Question Answering using Embeddings</a>. Some of the code below may rely on <a href=\"https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints\">deprecated API endpoints</a>.</span>"]},{diff --git a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb b/examples/fine-tuned_qa/olympics-2-create-qa.ipynbindex f54e182b..ad1c553c 100644--- a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb+++ b/examples/fine-tuned_qa/olympics-2-create-qa.ipynb@@ -4,7 +4,7 @@"cell_type": "markdown","metadata": {},"source": [- "<span style=\"color:orange\">**Note: To answer questions based on text documents, we recommend the procedure in [Question Answering using Embeddings](https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb). Some of the code below may rely on [deprecated API endpoints](https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints).**</span>"+ "<span style=\"color:orange; font-weight:bold\">Note: To answer questions based on text documents, we recommend the procedure in <a href=\"https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb\">Question Answering using Embeddings</a>. Some of the code below may rely on <a href=\"https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints\">deprecated API endpoints</a>.</span>"]},{@@ -149,7 +149,7 @@"\n","Note: We have used temperature=0, but it may be beneficial to experiment with a higher temperature to get a higher diversity of questions.\n","\n",- "<span style=\"color:orange\">**WARNING: This step will last a long time, and consume a lot of tokens, as it calls davinci-instruct for every section to generate a number of questions.**</span>"+ "<span style=\"color:orange; font-weight:bold\">WARNING: This step will last a long time, and consume a lot of tokens, as it calls davinci-instruct for every section to generate a number of questions.</span>"]},{@@ -308,7 +308,7 @@"## 2.5 Search file (DEPRECATED)\n","We create a search file ([API reference](https://beta.openai.com/docs/api-reference/files/list)), which can be used to retrieve the relevant context when a question is asked.\n","\n",- "<span style=\"color:orange\">**DEPRECATED: The /search endpoint is deprecated in favour of using embeddings. Embeddings are cheaper, faster and can support a better search experience. See [Question Answering Guide](https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb) for a search implementation using the embeddings**</span>\n"+ "<span style=\"color:orange; font-weight:bold\">DEPRECATED: The /search endpoint is deprecated in favour of using embeddings. Embeddings are cheaper, faster and can support a better search experience. See <a href=\"https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb\">Question Answering Guide</a> for a search implementation using the embeddings</span>\n"]},{diff --git a/examples/fine-tuned_qa/olympics-3-train-qa.ipynb b/examples/fine-tuned_qa/olympics-3-train-qa.ipynbindex 63341ecd..f996cb3b 100644--- a/examples/fine-tuned_qa/olympics-3-train-qa.ipynb+++ b/examples/fine-tuned_qa/olympics-3-train-qa.ipynb@@ -4,7 +4,7 @@"cell_type": "markdown","metadata": {},"source": [- "<span style=\"color:orange\">**Note: To answer questions based on text documents, we recommend the procedure in [Question Answering using Embeddings](https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb). Some of the code below may rely on [deprecated API endpoints](https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints).**</span>"+ "<span style=\"color:orange; font-weight:bold\">Note: To answer questions based on text documents, we recommend the procedure in <a href=\"https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb\">Question Answering using Embeddings</a>. Some of the code below may rely on <a href=\"https://github.com/openai/openai-cookbook/tree/main/transition_guides_for_deprecated_API_endpoints\">deprecated API endpoints</a>.</span>"]},{