Skip to content

Commit

Permalink
perf: Update OpenAI Embedding with latest embedding model (microsoft#…
Browse files Browse the repository at this point in the history
…1938)

* Update CognitiveServices - OpenAI Embedding.ipynb

* Update CognitiveServices - OpenAI.ipynb

* Update CognitiveServices - OpenAI Embedding.ipynb

* Update CognitiveServices - OpenAI.ipynb

* Update CognitiveServices - OpenAI Embedding.ipynb

* Update CognitiveServices - OpenAI.ipynb

---------

Co-authored-by: Mark Hamilton <[email protected]>
  • Loading branch information
dciborow and mhamilton723 committed Jun 6, 2023
1 parent e5144f2 commit fc5d699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
" from notebookutils.visualization import display\n",
"\n",
"# Fill in the following lines with your service information\n",
"# Learn more about selecting which embedding model to choose: https://openai.com/blog/new-and-improved-embedding-model\n",
"service_name = \"synapseml-openai\"\n",
"deployment_name_embeddings = \"text-search-ada-doc-001\"\n",
"deployment_name_embeddings_query = \"text-search-ada-query-001\"\n",
"deployment_name_embeddings = \"text-embedding-ada-002\"\n",
"\n",
"key = find_secret(\"openai-api-key\") # please replace this with your key as a string\n",
"\n",
Expand Down Expand Up @@ -383,7 +383,7 @@
"embedding_query = (\n",
" OpenAIEmbedding()\n",
" .setSubscriptionKey(key)\n",
" .setDeploymentName(deployment_name_embeddings_query)\n",
" .setDeploymentName(deployment_name_embeddings)\n",
" .setCustomServiceName(service_name)\n",
" .setTextCol(\"query\")\n",
" .setErrorCol(\"error\")\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
" from notebookutils.visualization import display\n",
"\n",
"# Fill in the following lines with your service information\n",
"# Learn more about selecting which embedding model to choose: https://openai.com/blog/new-and-improved-embedding-model\n",
"service_name = \"synapseml-openai\"\n",
"deployment_name = \"gpt-35-turbo\"\n",
"deployment_name_embeddings = \"text-search-ada-doc-001\"\n",
"deployment_name_embeddings_query = \"text-search-ada-query-001\"\n",
"deployment_name_embeddings = \"text-embedding-ada-002\"\n",
"\n",
"key = find_secret(\n",
" \"openai-api-key\"\n",
Expand Down

0 comments on commit fc5d699

Please sign in to comment.