You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
部署方法
环境:Ubuntu + UV + Docker
安装uv
包管理器:
curl -LsSf https://astral.sh/uv/install.sh | sh
同步依赖:
uv sync
安装Milvus
首先下载安装Docker Desktop
然后获取Milvus的docker-compose.yml
wget https://github.com/milvus-io/milvus/releases/download/v2.6.0/milvus-standalone-docker-compose.yml -O docker-compose.yml
拉取并搭建镜像:
sudo docker compose -d
运行
运行以下命令启动后端
uv run main.py
(deepsearcher) [Work]tanxing:~/workspace/deep-searcher [09:11:02]$ uv run main.py
CORS is disabled.
Starting server on 0.0.0.0:8000
INFO: Started server process [7114]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
直接访问网址即可
第一次运行需要先装载测试文件到数据库
为了测试的正常进行,请按以下信息填写文件加载
的选择,都是必选,不是可选
文件路径(多个路径用逗号分隔)
docs
集合名称(可选)
default
集合描述(可选)
This is a general collection for all data
结构
接口定义在main.py
网页模板文件在deepsearcher/backend/templates/index.html