Skip to content

Commit 2a99785

Browse files
author
Davide Mauri
committed
rename and cleanup for new improvements in quickstart script
1 parent 090a3ec commit 2a99785

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

DiskANN/diskannnew-improvements-quickstart-azure-sql renamed to DiskANN/diskann-quickstart-azure-sql-improvements.sql

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
-- ============================================================================
33
-- DiskANN Vector Index Search Quickstart with Azure OpenAI Embeddings
44
-- Demonstrates New Improvements : Index creation, DML support, Iterative filtering, ANN vs KNN
5-
--Notes:
6-
-- This script is intended for demos, docs, and samples.
7-
-- Do not hard‑code secrets in production.
5+
-- Notes:
6+
-- This script is intended for demos, docs, and samples.
7+
-- Do not hard‑code secrets in production.
88

9-
--Run this quick check to see if your region has the new version:
9+
-- Run this quick check to see if your region has the new version:
1010
-- Check if the new DMV exists
1111
SELECT OBJECT_ID('sys.dm_db_vector_indexes') AS new_dmv_available;
1212

13-
--If this returns NULL, your region hasn't received the deployment yet
14-
--If it returns a number, you're good to go!
15-
13+
-- If this returns NULL, your region hasn't received the deployment yet
14+
-- If it returns a number, you're good to go!
1615

1716
-- ============================================================================
1817
-- STEP 1: Setup Database Credential and External Model
@@ -28,7 +27,6 @@ GO
2827
-- Create database scoped credential with Azure OpenAI endpoint
2928
-- Replace <yourendpoint> with your Azure OpenAI endpoint name
3029
-- Replace <YourKey> with your Azure OpenAI API key
31-
3230
CREATE DATABASE SCOPED CREDENTIAL [https://<yourendpoint>.openai.azure.com/]
3331
WITH IDENTITY = 'HTTPEndpointHeaders',
3432
SECRET = '{"api-key":"<YourKey>"}';
@@ -39,7 +37,6 @@ GO
3937
DROP EXTERNAL MODEL IF EXISTS AIEmbeddings;
4038
GO
4139

42-
4340
-- Replace MODEL with the choice of your embedding model and LOCATION with the URL from the Azure AI Foundry
4441
CREATE EXTERNAL MODEL AIEmbeddings
4542
WITH (
@@ -230,8 +227,6 @@ ORDER BY s.distance;
230227
-- This proves INSERT is immediately reflected in search results
231228
GO
232229

233-
234-
235230
-- NOW UPDATE: Change article 101 to be about something completely different
236231
PRINT 'UPDATING: Changing article 101 to be about quantum computing...';
237232
DECLARE @new_embedding VECTOR(1536) = AI_GENERATE_EMBEDDINGS(

0 commit comments

Comments
 (0)