AI学习二、通过anythingLLM搭建本地知识库

AI学习二、通过anythingLLM搭建本地知识库

第一节我已经搭建了ollama+deepseek的环境,本章需要用到的核心工具为anythingLLM

官网:docs.anythingllm.com/

了解

这个是官网给的信息

java 复制代码
What is AnythingLLM?
AnythingLLM is the easiest to use, all-in-one AI application that can do RAG, AI Agents, and much more with no code or infrastructure headaches.
什么是AnythingLLM?
AnythingLLM是最容易使用的,集所有功能于一身的AI应用程序,它可以做RAG, AI代理,以及更多的事情,没有代码或基础设施的麻烦
    
Why use AnythingLLM?
You want a zero-setup, private, and all-in-one AI application for local LLMs, RAG, and AI Agents all in one place without painful developer-required set up.
为什么要使用AnythingLLM?
您希望在一个地方为本地llm、RAG和AI代理提供零设置、私有和一体化的AI应用程序,而不需要开发人员进行痛苦的设置。

Learn more about AnythingLLM Desktop →

or

You need a fully-customizable, private, and all-in-one AI app for your business or organization that is basically a full ChatGPT with permissioning but with any LLM, embedding model, or vector database.
你需要为你的企业或组织提供一个完全可定制的、私有的、一体化的AI应用程序,它基本上是一个完整的ChatGPT,具有权限,但具有任何LLM、嵌入模型或矢量数据库。
Learn more about AnythingLLM for Docker →

安装anythingLLM

官网指出docker版本和desktop版是有区别的

大概区别如下

Feature Available on Desktop Available on Docker
Multi-user support(多用户支持) ❌ ✅
Emeddable chat widgets(可插入的聊天小部件) ❌ ✅
One-click install(提供单键安装) ✅ ❌
Private documents(文档私有化) ✅ ✅
Connect to any vector database(连接到任何矢量数据库) ✅ ✅
Use any LLM(使用任何LLM) ✅ ✅
Built-in embedding provider(内置嵌入提供程序) ✅ ✅
Built-in LLM provider(内置LLM提供程序) ✅ ❌
White-labeling ❌ ✅
Chat logs(聊天记录) ✅ ✅
Agent support(支持代理) ✅ ✅
Agent skills ✅ ✅
Third-party data connectors(第三方数据连接器) ✅ ✅
Password protection(密码保护) ❌ ✅
Invite new users to instance(邀请新用户加入实例) ❌ ✅
Text splitting configuration(文本分割配置) ✅ ✅
Whisper model support(Whisper模型支持) ✅ ✅
Full developer API(完整的开发者API) ✅ ✅
User management(用户管理 ) ❌ ✅
Workspace access management(工作空间访问管理) ❌ ✅
Website scraping(网站抓取) ✅ ✅

docker安装方式

sh 复制代码
 # Assuming that you want to store app data in a folder at /var/lib/anythingllm
 
 # Pull in the latest image
 docker pull mintplexlabs/anythingllm:master
 
 export STORAGE_LOCATION="/var/lib/anythingllm" && \
 mkdir -p $STORAGE_LOCATION && \
 touch "$STORAGE_LOCATION/.env" && \
 docker run -d -p 3001:3001 \ # expose on port 3001 (can be any host port)
 --cap-add SYS_ADMIN \
 -v ${STORAGE_LOCATION}:/app/server/storage \
 -v ${STORAGE_LOCATION}/.env:/app/server/.env \
 -e STORAGE_DIR="/app/server/storage" \
 mintplexlabs/anythingllm:master
 
 # visit http://localhost:3001 to use AnythingLLM!

win安装

根据系统自行选择下载

Windows 10+ (Home, Professional - x86 64-bit)

Windows 10+ (Home, Professional - ARM 64-bit)

下载完成后,一路点击安装即可

我这里选择使用win的方式进行了安装

配置

这里我们需要配置一下我们连接的ollama的信息

使用

新建工作区

上传文档

以上文档上传成功后,进行提问

以上即搭建成功知识库内容

相关推荐
2601_962071003 分钟前
【openAI新模型】GPT-6 Cyber模型介绍:功能、费用与用法
人工智能·gpt·语言模型·智能体
揽秀亭长8 分钟前
论文降 AI 率处理实战:一条「检测→定点改写→回检」流水线
人工智能
小宋10219 分钟前
知识库里的 Excel 不能当纯文本读:表头行识别、合并单元格回填与公式缓存值的结构化入库
前端·人工智能·缓存·excel
Smoothcloud润云13 分钟前
写实向生图智能体的工程实践:数据集取向、参数配置与两个纪实案例复现
服务器·数据库·人工智能·ai·ai编程·gpu算力
m4Rk_14 分钟前
【论文阅读】Agent 记忆机制(151):DUNE——让源事实更新沿依赖图传播到派生记忆
论文阅读·人工智能·学习·开源·github
熬夜专业户11117 分钟前
AI 涂色线稿技术拆解:提示词约束、OpenCV 二值化与 A4 打印验证
人工智能·计算机视觉
AI的探索之旅25 分钟前
97 个 OpenCV 实例(四十二):LeNet 数据流里一个 i-1 的错位,让 22.6% 的数字消失
人工智能·opencv·计算机视觉
七牛云行业应用30 分钟前
GLM-5.4 vs DeepSeek V4.1 Flash:同样 1M 上下文,API 价格与输出上限怎么选(2026 年 12 月)
人工智能·ai·开源·ai编程
时文鲜读37 分钟前
2026边缘计算服务商推荐:怎么选
人工智能·边缘计算
陈大鱼头41 分钟前
第一次做 AI 视频,GPT 推荐我先试这两个模型
人工智能·gpt·音视频