Skip to content

Commit 2e39114

Browse files
chunking syntax fix
1 parent 3e400b3 commit 2e39114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/t-sql/functions/ai-generate-embeddings-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ SELECT
130130
FROM
131131
myTable
132132
CROSS APPLY
133-
AI_GENERATE_CHUNKS(source = large_text, chunk_type = N'FIXED' , chunk_size = 10) c;
133+
AI_GENERATE_CHUNKS(source = large_text, chunk_type = FIXED , chunk_size = 10) c;
134134
```
135135

136136
### C. Create embeddings with a table update
@@ -214,7 +214,7 @@ INSERT INTO text_embeddings (chunked_text, vector_embeddings)
214214
SELECT c.chunk, AI_GENERATE_EMBEDDINGS(c.chunk USE MODEL MyAzureOpenAiModel)
215215
FROM textchunk t
216216
CROSS APPLY
217-
AI_GENERATE_CHUNKS(source = t.text_to_chunk, chunk_type = N'FIXED', chunk_size = 100) c;
217+
AI_GENERATE_CHUNKS(source = t.text_to_chunk, chunk_type = FIXED, chunk_size = 100) c;
218218

219219
-- View the results
220220
SELECT * FROM text_embeddings;

0 commit comments

Comments
 (0)