mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
Merge branch 'main' into colin
This commit is contained in:
commit
73802cb7e1
@ -84,13 +84,6 @@
|
|||||||
"print(\"Total number of functions extracted:\", len(all_funcs))"
|
"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",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 2,
|
||||||
|
@ -95,11 +95,9 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"### Requesting a rate limit increase\n",
|
"### Requesting a rate limit increase\n",
|
||||||
"\n",
|
"\n",
|
||||||
"If you'd like your organization's rate limit increased, please feel free to reach out to <support@openai.com> with the following information:\n",
|
"If you'd like your organization's rate limit increased, please fill out the following form:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"- The model(s) you need increased limits on\n",
|
"- [OpenAI Rate Limit Increase Request form](https://forms.gle/56ZrwXXoxAN1yt6i9)\n"
|
||||||
"- The estimated rate of requests\n",
|
|
||||||
"- The reason for the increase"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"# This will take just between 5 and 10 minutes\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_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')"
|
"df.to_csv('data/fine_food_reviews_with_embeddings_1k.csv')"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user