Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zahidkhawaja/langchain-chat-nextjs
Next.js frontend for LangChain Chat.
https://github.com/zahidkhawaja/langchain-chat-nextjs
javascript langchain nextjs openai
Last synced: about 9 hours ago
JSON representation
Next.js frontend for LangChain Chat.
- Host: GitHub
- URL: https://github.com/zahidkhawaja/langchain-chat-nextjs
- Owner: zahidkhawaja
- License: mit
- Created: 2023-01-27T21:45:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T05:47:06.000Z (almost 2 years ago)
- Last Synced: 2024-12-16T04:04:19.807Z (7 days ago)
- Topics: javascript, langchain, nextjs, openai
- Language: JavaScript
- Homepage: https://blog.langchain.dev/langchain-chat/
- Size: 122 KB
- Stars: 993
- Watchers: 7
- Forks: 274
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-langchain-zh - Langchain Chat - chat-nextjs?style=social): 另一个用于 LangChain 聊天的 Next.js 前端. (开源项目 / 其他聊天机器人)
- awesome-langchain - Langchain Chat - chat-nextjs?style=social) (Open Source Projects / Other / Chatbots)
README
## LangChain Chat - Next.js
## Getting started 🚀
1. Clone this repo!
2. Install dependencies: `npm install`
3. Run the development server: `npm run dev`Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/chat](http://localhost:3000/api/chat). This endpoint can be edited in `pages/api/chat.js`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.## 🦜🔗 Powered by LangChain
- [LangChain](https://github.com/hwchase17/langchain/) backend implementation can be found [here](https://github.com/hwchase17/chat-langchain).
- Read more on the [LangChain blog](https://blog.langchain.dev/langchain-chat/).
- Deployed at [chat.langchain.dev](https://chat.langchain.dev/). Feel free to reach out to [Zahid](https://twitter.com/chillzaza_) if you need anything!