An open API service indexing awesome lists of open source software.

https://github.com/hupe1980/nextjs-ai-chatbot

🤖 Next.js AI Chatbot - Chat with any website
https://github.com/hupe1980/nextjs-ai-chatbot

lancedb langchain nextjs openai vercel-ai-sdk

Last synced: 6 months ago
JSON representation

🤖 Next.js AI Chatbot - Chat with any website

Awesome Lists containing this project

README

          

# 🤖 nextjs-ai-chatbot
> Next.js AI Chatbot - Chat with any website

This is a [Next.js](https://nextjs.org/) project that implements an AI chatbot with website context retrieved from a vector store.

## Getting Started

First, clone the repository:

```bash
git clone https://github.com/hupe1980/nextjs-ai-chatbot.git
```

Then, navigate to the project directory:

```bash
cd nextjs-ai-chatbot
```

Install dependencies:

```bash
npm install
```

Rename `.env.example` to `.env.local`, and fill out `OPENAI_API_KEY` with your OpenAI API key.

To run the development server:

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## References

To learn more about Langchain, Next.js, Vercel AI SDK and LanceDB, take a look at the following resources:

- [LangChain](https://js.langchain.com/)
- [Next.js Documentation](https://nextjs.org/docs)
- [Vercel AI SDK](https://vercel.com/blog/introducing-the-vercel-ai-sdk)
- [LanceDB](https://lancedb.com/)

## License

This project is licensed under the [MIT License](LICENSE).