DEV Community

Cover image for Implementing vector search with OpenAI, Next.js, and Supabase

Implementing vector search with OpenAI, Next.js, and Supabase

Megan Lee on March 05, 2024

Written by Peter Ekene Eze✏️ In this post, we'll build vector search functionality into a Next.js-powered site using a Supabase vector database fo...
Collapse
 
serverlesskiy profile image
Server Serverlesskiy

The demo site is not working. And following the tutorial gives an error.
{
code: '42804',
details: 'Returned type integer does not match expected type smallint in column 7.',
hint: null,
message: 'structure of query does not match function result type'

TypeError: Cannot read properties of undefined (reading 'map')
at i (page-ba979d37467ce462.js:1:1962)
at rb (fd9d1056-516b58327fb05db5.js:1:40329)
at lA (fd9d1056-516b58327fb05db5.js:1:59077)
at iU (fd9d1056-516b58327fb05db5.js:1:117013)
at o2 (fd9d1056-516b58327fb05db5.js:1:94369)
at fd9d1056-516b58327fb05db5.js:1:94191
at o1 (fd9d1056-516b58327fb05db5.js:1:94198)
at oV (fd9d1056-516b58327fb05db5.js:1:91685)
at oB (fd9d1056-516b58327fb05db5.js:1:91110)
at MessagePort.w (938-f464a3b2301c5ba9.js:1:99165)
window.console.error @ 938-f464a3b2301c5ba9.js:1

Collapse
 
vince_bighire_tools profile image
Vince Fulco (It / It's)

weaviate is a blast and has a great support system (website, tutorials, YT vids).