Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

HuixiangDou

> AI 编程
Open source

HuixiangDou: Overcoming Group Chat Scenarios with LLM-based Technical Assistance

2.5K stars0 likes0 views
WebsiteGitHub

About

HuixiangDou: Overcoming Group Chat Scenarios with LLM-based Technical Assistance

️ Upgrade

HuixiangDou2(ACL25) is a GraphRAG solution whose effectiveness has been demonstrated in the plant-science domain and that contributed to the cover paper in Cell Molecular Plant. If you work outside computer science, give the new release a try.


English | 简体中文

HuixiangDou1 is a professional knowledge assistant based on LLM.

Advantages:

  1. Design three-stage pipelines of preprocess, rejection and response
    • chat_in_group copes with group chat scenario, answer user questions without message flooding, see 2401.08772, 2405.02817, Hybrid Retrieval and Precision Report
    • chat_with_repo for real-time streaming chat
  2. No training required, with CPU-only, 2G, 10G configuration
  3. Offers a complete suite of Web, Android, and pipeline source code, industrial-grade and commercially viable

Check out the scenes in which HuixiangDou are running and current public service status:

  • readthedocs ChatWithAI (cpu-only) is available
  • OpenXLab is using GPU and under continuous maintenance
  • WeChat bot has a cost associated with WeChat integration. All code has been verified to be functional for one year. Please deploy it on your own for either the free or commercial version.

If this helps you, please give it a star ⭐

New Features

Our Web version has been released to OpenXLab, where you can create knowledge base, update positive and negative examples, turn on web search, test chat, and integrate into Feishu/WeChat groups. See BiliBili and YouTube !

The Web version's API for Android also supports other devices. See Python sample code.

  • [2025/03] Simplify deployment and removing --standalone
  • [2025/03] Forwarding multiple wechat group message
  • [2024/09] Inverted indexer makes LLM prefer knowledge base
  • [2024/09] Code retrieval
  • [2024/08] chat_with_readthedocs, see how to integrate
  • [2024/07] Image and text retrieval & Removal of langchain
  • [2024/07] Hybrid Knowledge Graph and Dense Retrieval improve 1.7% F1 score
  • [2024/06] Evaluation of chunksize, splitter, and text2vec model
  • [2024/05] wkteam WeChat access, parsing image & URL, support coreference resolution
  • [2024/05] SFT LLM on NLP task, F1 increased by 29%
    LoRA-Qwen1.5-14B LoRA-Qwen1.5-32B alpaca data arXiv
  • [2024/04] RAG Annotation SFT Q&A Data and Examples
  • [2024/04] Release Web Front and Back End Service Source Code
  • [2024/03] New Personal WeChat Integration and Prebuilt APK !
  • [2024/02] [Experimental Feature] WeChat Group Integration of multimodal to achieve OCR

Support Status

LLM File Format Retrieval Method Integration Preprocessing
  • DeepSeek
  • InternLM
  • GLM
  • KIMI
  • StepFun
  • vLLM
  • Silicon️
  • PPIO️
  • Xi-Api
  • excel
  • html
  • markdown
  • pdf
  • ppt
  • txt
  • word
  • Dense for Document
  • Sparse for Code
  • Knowledge Graph
  • Internet Search
  • SourceGraph
  • Image and Text
  • WeChat(android/wkteam)
  • Lark
  • OpenXLab Web
  • Gradio Demo
  • HTTP Server
  • Read the Docs
  • Coreference Resolution

Hardware Requirements

The following are the GPU memory requirements for different features, the difference lies only in whether the options are turned on.

Configuration Example GPU mem Requirements Description Verified on Linux
config-cpu.ini - Use siliconcloud API
for text only
[Standard Edition]config.ini 2GB Use openai API (such as kimi, deepseek and stepfun to search for text only
config-multimodal.ini 10GB Use openai API for LLM, image and text retrieval

Running the Standard Edition

We take the standard edition (local running LLM, text retrieval) as an introduction example. Other versions are just different in configuration options.

I. Download and install dependencies

Click to agree to the BCE model agreement, log in huggingface

bash
huggingface-cli login

Install dependencies

bash
# parsing `word` format requirements
apt update
apt install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig libpulse-dev
# python requirements
pip install -r requirements.txt
# For python3.8, install faiss-gpu instead of faiss

II. Create knowledge base

We use some novels to build knowledge base and filtering questions. If you have your own documents, just put them under repodir.

Copy and execute all the following commands (including the '#' symbol).

…

III. Setup LLM API and test

Set the model and api-key in config.ini. If running LLM locally, we recommend using vllm.

vllm serve /path/to/Qwen-2.5-7B-Instruct --served-model-name vllm --enable-prefix-caching --served-model-name Qwen-2.5-7B-Instruct

Here is an example of the configured config.ini:

…

Then run the test:

…

Also run a simple Web UI with gradio:

bash
python3 -m huixiangdou.gradio_ui

Or run a server to listen 23333, default pipeline is chat_with_repo:

bash
python3 -m huixiangdou.api_server

# test async API 
curl -X POST http://127.0.0.1:23333/huixiangdou_stream  -H "Content-Type: application/json" -d '{"text": "how to install mmpose","image": ""}'
# cURL sync API
curl -X POST http://127.0.0.1:23333/huixiangdou_inference  -H "Content-Type: application/json" -d '{"text": "how to install mmpose","image": ""}'

Please update the repodir documents, good_questions and bad_questions, and try your own domain knowledge (medical, financial, power, etc.).

IV. Integration

To Feishu, WeChat group

  • One-way sending to Feishu group
  • Two-way Feishu group receiving and sending, recalling
  • Personal WeChat Android access and Android tool
  • Personal WeChat wkteam access

To web front and backend

We provide typescript front-end and python back-end source code:

  • Multi-tenant management supported
  • Zero programming access to Feishu and WeChat
  • k8s friendly

Same as OpenXlab APP, please read the web deployment document.

To readthedocs.io

Try right-bottom button on the page and document.

Other Configurations

CPU-only Edition

If there is no GPU available, model inference can be completed using the siliconcloud API.

Taking docker miniconda+Python3.11 as an example, install CPU dependencies and run:

…

If you find the installation too slow, a pre-installed image is provided in Docker Hub. Simply replace it when starting the docker.

10G Multimodal Edition

If you have 10G GPU mem, you can further support image and text retrieval. Just modify the model used in config.ini.

toml
# config-multimodal.ini
# !!! Download `https://huggingface.co/BAAI/bge-visualized/blob/main/Visualized_m3.pth`    to `bge-m3` folder !!!
embedding_model_path = "BAAI/bge-m3"
reranker_model_path = "BAAI/bge-reranker-v2-minicpm-layerwise"

Note:

  • You need to manually download Visualized_m3.pth to the bge-m3 directory
  • Install FlagEmbedding on main branch, we have made bugfix. Here you can download bpe_simple_vocab_16e6.txt.gz
  • Install [requirements/multimodal.txt](./requirements/multimod

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonapplicationassistantassistant-chat-botschatbot

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.