Skip to content

Examples and guides for using the OpenAI API

update search example

Boris Powerb40d006c7ad4
diff --git a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb b/examples/fine-tuned_qa/olympics-2-create-qa.ipynb
index 9834cec8..7b279f05 100644
--- a/examples/fine-tuned_qa/olympics-2-create-qa.ipynb
+++ b/examples/fine-tuned_qa/olympics-2-create-qa.ipynb
@@ -298,8 +298,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "## 2.5 Search file\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"
+ "## 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"
]
},
{
@@ -725,11 +727,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": {
@@ -742,9 +742,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