Skip to content
/ MaxKB Public
forked from 1Panel-dev/MaxKB

🚀 基于大语言模型和 RAG 的知识库问答系统。开箱即用、模型中立、灵活编排,支持快速嵌入到第三方业务系统。

License

Notifications You must be signed in to change notification settings

End-Q/MaxKB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于大语言模型的知识库问答系统

License: GPL v3 Codacy Latest release Stars


MaxKB( Max Knowlegde Base 的简称)是一款基于大语言模型的知识库问答系统,其核心目标是利用大语言模型对自然语言理解和生成的能力揣摩用户意图,对原始知识点进行汇总、整合,生成更贴切的答案。

MaxKB 的产品特性:

  • 多模型对接
    MaxKB 支持对接市场上主流的模型供应商,包括百度千帆大模型、 Azure OpenAI 和 Ollama 私有模型平台等。

  • 开箱即用
    支持一键获取在线文本或直接上传文档,MaxKB 系统自动进行文本拆分、知识向量化;构建应用实现 LLM 问答功能,根据用户提问和知识库内容生成精确回答。

  • 无缝集成
    MaxKB 应用支持零编码集成到企业第三方系统。

一键启动

MaxKB 支持一键启动,仅需执行以下命令:

docker run --name="maxkb" -p 8000:8000 -d ghcr.io/1panel-dev/maxkb

整体架构

arch

实现原理

  • 获取本地文档;
  • 读取文本;
  • 文本分割;
  • 文本向量化;
  • Query 向量化;
  • 向量匹配最相似的 TOP N 个文本;
  • 匹配出的文本作为上下文和问题一起添加到 prompt 中;
  • 提交给 LLM 做生成回答。

Implementation principle

社区

如果您在使用过程中有任何疑问或建议,欢迎提交 GitHub Issue 或到我们官方论坛进行交流沟通:

技术栈

License

Copyright (c) 2014-2024 飞致云 FIT2CLOUD, All rights reserved.

Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.gnu.org/licenses/gpl-3.0.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

🚀 基于大语言模型和 RAG 的知识库问答系统。开箱即用、模型中立、灵活编排,支持快速嵌入到第三方业务系统。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.9%
  • Vue 33.2%
  • TypeScript 10.3%
  • SCSS 0.8%
  • JavaScript 0.5%
  • HTML 0.2%
  • Other 0.1%