Giter VIP home page Giter VIP logo

yuyhao / chatpilot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shibing624/chatpilot

0.0 0.0 0.0 818 KB

Chat with Agent. 基于chat agent实现了联网搜索,文件、网址对话功能(类kimi chat,文件,拖进来;网址,发出来),支持OpenAI API。

Home Page: https://chat.mulanai.com

License: Apache License 2.0

Shell 0.22% JavaScript 0.68% Python 49.56% TypeScript 0.06% CSS 2.38% HTML 0.26% Batchfile 0.28% Dockerfile 0.80% Svelte 45.76%

chatpilot's Introduction

🇨🇳中文 | 🌐English | 📖文档/Docs | 🤖模型/Models


ChatPilot: Chat Agent

PyPI version Downloads Contributions welcome License Apache 2.0 python_version GitHub issues Wechat Group

ChatPilot: Chat with Agent. 基于chat agent实现了联网搜索,文件、网址对话功能(类kimi chat,文件,拖进来;网址,发出来),支持OpenAI API。

Features

  • 本项目基于Agent实现了搜索问答
  • 本项目基于Agent实现了文件对话(RAG),实现了通过URL自动解析内容功能,复现了 kimi chat(文件,拖进来;网址,发出来) 的文件、网址对话功能
  • 本项目基于Agent实现了python代码解释器,支持E2B虚拟环境和本地python编译器环境运行代码
  • 支持前后端服务分离,前端使用Svelte,后端使用FastAPI
  • 支持语音输入输出,支持图像生成
  • 支持用户管理,权限控制,支持聊天记录导入导出

Demo

Official Demo: https://chat.mulanai.com

Install

pip install -U chatpilot

or

git clone https://github.com/shibing624/ChatPilot.git
cd ChatPilot
pip install -e .

Usage

1. 构建前端web

两种方法构建前端:

  1. 下载打包并编译好的前端 buid.zip 解压到项目web目录下。
  2. 自己使用npm构建前端

Requirements:

git clone https://github.com/shibing624/ChatPilot.git
cd ChatPilot/

# Copying required .env file
cp .env.example .env

# Building Frontend Using Node
cd web
npm install
npm run build

输出:项目web目录产出build文件夹,包含了前端编译输出文件。

2. 启动后端服务

cd ..
pip install -r requirements.txt -U
bash start.sh

好了,现在你的应用正在运行:http://0.0.0.0:8080 Enjoy! 😄

Contact

  • Issue(建议):GitHub issues
  • 邮件我:xuming: [email protected]
  • 微信我:加我微信号:xuming624, 备注:姓名-公司-NLP 进NLP交流群。

Citation

如果你在研究中使用了ChatPilot,请按如下格式引用:

APA:

Xu, M. ChatPilot: LLM agent toolkit (Version 0.0.2) [Computer software]. https://github.com/shibing624/ChatPilot

BibTeX:

@misc{ChatPilot,
  author = {Ming Xu},
  title = {ChatPilot: llm agent},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/shibing624/ChatPilot}},
}

License

授权协议为 The Apache License 2.0,可免费用做商业用途。请在产品说明中附加ChatPilot的链接和授权协议。

Contribute

项目代码还很粗糙,如果大家对代码有所改进,欢迎提交回本项目,在提交之前,注意以下两点:

  • tests添加相应的单元测试
  • 使用python -m pytest -v来运行所有单元测试,确保所有单测都是通过的

之后即可提交PR。

Reference

chatpilot's People

Contributors

shibing624 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.