LangChain UI
Note: This repository is currently unmaintained. A new project with more detailed access to LLM-powered Agents is underway. For more, visit the Superagent repository.
About the Project
LangChain UI is a no-code, open-source toolkit designed to help users create and host chatbots. Built on top of LangChain, it offers a user-friendly interface that requires no programming skills to use.
Key Features
- Custom Chatbots: Users can create chatbots similar to ChatGPT without any coding.
- External Integrations: Chatbots can be enhanced with context from external data sources, ChatGPT plugins, and prompts.
- API Endpoints: Each chatbot created has its own dedicated API endpoint.
- Database Compatibility: Users can integrate their own databases.
- Authentication Options: The platform supports custom authentication providers, with GitHub as the default.
- Usage Management: It provides the ability to manage usage quotas.
- Embedding: These chatbots can be embedded into any website or application.
- Themes: Users can apply different themes to the chatbots for a customized appearance.
Roadmap
The development roadmap includes completed and planned features:
-
Completed:
- Custom databases and authentication providers
- Chatbot creation
- Prompt templates
-
Planned:
- Specific API endpoints for chatbots
- Integration with external data sources
- ChatGPT plugins
- Customizable themes for chatbots
- Embedding options
Technology Stack
LangChain UI leverages several technologies:
- Next.js: Used for building fast and user-friendly web interfaces.
- Chakra UI: Provides accessible and customizable UI components.
- Prisma: A next-generation ORM for fetching data.
- NextAuth: A solution for authentication.
The project is built using NextJS 13's appDir
for streamlined development.
Getting Started
LangChain UI API
To interact with the LangChain UI, users need to run the LangChain UI API backend which has migrated from a TypeScript to Python-based solution.
Installation Guidelines
- Set Up the API: Begin by setting up the LangChain UI API.
- Clone the Repository: Clone or fork the repository via GitHub.
git clone https://github.com/homanp/langchain-ui.git
- Navigate to the Project Folder:
cd langchain-ui
- Install Dependencies: Use npm to install required packages.
npm install
- Configure Environment: Duplicate the
.env.example
file to.env
for environment variables. - Run the Project:
npm run dev
- Code Quality: Use the linter to maintain code quality.
npm run lint
- Build the Project:
npm run build
Contributions
LangChain UI aims to simplify the creation and deployment of LLM applications in the cloud. Contributions in the form of new features, bug fixes, or infrastructure improvements are welcome. Detailed contribution guidelines are available in the CONTRIBUTING.md.
LangChain UI offers an accessible way for users to leverage AI chatbot technology without requiring extensive technical knowledge. Through the use of simple interfaces and customizable options, it empowers users to create sophisticated chat solutions with ease.