In-Browser Semantic AI Search - free and open source!
Supabase Supabase
33K subscribers
3,754 views
132

 Published On Aug 29, 2024

Use pgvector in ‪@electricsql‬ PGlite and combine it with ‪@HuggingFace‬ Transformers.js for a fully local, in-browser semantic search functionality!

- Read the blog: https://supabase.link/semantic-search...
- Find the code: https://supabase.link/pglite-semantic...

CHAPTERS:
00:00 Intro
00:06 Semantic Search Demo
01:23 How semantic search works
03:29 Code Deep Dive
03:55 Installing the dependencies
04:05 Vector embedding generation with Transformers.js
04:45 Download supabase/gte-small from Huggingface
05:47 Generate embeddings in a web worker
07:20 Perform inner product search with pgvector
08:40 Introduction to PGlite and postgres.new
09:25 Use PGlite in the browser with indexedDB
10:18 Set up and seed the PGlite database
10:57 Enable pgvector in PGlite

💻 Videos to watch next:
▶    • Mozilla Llamafile in Supabase Edge Fu...  
▶    • Realtime AI in the Browser  
▶    • Build AI Apps FREE  - A Free Local AI...  

👇 Learn more about Supabase 👇

🕸 Website: https://supabase.com/
🏁 Get started: https://app.supabase.com/
📄 Docs: https://supabase.com/docs

🔔 Subscribe for more tutorials and feature updates from Supabase:    / @supabase  

📱 Connect with Us:
🐙 Github: https://www.github.com/supabase
💬 Discord: https://discord.supabase.com/
🐦 Twitter:   / supabase  
▶ Instagram (follow for memes):   / supabasecom  


ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.

Build in a weekend, scale to millions.

#Supabase #AppDevelopment #RealtimeApps #DeveloperTools #AI #huggingface #transformers #search

show more

Share/Embed