Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cloudstudio-platform/chainlit

Open more actions menu
 
 

Repository files navigation

name description author contributors language star fork url banner icon video license order
Chainlit
Chainlit 可让您在几分钟之内⚡️就在任何Python代码上创建类似于ChatGPT的UI!一些关键功能包括中间步骤的可视化,元素的管理和现实(图像,文本,轮播等)以及云部署。
language percentage
TypeScript
58.0
language percentage
Python
41.5
574
201
./images/quick-start.png
./images/Chainlit.mov
Apache-2.0
18

欢迎来到 Chainlit 👋

在几分钟内构建python LLM 应用程序 ⚡️

Chainlit 可让您在几分钟之内就在任何Python代码上创建类似于ChatGPT的UI!一些关键功能包括中间步骤的可视化,元素的管理和现实(图像,文本,轮播等)以及云部署

Twitter CI

安装

打开终端并运行:

$ pip install chainlit
$ chainlit hello

如果 hello app现在在您的浏览器中是打开的状态,则表示您已准备就绪!

📖 文档

请参阅此处 以获取有关一下内容的完整文档:

  • 入门(安装,简单示例)
  • 例子
  • 参考(完整的API文档)

🚀 快速开始

🐍 python代码

使用以下代码 demo.py 创建一个新文件:

import chainlit as cl


@cl.on_message  # this function will be called every time a user inputs a message in the UI
def main(message: str):
    # this is an intermediate step
    cl.Message(author="Tool 1", content=f"Response from tool1", indent=1).send()

    # send back the final answer
    cl.Message(content=f"This is the final answer").send()

现在您就可以运行它了!

$ chainlit run demo.py -w

Quick Start

🔗 和 LangChain

查看我们与LangChain的即插即用集成

🛣 路线图

  • 新的UI元素(电子表格,视频,轮播)
  • 通过组件的框架来创建您自己的UI元素
  • 基于DAG的思想链接口
  • 在提示场景中支持更多的 LLMs
  • 应用程序部署

使用 Github issues or on Discord告诉我们您希望在Chainlit中添加哪些内容.

💁 贡献

作为快速发展领域中的一项开源计划,我们欢迎您的贡献,无论是通过添加新的功能还是改进文档。

有关如何贡献的详细信息,请参阅此处.

许可

Chainlit 是开源的,并根据Apache 2.0许可证获得许可

About

Build Python LLM apps in minutes ⚡️

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 53.8%
  • TypeScript 45.8%
  • HTML 0.2%
  • JavaScript 0.1%
  • CSS 0.1%
  • C++ 0.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.