Files
nexus/wiki/entities/Open-WebUI.md

68 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Open WebUI"
type: entity
tags: []
last_updated: 2026-04-23
---
# Open WebUI
## Overview
Open WebUI原名 Ollama WebUI是一个开源的大语言模型 Web 界面项目,通过部署它可以得到一个**纯本地运行的基于浏览器访问的 Web 服务**。它提供了可扩展、功能丰富、用户友好的自托管 AI Web 界面支持各种大型语言模型LLM运行器可以通过配置形式便捷地集成 Ollama、OpenAI 等提供的 API。
## Aliases
- Open WebUI
- OpenWebUI
- open-webui
## Key Facts
- **Docker 镜像**: ghcr.io/open-webui/open-webui:main
- **默认端口**: 8080
- **核心功能**: 聊天机器人、本地知识库RAG、图像生成、联网搜索
## Core Features
1. **多模型支持**: 通过 Ollama API 或 OpenAI API 接入多种 LLM
2. **RAG 本地知识库**: 使用嵌入模型(如 bge-m3构建本地知识库
3. **联网搜索**: 支持 Bing、博查等搜索引擎接入
4. **图像生成**: 集成图像生成能力
5. **跨域访问**: 通过 `CORS_ALLOW_ORIGIN=*` 支持跨域 API 调用
## Docker Compose 部署示例
```yaml
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
environment:
- OLLAMA_API_BASE_URL=http://ollama:11434/api
- WEBUI_NAME="My LLM Service"
- ENABLE_OPENAI_API=false
- CORS_ALLOW_ORIGIN=*
- ENABLE_IMAGE_GENERATION=true
- DEFAULT_MODELS=deepseek-r1:8b
- RAG_EMBEDDING_MODEL=bge-m3
ports:
- 8080:8080
volumes:
- ./open_webui_data:/app/backend/data
```
## 前提条件
- 已安装 Docker
- 已部署 Ollama 并拉取模型deepseek-r1:8b 和 bge-m3
## 联网搜索配置
操作路径:`设置 → 联网搜索 → 启用联网搜索`
支持的搜索引擎:
- Bing
- 博查https://aq6ky2b8nql.feishu.cn/wiki/XgeXwsn7oiDEC0kH6O3cUKtknSR
**注意**:如不需要联网搜索功能,请勿开启以保护隐私数据。
## Related Entities
- [[Ollama]]Open WebUI 通过 Ollama API 接入 LLM 服务
- [[DeepSeek]]Open WebUI 的推荐默认模型之一
- [[RAG]]Open WebUI 使用 RAG 技术构建本地知识库
## Sources
- [[详细-离线部署大模型-ollama-deepseek-open-webui安装使用方法及常见问题解决-1]]