Credit to: Roie Schwaber-Cohen from Pinecone. Please check out this beautiful article: Building a Multi-User Chatbot with Langchain and Pinecone in Next.JS
- Pinecone
- Supabase
- clerk
git clone https://github.com/tarikrazine/multi-User-Chatbot-langChain-pinecone.git
cd multi-User-Chatbot-langChain-pinecone
yarn
mv .env.example .env
- Assuming you already have a Pinecone Account, you will need the index name of your vectors data and your Pinecone API and Pinecone Environment.
- Create an account
- Create a new project
- Add a new table named "conversations" with the following columns: user_id (type: text), entry (type: text), speaker (type: text)
- Create an account
- Create a new project
- To properly use Supabase and Clerk, this article will help you understand how these two services work together: NextJS + Supabase + Clerk: Build a simple todo app with multifactor authentication
OPENAI_API_KEY=
PINECONE_API_KEY=
PINECONE_ENVIRONMENT=
PINECONE_INDEX_NAME=
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_KEY=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
yarn dev
Soon