Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b3189cf

Browse files
Adding missing part in the URL to get it working. Also providing some description about what a deployment-id is.
1 parent 44d3b45 commit b3189cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎vector-embeddings/03-find-similar-articles.sql‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ go
1111

1212
/*
1313
Get the embeddings for the input text by calling the OpenAI API
14+
Note: <deployment-id> needs to be replaced with the deployment name of your embedding model in Azure OpenAI
1415
*/
1516
declare @inputText nvarchar(max) = 'the foundation series by isaac asimov';
1617
declare @retval int, @response nvarchar(max);
1718
declare @payload nvarchar(max) = json_object('input': @inputText);
1819
exec @retval = sp_invoke_external_rest_endpoint
19-
@url = 'https://<your-app-name>.openai.azure.com/openai/deployments/<deployment-id>?api-version=2023年03月15日-preview',
20+
@url = 'https://<your-app-name>.openai.azure.com/openai/deployments/<deployment-id>/embeddings?api-version=2023年03月15日-preview',
2021
@method = 'POST',
2122
@credential = [https://<your-app-name>.openai.azure.com],
2223
@payload = @payload,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /