Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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!