当前位置:   article > 正文

Mac本地部署LLama3+AnythingLLM+Docker方式的本地知识库_anythingllm docker

anythingllm docker

一、安装Docker

下载链接:https://docs.docker.com/desktop/install/mac-install/

二、安装ollama

1.下载链接:https://ollama.com/download

2.打开终端执行,下载Llama3模型

ollama run llama3

3.安装Enchanted

下载链接:https://github.com/AugustDev/enchanted

三、使用docker安装AnythingLLM

1.拉取镜像,终端执行

docker pull mintplexlabs/anythingllm

2.终端执行,STORAGE_LOCATION路径为自己定义的路径,然后访问:http://localhost:3001/就可以访问anythingLLM了

  1. export STORAGE_LOCATION=/Users/lishihao/linkpath/anythingllm && \
  2. mkdir -p $STORAGE_LOCATION && \
  3. touch "$STORAGE_LOCATION/.env" && \
  4. docker run -d -p 3001:3001 \
  5. --cap-add SYS_ADMIN \
  6. -v ${STORAGE_LOCATION}:/app/server/storage \
  7. -v ${STORAGE_LOCATION}/.env:/app/server/.env \
  8. -e STORAGE_DIR="/app/server/storage" \
  9. mintplexlabs/anythingllm

3.配置ollama

docker启动,所以ollama url要设置成:http://host.docker.internal:11434

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

闽ICP备14008679号