书接上回,使用 langchain 和 通义千问-1_8B-Chat-Int4 搭建了本地知识库,但每次打开时都要先用 conda 设置虚拟环境,感觉有点麻烦,直接写个 bat 脚本不就方便很多。
@echo off
echo "start langchain env"
call E:\codeSoftware\other\conda\Scripts\activate.bat langchain
echo "start langchain web"
python startup.py -a
点击脚本直接就运行了。