- AIPressRoom
- Posts
- Build a Chatbot with Next.js, LangChain, OpenAI, and Supabase Vector
Build a Chatbot with Next.js, LangChain, OpenAI, and Supabase Vector
In this demo[0] we showcase how to built an #AI chatbot using Next.js, LangChain with #OpenAI and Supabase Vector[1], Supabase Auth, and Supabase Realtime!
This demo is a fork of the Pinecone chatbot demo[2], the details about its architecture and workings can be found in their blogpost[3].
[0] https://github.com/supabase-community/langchain-chatbot-demo[1] https://js.langchain.com/docs/modules/indexes/vector_stores/integrations/supabase[2] https://github.com/pinecone-io/chatbot-demo[3] https://www.pinecone.io/learn/javascript-chatbot/
## Chapters00:00 Intro00:08 Demo preview00:52 Demo architecture03:06 LangChain & Supabase Vector03:27 Clone the repo and run it locally04:35 Enable RLS for LangChain06:07 Start Supabase locally06:30 Crawl a website and store embeddings09:00 Inspecting the crawler code11:02 Testing email signup verification locally with Inbucket11:57 Chatbot demo12:55 Inspecting the chat code16:16 Using Supabase Realtime Broadcast to stream responses
The post Build a Chatbot with Next.js, LangChain, OpenAI, and Supabase Vector appeared first on AIPressRoom.