Skip to content

Commit fe8a55d

Browse files
noahbaculidjw-m
authored andcommitted
fix outdated syntax for failure example
1 parent 9646ef4 commit fe8a55d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

advocacy_docs/edb-postgres-ai/ai-accelerator/preparers/examples/summarize_text.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ The AI accelerator data preparation pipeline validates the options at creation t
6767

6868
```sql
6969
-- This model does not support the language adapter
70-
SELECT aidb.create_model('bert_model__1952', 'bert_local');
70+
SELECT aidb.create_model('bert_model', 'bert_local');
7171
```
7272

7373
```sql
7474
-- Single execution fails
75-
SELECT * FROM aidb.summarize_text('bert_model__1952', 'Hello world');
75+
SELECT * FROM aidb.summarize_text(
76+
input => 'Hello world',
77+
options => '{"model": "bert_model"}'
78+
);
7679
__OUTPUT__
7780
ERROR: The requested adapter is not supported by the model provider: bert_local
7881
```
@@ -86,7 +89,7 @@ SELECT aidb.create_table_preparer(
8689
source_data_column => 'content',
8790
destination_table => 'summarized_data__1952',
8891
destination_data_column => 'summaries',
89-
options => '{"model": "bert_model__1952"}'::JSONB -- Incompatible model
92+
options => '{"model": "bert_model"}'::JSONB -- Incompatible model
9093
);
9194
__OUTPUT__
9295
ERROR: Failed to create preparer: The requested adapter is not supported by the model provider: bert_local

0 commit comments

Comments
 (0)