From bfe2d28c96563625245854fcd8d9cea7a3e7c650 Mon Sep 17 00:00:00 2001 From: Ryoma Nagata Date: Wed, 2 Apr 2025 11:31:43 +0900 Subject: [PATCH 1/2] Update README.MD collect test statemant error : Failed to execute query. Error: Procedure or function 'get_embedding' expects parameter '@error', which was not supplied. --- README.MD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index fb702b7..a9c9c21 100644 --- a/README.MD +++ b/README.MD @@ -89,8 +89,10 @@ To test that database deployment was successful and that OpenAI connection is wo ```sql declare @v vector(1536) -exec [web].[get_embedding] 'just a sample text', @v output -select @v +declare @e varchar(max) +exec [web].[get_embedding] 'just a sample text', @v output ,@e output +select @v,@e + ``` if no error are returned, you'll get a vector as a result. From b109ab9cf7ba5164cd75d421b967bf4ef83422fe Mon Sep 17 00:00:00 2001 From: Ryoma Nagata Date: Wed, 2 Apr 2025 19:16:59 +0900 Subject: [PATCH 2/2] Update README.MD --- README.MD | 1 + 1 file changed, 1 insertion(+) diff --git a/README.MD b/README.MD index a9c9c21..c1c0064 100644 --- a/README.MD +++ b/README.MD @@ -122,6 +122,7 @@ The easiest way to deploy the full-stack application is to fork the repository a Make sure you give the user thay you are using to connect to the database the permission to run the needed stored procedures: ```sql +GRANT SELECT ON SCHEMA::[dbo] TO [] GRANT EXECUTE ON SCHEMA::[web] TO [] GRANT EXECUTE ANY EXTERNAL ENDPOINT TO []; GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::[] TO [];