From ae45a48de36beb050f9ea279552e0a0492ce795f Mon Sep 17 00:00:00 2001 From: Scott Leibrand Date: Fri, 23 Dec 2022 12:30:26 -0800 Subject: [PATCH 1/3] Only get_embedding once https://github.com/openai/openai-cookbook/commit/fd181ec78fa57e14583e27915ccdad3a084296ae updated what was previously two different get_embedding() calls w/ different models to be two identical calls. Rather than doing the same API call twice in a row, we can now just set the second variable to be equal to the first one. --- examples/Obtain_dataset.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Obtain_dataset.ipynb b/examples/Obtain_dataset.ipynb index 74783d9..47afcfb 100644 --- a/examples/Obtain_dataset.ipynb +++ b/examples/Obtain_dataset.ipynb @@ -162,7 +162,7 @@ "\n", "# This will take just between 5 and 10 minutes\n", "df['ada_similarity'] = df.combined.apply(lambda x: get_embedding(x, engine='text-embedding-ada-002'))\n", - "df['ada_search'] = df.combined.apply(lambda x: get_embedding(x, engine='text-embedding-ada-002'))\n", + "df['ada_search'] = df['ada_similarity']\n", "df.to_csv('data/fine_food_reviews_with_embeddings_1k.csv')" ] } From b2d9cd13d44b604cff6d39e717d297b06a1ae236 Mon Sep 17 00:00:00 2001 From: "Osman A. Osman" Date: Tue, 3 Jan 2023 19:00:13 -0800 Subject: [PATCH 2/3] Remove obsolete reference to old embedding engines --- examples/Code_search.ipynb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/Code_search.ipynb b/examples/Code_search.ipynb index 34b98b4..90e3936 100644 --- a/examples/Code_search.ipynb +++ b/examples/Code_search.ipynb @@ -84,13 +84,6 @@ "print(\"Total number of functions extracted:\", len(all_funcs))" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "For code search models we use code-search-{model}-code to obtain embeddings for code snippets, and code-search-{model}-text to embed natural language queries." - ] - }, { "cell_type": "code", "execution_count": 2, From 40e3a10417bac744e4bc2ec4c1416b809af528c4 Mon Sep 17 00:00:00 2001 From: gloryjain Date: Fri, 6 Jan 2023 12:05:16 -0800 Subject: [PATCH 3/3] Update notebook to point to form Route rate limit increase requests to form instead of our support email --- examples/How_to_handle_rate_limits.ipynb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/How_to_handle_rate_limits.ipynb b/examples/How_to_handle_rate_limits.ipynb index 8aad01b..96d63e4 100644 --- a/examples/How_to_handle_rate_limits.ipynb +++ b/examples/How_to_handle_rate_limits.ipynb @@ -95,11 +95,9 @@ "\n", "### Requesting a rate limit increase\n", "\n", - "If you'd like your organization's rate limit increased, please feel free to reach out to with the following information:\n", + "If you'd like your organization's rate limit increased, please fill out the following form:\n", "\n", - "- The model(s) you need increased limits on\n", - "- The estimated rate of requests\n", - "- The reason for the increase" + "- [OpenAI Rate Limit Increase Request form](https://forms.gle/56ZrwXXoxAN1yt6i9)\n" ] }, {