Examples and guides for using the OpenAI API
adds warning to QA example code
Ted Sanderse3d7091d7045
diff --git a/examples/fine-tuned_qa/answers_with_ft.py b/examples/fine-tuned_qa/answers_with_ft.pyindex 32507e82..5eaba7d4 100644--- a/examples/fine-tuned_qa/answers_with_ft.py+++ b/examples/fine-tuned_qa/answers_with_ft.py@@ -1,3 +1,9 @@+"""+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).+"""+import argparseimport openaidiff --git a/examples/fine-tuned_qa/olympics-1-collect-data.ipynb b/examples/fine-tuned_qa/olympics-1-collect-data.ipynbindex 7a88051b..67a97ac6 100644--- a/examples/fine-tuned_qa/olympics-1-collect-data.ipynb+++ b/examples/fine-tuned_qa/olympics-1-collect-data.ipynb@@ -1,5 +1,12 @@{"cells": [+ {+ "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>"+ ]+ },{"cell_type": "markdown","metadata": {},@@ -487,11 +494,9 @@}],"metadata": {- "interpreter": {- "hash": "be4b5d5b73a21c599de40d6deb1129796d12dc1cc33a738f7bac13269cfcafe8"- },"kernelspec": {- "display_name": "Python 3.7.3 64-bit ('base': conda)",+ "display_name": "Python 3.9.9 64-bit ('3.9.9')",+ "language": "python","name": "python3"},"language_info": {@@ -504,9 +509,14 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.7.3"+ "version": "3.9.9"},- "orig_nbformat": 4+ "orig_nbformat": 4,+ "vscode": {+ "interpreter": {+ "hash": "cb9817b186a29e4e9713184d901f26c1ee05ad25243d878baff7f31bb1fef480"+ }+ }},"nbformat": 4,"nbformat_minor": 2diff --git a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb b/examples/fine-tuned_qa/olympics-2-create-qa.ipynbindex 7b279f05..f54e182b 100644--- a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb+++ b/examples/fine-tuned_qa/olympics-2-create-qa.ipynb@@ -1,5 +1,12 @@{"cells": [+ {+ "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>"+ ]+ },{"cell_type": "markdown","metadata": {},diff --git a/examples/fine-tuned_qa/olympics-3-train-qa.ipynb b/examples/fine-tuned_qa/olympics-3-train-qa.ipynbindex 76fb3f3c..63341ecd 100644--- a/examples/fine-tuned_qa/olympics-3-train-qa.ipynb+++ b/examples/fine-tuned_qa/olympics-3-train-qa.ipynb@@ -1,5 +1,12 @@{"cells": [+ {+ "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>"+ ]+ },{"cell_type": "markdown","metadata": {},@@ -611,11 +618,9 @@}],"metadata": {- "interpreter": {- "hash": "be4b5d5b73a21c599de40d6deb1129796d12dc1cc33a738f7bac13269cfcafe8"- },"kernelspec": {- "display_name": "Python 3.7.3 64-bit ('base': conda)",+ "display_name": "Python 3.9.9 64-bit ('3.9.9')",+ "language": "python","name": "python3"},"language_info": {@@ -628,9 +633,14 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.7.3"+ "version": "3.9.9"},- "orig_nbformat": 4+ "orig_nbformat": 4,+ "vscode": {+ "interpreter": {+ "hash": "cb9817b186a29e4e9713184d901f26c1ee05ad25243d878baff7f31bb1fef480"+ }+ }},"nbformat": 4,"nbformat_minor": 2