Skip to content

Commit 5626365

Browse files
authored
Added example for embeddings with new prompt system (#1372)
1 parent a5ee9d7 commit 5626365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgml-extension/examples/transformers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
SELECT pgml.embed('intfloat/e5-small', 'hi mom');
66
SELECT pgml.embed('intfloat/e5-small', 'hi mom', '{"device": "cuda"}');
77
SELECT pgml.embed('intfloat/e5-small', 'hi mom', '{"device": "cpu"}');
8-
98
SELECT pgml.embed('hkunlp/instructor-xl', 'hi mom', '{"instruction": "Encode it with love"}');
9+
SELECT pgml.embed('mixedbread-ai/mxbai-embed-large-v1', 'test', '{"prompt": "test prompt: "}');
1010

1111
SELECT pgml.transform_stream(
1212
task => '{

0 commit comments

Comments
 (0)