赞
踩
要求:
请创建一个干净的Python虚拟环境,以避免潜在冲突(推荐使用Anaconda3)。
安装软件包,请运行:
conda create -n qanything-python python=3.10 conda activate qanything-python git clone -b qanything-python-v1.3.1 https://github.com/netease-youdao/QAnything.git cd QAnything pip install -e .
bash scripts/run_for_3B_in_Linux_or_WSL.sh
bash scripts/run_for_7B_in_Linux_or_WSL.sh
在scripts/run_for_openai_api_with_cpu_in_Linux_or_WSL.sh中补充api-key等参数
bash scripts/run_for_openai_api_with_cpu_in_Linux_or_WSL.sh
在scripts/run_for_openai_api_with_gpu_in_Linux_or_WSL.sh中补充api-key等参数
bash scripts/run_for_openai_api_with_gpu_in_Linux_or_WSL.sh
在scripts/run_for_openai_api_in_M1_mac.sh中补充api-key等参数
bash scripts/run_for_openai_api_in_M1_mac.sh
Mac上建议使用Openai API, Qwen 4B/7B模型效果不佳
bash scripts/run_for_4B_in_M1_mac.sh
Mac上建议使用Openai API, Qwen 4B/7B模型效果不佳
bash scripts/run_for_7B_in_M1_mac.sh
在浏览器中打开http://127.0.0.1:8777/qanything/
或者打开http://{主机ip地址}:8777/qanything/
即可使用UI界面
注意末尾的斜杠不可省略,否则会出现404错误
python scripts/new_knowledge_base.py # print kb_id python scripts/upload_files.py <kb_id> scripts/weixiaobao.jpg # print file_id python scripts/list_files.py <kb_id> # print files status python scripts/stream_file.py <kb_id> # print llm res
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。