Image Search in Python with OpenAI CLIP

Supabase June 13, 2023
Video Thumbnail

About

Supabase is the Postgres development platform. Create a backend in less than 2 minutes. Start your project with a Postgres Database, Authentication, instant APIs, & realtime subscriptions. Whether you're new to development or looking to migrate existing workloads, you'll find Supabase tutorials & tips that will make your app development easier. From database migrations to query optimizations, we cover everything you need to build quickly with Supabase. Supabase provides a full Postgres database for every project with pgvector, database backups, extensions, & more. Add & manage email & password, passwordless, OAuth, & mobile logins to your project through a suite of identity providers & APIs. Kickstart your next project with templates & use our Instant APIs that do the hard work for you. We introspect your database to provide APIs instantly. No more repetitive CRUD endpoints - build your app without ever leaving the dashboard! Build in a weekend, scale to millions.

Video Description

Thor participated in the Singapore OSS Meetup, where he showed how to implement image search in Python with the OpenAI CLIP Model[0] and Supabase Vector[1]. - Find the code: https://github.com/supabase/supabase/tree/master/examples/ai/image_search#image-search-with-supabase-vector - Find the docs: https://supabase.com/docs/guides/ai/examples/image-search-openai-clip - Learn about vectors and embeddings: https://supabase.com/blog/openai-embeddings-postgres-vector 🎙️ Presented by Thor Schaeff (@thorwebdev https://go.thor.bio/x) ## Chapters 00:00 How do embeddings work? 01:44 Intro to the OpenAI CLIP model. 02:25 Embedding images and text into the same vector space. 02:54 Running Supabase Vector locally. 04:05 Handling embeddings in Python with vecs. 04:25 Storing image vectors in Postgres 06:05 Inspecting vector data in the Supabase Studio 06:54 Perform image search 07:55 Fun Demo Time \o/ ## Credits Thank you to https://engineers.sg/ for recording this talk! [0] https://github.com/openai/CLIP [1] https://supabase.com/vector

You May Also Like

Upgrade Your Tablet Game

AI-recommended products based on this video

Loading...
Metapen Air 8 Apple Pencil for iPad 2018-2025, 20H Battry Life, 2Min Fast Charging, Palm Rejection, Stylus Pen for iPad 11/10/9/8/7/6th, iPad Pro 12.9/11/13“M4, iPad Air 3/4/5/6/M2/M3, iPad mini 5/6

Metapen Air 8 Apple Pencil for iPad 2018-2025, 20H Battry Life, 2Min Fast Charging, Palm Rejection, Stylus Pen for iPad 11/10/9/8/7/6th, iPad Pro 12.9/11/13“M4, iPad Air 3/4/5/6/M2/M3, iPad mini 5/6

(1,985)
$14.22
FREE delivery Tue, Sep 9 on your first order
1K+ bought in past month
Loading...
Invisible Ink Pen for Kids, Toys for Girls Boys, Party Favors for Kids,Secret Message Magic Markers for Boys Girls Fun Activity, Gift for 6-12 Year Old Girls Boys Birthday Christmas (8PCS)
Best Seller

Invisible Ink Pen for Kids, Toys for Girls Boys, Party Favors for Kids,Secret Message Magic Markers for Boys Girls Fun Activity, Gift for 6-12 Year Old Girls Boys Birthday Christmas (8PCS)

(1,050)
$16.99
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Dan&Darci Fairy Magic Potion Kit for Kids - Gifts for Girls - 6 7 8 9 10 Year Old Girl Gift - Christmas Ideas - Toys 8-10 7-8 - Arts and Crafts for Kid Ages 6-8 Years - Magical Workshop Craft Kits
Best Seller

Dan&Darci Fairy Magic Potion Kit for Kids - Gifts for Girls - 6 7 8 9 10 Year Old Girl Gift - Christmas Ideas - Toys 8-10 7-8 - Arts and Crafts for Kid Ages 6-8 Years - Magical Workshop Craft Kits

(156)
$29.99
FREE delivery Sat, Jun 14 on your first order
700+ bought in past month
Loading...
MAGIC JOHN 2 Pack for Samsung Galaxy S25 Ultra Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

MAGIC JOHN 2 Pack for Samsung Galaxy S25 Ultra Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

(68)
$27.99$20.97
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
MAGIC JOHN 2 Pack for Samsung Galaxy S25+ Plus 6.7inch Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

MAGIC JOHN 2 Pack for Samsung Galaxy S25+ Plus 6.7inch Privacy Tempered Glass Screen Protector, Bubble Free, Easy Installation, Auto Dust-Elimination

(18)
$27.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

(11,639)
$23.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
iPhone 16e/16/15 Pro Max Charger, 2-Pack 20W Type C Fast Wall Charger Plug Power Adapter, USB C Charger Block for iPhone 16/16e/16 Pro/16 Pro Max/15/15 Plus/15 Pro Max, iPad, with 6FT USB-C to C Cable

iPhone 16e/16/15 Pro Max Charger, 2-Pack 20W Type C Fast Wall Charger Plug Power Adapter, USB C Charger Block for iPhone 16/16e/16 Pro/16 Pro Max/15/15 Plus/15 Pro Max, iPad, with 6FT USB-C to C Cable

(4,666)
$19.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
for iPhone 16/15 Pro Max Charger, 20W Fast Charging USB C Charger Block Wall Power Adapter + 6FT USB-C Cable for iPhone 16 Pro Max Plus 16e, iPhone 15 Pro Max, iPad Pro 12.9/11/13 inch, Air 4/5

for iPhone 16/15 Pro Max Charger, 20W Fast Charging USB C Charger Block Wall Power Adapter + 6FT USB-C Cable for iPhone 16 Pro Max Plus 16e, iPhone 15 Pro Max, iPad Pro 12.9/11/13 inch, Air 4/5

(3,858)
$19.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
SanDisk 64GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXU-064G-GN4IN

SanDisk 64GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXU-064G-GN4IN

(71,074)
$21.99$16.59
FREE delivery Sun, Aug 10 on your first order
500+ bought in past month
Loading...
SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN
Best Seller

SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN

(71,074)
$29.99$26.61
FREE delivery Sun, Aug 10 on your first order
4K+ bought in past month
Loading...
SanDisk 4TB Extreme Portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware - External Solid State Drive - SDSSDE61-4T00-G25

SanDisk 4TB Extreme Portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware - External Solid State Drive - SDSSDE61-4T00-G25

(77,138)
$379.99
FREE delivery Tue, Jun 17
100+ bought in past month
Loading...
Bose QuietComfort Wireless Noise Cancelling Headphones, Bluetooth Over Ear Headphones with Up to 24 Hours of Battery Life, Moonlight Grey - Limited Edition

Bose QuietComfort Wireless Noise Cancelling Headphones, Bluetooth Over Ear Headphones with Up to 24 Hours of Battery Life, Moonlight Grey - Limited Edition

(12,251)
$269.00
FREE delivery Tue, Oct 14