Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/t-sql/functions/ai-generate-chunks-transact-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To change the compatibility level of a database, refer to [View or change the co

```syntaxsql
AI_GENERATE_CHUNKS (source = text_expression
, chunk_type = FIXED
, chunk_type = 'FIXED'
[ , chunk_size = numeric_expression ]
[ , overlap = numeric_expression ]
[ , enable_chunk_set_id = numeric_expression ]
Expand Down Expand Up @@ -125,7 +125,7 @@ GO
SELECT c.*
FROM textchunk t
CROSS APPLY
AI_GENERATE_CHUNKS(source = text_to_chunk, chunk_type = FIXED, chunk_size = 50, enable_chunk_set_id = 1) c
AI_GENERATE_CHUNKS(source = text_to_chunk, chunk_type = 'FIXED', chunk_size = 50, enable_chunk_set_id = 1) c
```

| chunk | chunk_order | chunk_offset | chunk_length | chunk_set_id |
Expand Down Expand Up @@ -158,7 +158,7 @@ SELECT
FROM
docs_table t
CROSS APPLY
AI_GENERATE_CHUNKS(source = text_column, chunk_type = FIXED, chunk_size = 100) c
AI_GENERATE_CHUNKS(source = text_column, chunk_type = 'FIXED', chunk_size = 100) c
```

### B. Chunk a text column with overlap
Expand All @@ -171,7 +171,7 @@ SELECT
FROM
docs_table t
CROSS APPLY
AI_GENERATE_CHUNKS(source = text_column, chunk_type = FIXED, chunk_size = 100, overlap = 10) c
AI_GENERATE_CHUNKS(source = text_column, chunk_type = 'FIXED', chunk_size = 100, overlap = 10) c
```

### C. Use AI_GENERATE_EMBEDDINGS with AI_GENERATE_CHUNKS
Expand All @@ -187,7 +187,7 @@ SELECT
FROM
table_with_text t
CROSS APPLY
AI_GENERATE_CHUNKS(source = t.text_to_chunk, chunk_type = FIXED, chunk_size = 100) c
AI_GENERATE_CHUNKS(source = t.text_to_chunk, chunk_type = 'FIXED', chunk_size = 100) c
```

## Related content
Expand Down