10000 Merge pull request #1 from joncoelloaccess/find-similar-articles-miss… · lohithgn/azure-sql-db-openai@1b1cb5b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b1cb5b

Browse files
authored
Merge pull request Azure-Samples#1 from joncoelloaccess/find-similar-articles-missing-embeddings-in-url
the url is missing /embeddings
2 parents c912cb0 + d9d49a2 commit 1b1cb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare @inputText nvarchar(max) = 'the foundation series by isaac asimov';
1616
declare @retval int, @response nvarchar(max);
1717
declare @payload nvarchar(max) = json_object('input': @inputText);
1818
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',
19+
@url = 'https://<your-app-name>.openai.azure.com/openai/deployments/<deployment-id>/embeddings?api-version=2023-03-15-preview',
2020
@method = 'POST',
2121
@credential = [https://<your-app-name>.openai.azure.com],
2222
@payload = @payload,

0 commit comments

Comments
 (0)
0