#190 · Primary category: AI Chatbots

langchain-chat-nextjs

javascript langchain nextjs openai

Next.js frontend for LangChain Chat.

Project last updated:03/16/23

GitHub Stars

1.0K

Forks

252

Contributors

1

License

MIT

Why we included this project

This repo is the actual Next.js front end that powers the original LangChain Chat demo, which makes it a useful reference for how a real conversational UI gets wired up rather than just a toy example. The key path is short: a browser page calls a Next.js API route, and that route forwards to the companion chat-langchain backend, so you can trace the whole request in a couple of files. If you already know React and want a quick, readable starting point for a chat interface without pulling in a heavier framework, the structure is easy to follow. You'll likely swap in your own chain logic, but as a skeleton for how the pieces connect, it does what it needs to.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category