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:
SheikhandChris Chinchilla authored and GitHub committed 2026-01-20 22:31:13 +00:00
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!'