Skip to content

David-Prelinger/next-embeddings

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Project Idea

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.

Future Goal

I am thinking about adding more AI tools like OpenAI functions or text-to-speech. Let's see...

Getting Started

  1. First install all dependencies:
npm install
  1. Rename the .env.local.example file to .env.local and add the correct credentials.

  2. Run the development server:

npm run dev

Open http://localhost:3000/chat/chat with your browser to see the result.

Deploy on Vercel

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.