Go to file
shanshi 2d726185f8 [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
.github delete duplicate checkboxes 2024-01-30 15:56:29 +08:00
coagent [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
configs [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
examples [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
nltk_data upload 2023-09-28 10:58:58 +08:00
sources [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
tests [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
web_crawler upload 2023-09-28 10:58:58 +08:00
.gitignore [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
Dockerfile rename dev_opsgpt to coagent, and add memory&prompt manager 2024-01-26 14:03:25 +08:00
LEGAL.md upload 2023-09-28 10:58:58 +08:00
LICENSE.md upload 2023-09-28 10:58:58 +08:00
README.md [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
README_en.md [feature](webui)<add config_webui for starting app> 2024-03-28 20:12:36 +08:00
docker_build.sh update codebase & multi-agent framework 2023-11-07 19:44:47 +08:00
env_start.sh upload 2023-09-28 10:58:58 +08:00
requirements.txt rename dev_opsgpt to coagent, and add memory&prompt manager 2024-01-26 14:03:25 +08:00
setup.py rename dev_opsgpt to coagent, and add memory&prompt manager 2024-01-26 14:03:25 +08:00

README_en.md

中文   English 

Codefuse-ChatBot: Development by Private Knowledge Augmentation

ZH doc EN doc License Open Issues

This project is an open-source AI intelligent assistant, specifically designed for the entire lifecycle of software development, covering design, coding, testing, deployment, and operations. Through knowledge retrieval, tool utilization, and sandbox execution, Codefuse-ChatBot can not only answer professional questions you encounter during the development process but also coordinate multiple independent, dispersed platforms through a conversational interface.

🔔 Updates

  • [2024.01.29] A configurational multi-agent framework, CoAgent, has been open-sourced. For more details, please refer to coagent
  • [2023.12.26] Opening the capability to integrate with open-source private large models and large model interfaces based on FastChat
  • [2023.12.01] Release of Multi-Agent and codebase retrieval functionalities.
  • [2023.11.15] Addition of Q&A enhancement mode based on the local codebase.
  • [2023.09.15] Launch of sandbox functionality for local/isolated environments, enabling knowledge retrieval from specified URLs using web crawlers.

📜 Contents

🤝 Introduction

💡 The aim of this project is to construct an AI intelligent assistant for the entire lifecycle of software development, covering design, coding, testing, deployment, and operations, through Retrieval Augmented Generation (RAG), Tool Learning, and sandbox environments. It transitions gradually from the traditional development and operations mode of querying information from various sources and operating on standalone, disparate platforms to an intelligent development and operations mode based on large-model Q&A, changing people's development and operations habits.

  • 🧠 Intelligent Scheduling Core: Constructed a well-integrated scheduling core system that supports multi-mode one-click configuration, simplifying the operational process. coagent
  • 💻 Comprehensive Code Repository Analysis: Achieved in-depth understanding at the repository level and coding and generation at the project file level, enhancing development efficiency.
  • 📄 Enhanced Document Analysis: Integrated document knowledge bases with knowledge graphs, providing deeper support for document analysis through enhanced retrieval and reasoning.
  • 🔧 Industry-Specific Knowledge: Tailored a specialized knowledge base for the DevOps domain, supporting the self-service one-click construction of industry-specific knowledge bases for convenience and practicality.
  • 🤖 Compatible Models for Specific Verticals: Designed small models specifically for the DevOps field, ensuring compatibility with related DevOps platforms and promoting the integration of the technological ecosystem.

🌍 Relying on open-source LLM and Embedding models, this project can achieve offline private deployments based on open-source models. Additionally, this project also supports the use of the OpenAI API.Access Demo

👥 The core development team has been long-term focused on research in the AIOps + NLP domain. We initiated the CodefuseGPT project, hoping that everyone could contribute high-quality development and operations documents widely, jointly perfecting this solution to achieve the goal of "Making Development Seamless for Everyone."

Image

🌍 Relying on open-source LLM and Embedding models, this project can achieve offline private deployments based on open-source models. Additionally, this project also supports the use of the OpenAI API.

👥 The core development team has been long-term focused on research in the AIOps + NLP domain. We initiated the DevOpsGPT project, hoping that everyone could contribute high-quality development and operations documents widely, jointly perfecting this solution to achieve the goal of "Making Development Seamless for Everyone."

🧭 Technical Route

Image
  • 🧠 Multi-Agent Schedule Core: Easily configurable to create interactive intelligent agents.
  • 🕷️ Multi Source Web Crawl: Offers the capability to crawl specified URLs for collecting the required information.
  • 🗂️ Data Processor: Effortlessly handles document loading, data cleansing, and text segmentation, integrating data from different sources.
  • 🔤 Text Embedding & Index:Users can easily upload files for document retrieval, optimizing the document analysis process.
  • 🗄️ Vector Database & Graph Database: Provides flexible and powerful data management solutions.
  • 📝 Prompt Control & Management:Precisely defines the contextual environment for intelligent agents.
  • 🚧 SandBox:Safely executes code compilation and actions.
  • 💬 LLM:Supports various open-source models and LLM interfaces.
  • 🛠️ API Management: Enables rapid integration of open-source components and operational platforms.

For implementation details, see: Technical Route Details

🌐 Model Integration

If you need to integrate a specific model, please inform us of your requirements by submitting an issue.

model_name model_size gpu_memory quantize HFhub ModelScope
chatgpt - - - - -
codellama-34b-int4 34b 20g int4 coming soon link

🚀 Quick Start

coagent-py

More Detail seecoagent

pip install coagent

ChatBot-UI

Please install the Nvidia driver yourself; this project has been tested on Python 3.9.18, CUDA 11.7, Windows, and X86 architecture macOS systems.

  1. Preparation of Python environment
  • It is recommended to use conda to manage the python environment (optional)
# Prepare conda environment
conda create --name Codefusegpt python=3.9
conda activate Codefusegpt
  • Install related dependencies
cd Codefuse-ChatBot
# python=3.9use notebook-latestpython=3.8 use notebook==6.5.5
pip install -r requirements.txt
  1. Preparation of Sandbox Environment
# Build images for the sandbox environment, see above for notebook version issues
bash docker_build.sh
  1. Model Download (Optional)

If you need to use open-source LLM and Embed

ding models, you can download them from HuggingFace. Here, we use THUDM/chatglm2-6b and text2vec-base-chinese as examples:

# install git-lfs
git lfs install

# install LLM-model
git lfs clone https://huggingface.co/THUDM/chatglm2-6b

# install Embedding-model
git lfs clone https://huggingface.co/shibing624/text2vec-base-chinese
  1. Start the Service
# After configuring server_config.py, you can start with just one click.
cd examples
bash start.sh
# you can config your llm model and embedding model
图片

Or python start.py by old version to start More details about accessing LLM MoldesMore Details...

Contribution

Thank you for your interest in the Codefuse project. We warmly welcome any suggestions, opinions (including criticisms), comments, and contributions to the Codefuse project.

Your suggestions, opinions, and comments on Codefuse can be directly submitted through GitHub Issues.

There are many ways to participate in the Codefuse project and contribute to it: code implementation, test writing, process tool improvement, documentation enhancement, and more. We welcome any contributions and will add you to our list of contributors. See contribution guide

🤗 Acknowledgements

This project is based on langchain-chatchat and codebox-api. We deeply appreciate their contributions to open source!