当前位置:   article > 正文

本地部署 RAGFlow_ragflow本地部署

ragflow本地部署

0. RAGFlow 是什么?

RAGFlow 是一款基于深度文档理解构建的开源 RAG(Retrieval-Augmented Generation)引擎。RAGFlow 可以为各种规模的企业及个人提供一套精简的 RAG 工作流程,结合大语言模型(LLM)针对用户各类不同的复杂格式数据提供可靠的问答以及有理有据的引用。

1. 安装 wsl-ubuntu

  1. 安装 Ubuntu-24.04,默认会安装在 C 盘,
wsl.exe --install -d Ubuntu-24.04
  • 1
  1. 导出 Ubuntu-24.04,
wsl --export Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
  • 1
  1. 删除 Ubuntu-24.04,
wsl --unregister Ubuntu-24.04
  • 1
  1. 导入 Ubuntu-24.04,导入到 F:\VirtualPCs\Ubuntu-24.04 目录,
wsl --import Ubuntu-24.04 F:\VirtualPCs\Ubuntu-24.04 D:\tmp\Ubuntu-24.04.tar
  • 1
  1. 访问 Ubuntu-24.04,
wsl
  • 1
  1. 退出 Ubuntu-24.04,
exit
  • 1
  1. (可选)关闭 Ubuntu-24.04,
wsl --shutdown
  • 1

2. (可选)配置清华大学软件源

  1. 为了加速软件安装速度,配置清华大学软件源,
mv /etc/apt/sources.list /etc/apt/sources.list.bak
  • 1
cat << EOF > /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse

# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-proposed main restricted universe multiverse
EOF
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

reference: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

3. 系统更新和安装构建工具

系统更新,

sudo apt update && sudo apt upgrade
  • 1

安装构建工具,

sudo apt install build-essential checkinstall
sudo apt install libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
  • 1
  • 2

4. 安装 Miniconda3

  1. 下载 Conda 安装脚本,
cd /tmp
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  • 1
  • 2
  1. 运行安装脚本,按提示操作,当提示是否初始化 Conda 时,输入 “yes”,
bash Miniconda3-latest-Linux-x86_64.sh

---
Please, press ENTER to continue
>>> yes

Do you accept the license terms? [yes|no]
[no] >>> yes

Miniconda3 will now be installed into this location:
/root/miniconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/miniconda3] >>> ENTER

Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
---
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  1. 安装完成后,激活一下 Conda,
sudo su - root
  • 1
  1. 更新 Conda 至最新版本,
conda update conda
  • 1
  1. 配置用户登录时是否默认激活 Conda 的 base 环境,

如果想默认激活 Conda 的 base 环境,

conda config --set auto_activate_base true
  • 1

如果不想默认激活 Conda 的 base 环境,

conda
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/800274
    推荐阅读
    相关标签
      

    闽ICP备14008679号