Skip to content

This repo demonstrates how to build interactive AI agent interfaces using Chainlit. It combines LangChain, OpenAI/Gemini, and custom tools to enable seamless conversations and fast deployment of agent workflows with Python.

Notifications You must be signed in to change notification settings

waheed444/explore_chainlit

Repository files navigation

Welcome to Chainlit Agent-Powered UI🚀

GitHub stars Python Version

Build interactive UIs for your AI agents with the power of Chainlit!

Table of Contents

Description

This project demonstrates how to build interactive and user-friendly interfaces for your AI agents using Chainlit. It leverages Chainlit's robust framework to create seamless conversational experiences, integrating seamlessly with powerful tools like LangChain, OpenAI, Gemini, and your custom Python logic. Perfect for rapid prototyping and deployment of sophisticated agent workflows.

Features

  • 🧠 Agent-based backend: Built with Python for flexibility and extensibility.
  • 💬 Real-time conversational interface: Powered by Chainlit for a smooth user experience.
  • ⚙️ Tool Integrations: Seamlessly integrates with LangChain, OpenAI, and Gemini APIs.
  • 📂 Modular Architecture: Easy to customize and scale to meet your needs.
  • 🧪 Local Development with Hot Reload (uv): Rapid iteration and development using uv.
  • 🧱 VS Code Compatibility: Seamless integration with your preferred IDE.
  • 📈 Extensible: Easily add advanced features like multi-agent orchestration, memory management, and custom tools.

Tools-Required

To run and develop this Chainlit-based agent UI, make sure the following tools are installed on your system:

Tool Description Install Command / Link
Python 3.10+ Core programming language used in this project Download Python
Chainlit Framework to build conversational UIs for LLMs uv pip install chainlit or pip install chainlit
uv (optional) Fast Python package manager (drop-in replacement for pip+virtualenv) pip install uv or see https://github.com/astral-sh/uv
VS Code Recommended code editor for development Download VS Code
Git Version control tool to clone and manage your project Install Git
OpenAI / Gemini API Keys For accessing LLM models via LangChain or directly OpenAI / Google AI Studio

Installation

Before you begin, ensure you have Python 3.10 or higher installed. We recommend using uv for faster dependency installation and hot reloading, but pip is also supported.

  1. Clone the repository:
git clone [![License](https://img.shields.io/badge/License-MIT-blue.svg)https://github.com/waheed444/explore_chainlit](https://opensource.org/licenses/MIT)
.git
cd chainlit-agent-ui
  1. Install Chainlit:

    • Using uv (recommended):

      uv add chainlit
    • Using pip:

      pip install chainlit

Usage

To run the application locally:

chainlit run main.py -w   # For uv users : uv run chainlit run main.py -w 

The -w flag enables hot reloading, allowing you to see changes reflected instantly without restarting the server.

Once the application is running, open your web browser and navigate to http://localhost:8000 to interact with your agent.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions to improve this project! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-name
  3. Make your changes and ensure they adhere to the project's coding style and best practices.
  4. Commit your changes: git commit -m "Add feature"
  5. Push to the branch: git push origin feature-name
  6. Submit a pull request with a clear description of your changes and their benefits. If you find any issues or want to improve this project, feel free to open a [GitHub issue](Licensehttps://github.com/waheed444/explore_chainlit /issues) or submit a pull request.

This repo is only for learning and exploring new things, feel free to fork it, explore, or give suggestions!

Star ⭐ the repo if it helps you!


🙌 Let's Connect

LinkedIn GitHub Gmail


About

This repo demonstrates how to build interactive AI agent interfaces using Chainlit. It combines LangChain, OpenAI/Gemini, and custom tools to enable seamless conversations and fast deployment of agent workflows with Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages