Skip to content

Commit 2889d14

Browse files
Merge pull request #34872 from WilliamDAssafMSFT/20250801-AI_GENERATE_EMBEDDINGS-typo
20250801 fix typo in AI_GENERATE_EMBEDDINGS sample
2 parents 740fd26 + d284f32 commit 2889d14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/relational-databases/vectors/vectors-sql-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ In the SQL Database Engine, k-NN searches can be performed using the [VECTOR_DIS
8282
The following example shows how to do k-NN to return the top 10 most similar vectors stored in the `content_vector` table to the given query vector `@qv`.
8383

8484
```sql
85-
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDING(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
85+
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDINGS(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
8686
SELECT TOP (10) id, VECTOR_DISTANCE('cosine', @qv, [content_vector]) AS distance, title
8787
FROM [dbo].[wikipedia_articles_embeddings]
8888
ORDER BY distance
@@ -112,7 +112,7 @@ In the SQL Database engine, vector indexes are based on the [DiskANN](https://ww
112112
An approximate nearest neighbors algorithm search can be done first creating a vector index using the [CREATE VECTOR INDEX](../../t-sql/statements/create-vector-index-transact-sql.md) T-SQL command and then using [VECTOR_SEARCH](../../t-sql/functions/vector-search-transact-sql.md) T-SQL function to run the approximate search.
113113

114114
```sql
115-
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDING(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
115+
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDINGS(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
116116
SELECT
117117
t.id, s.distance, t.title
118118
FROM

docs/t-sql/functions/vector-search-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ORDER BY
122122
The following example finds the 10 most similar articles to the `Pink Floyd music style` in the `wikipedia_articles_embeddings` table.
123123

124124
```sql
125-
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDING(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
125+
DECLARE @qv VECTOR(1536) = AI_GENERATE_EMBEDDINGS(N'Pink Floyd music style' USE MODEL Ada2Embeddings);
126126
SELECT
127127
t.id, s.distance, t.title
128128
FROM

0 commit comments

Comments
 (0)