This is a Next.js project bootstrapped with create-next-app
.
As a learning project, I wanted to write a chat app with context based knowledge. Therefore I embedded some documents via the OpenAI API and saved the vectors in a weaviate database. Then, in the chat app, the user can write questions which are answered based on the data available in the vectorstore.
Note: In this latest commit I disabled the embedding, so it won't know special knowledge. I introduced Brad Chad though. Try to chat with him.
A working example can be seen here. You have to ask me for the password though.
I am thinking about adding more AI tools like OpenAI functions or text-to-speech. Let's see...
- First install all dependencies:
npm install
-
Rename the .env.local.example file to .env.local and add the correct credentials.
-
Run the development server:
npm run dev
Open http://localhost:3000/chat/chat with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.