File tree 1 file changed +6
-3
lines changed
advocacy_docs/edb-postgres-ai/ai-accelerator/preparers/examples
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,15 @@ The AI accelerator data preparation pipeline validates the options at creation t
67
67
68
68
``` sql
69
69
-- 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' );
71
71
```
72
72
73
73
``` sql
74
74
-- 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
+ );
76
79
__OUTPUT__
77
80
ERROR: The requested adapter is not supported by the model provider: bert_local
78
81
```
@@ -86,7 +89,7 @@ SELECT aidb.create_table_preparer(
86
89
source_data_column => ' content' ,
87
90
destination_table => ' summarized_data__1952' ,
88
91
destination_data_column => ' summaries' ,
89
- options => ' {"model": "bert_model__1952 "}' ::JSONB -- Incompatible model
92
+ options => ' {"model": "bert_model "}' ::JSONB -- Incompatible model
90
93
);
91
94
__OUTPUT__
92
95
ERROR: Failed to create preparer: The requested adapter is not supported by the model provider: bert_local
You can’t perform that action at this time.
0 commit comments