mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
docs(ai): update example code to use Transformers.js v3 (#39915)
More info: https://github.com/huggingface/transformers.js/issues/1291 Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
This commit is contained in:
1 parent
892d2aa3a7
commit
26a2cb1263
1 file changed
+1
-1
@@ -72,7 +72,7 @@ In general, embeddings with fewer dimensions perform best. See our [analysis on
|
||||
In this example we'll generate a vector using Transformers.js, then store it in the database using the Supabase JavaScript client.
|
||||
|
||||
```js
|
||||
import { pipeline } from '@xenova/transformers'
|
||||
import { pipeline } from '@huggingface/transformers'
|
||||
const generateEmbedding = await pipeline('feature-extraction', 'Supabase/gte-small')
|
||||
|
||||
const title = 'First post!'
|
||||
|
||||
Reference in new issue
Block a user