综述由AI生成详细解析了 Open-WebUI 管理员面板的核心功能。涵盖用户管理与权限组设置、模型连接配置(OpenAI 及 Ollama)、RAG 知识库集成(含嵌入与检索策略)、代码执行环境搭建、界面自定义及语音图像处理等模块。通过深入讲解身份验证、外部 API 对接、文档分切引擎选择及安全配置,帮助用户构建安全高效的 AI 管理后台,实现从基础部署到高级运维的进阶。
樱花落尽33 浏览
Open-WebUI 管理员面板深度拆解与配置指南
一、引言
在之前的部署攻略中,我们完成了从零搭建 AI 对话平台的'基建工程'。无论是 Linux 还是 Windows 环境,都能一键部署 Open-WebUI。但真正的'魔法',始于登录系统后的界面配置。
作为一款开源 AI 对话平台,Open-WebUI 以极简的设计隐藏了强大的功能架构。整个界面可划分为五大核心功能区:
💬对话区: 实时交互的主战场,支持多模态输入、历史对话回溯与 Prompt 工程调试;
🧰工作空间区: 文件管理、代码执行、插件扩展的'生产力工具箱';
🎭用户设置区: 个性化角色定义、隐私控制与交互偏好调节;
🧠管理员面板: 系统的'中枢神经',掌控用户权限、模型配置与安全防线;
🎪AI 对话游乐场: 零代码模型微调与多模型对比测试的实验场。
本文将结合最新版本的功能升级,手把手拆解管理员面板,助你从'能用'进阶到'敢用',打造安全、高效、可扩展的 AI 管理后台。
Available Tools:{{TOOLS}} Your task is to choose and return the correct tool(s) from the list of available tools based on the query. Follow these guidelines: - Return only the JSON object, without any additional text or explanation. - If no tools match the query, return an empty array:{"tool_calls":[]} - If one or more tools match the query, construct a JSON response containing a "tool_calls" array with objects that include: - "name": The tool's name. - "parameters": A dictionary of required parameters and their corresponding values. The format for the JSON response is strictly:{"tool_calls":[{"name":"toolName1","parameters":{"key1":"value1"}},{"name":"toolName2","parameters":{"key2":"value2"}}]}
用于生成图像提示词的提示词: 用于根据对话内容检测是否需要生成图像功能;它的默认模版为:
### Task: Generate a detailed prompt for am image generation task based on the given language and context. Describe the image as if you were explaining it to someone who cannot see it. Include relevant details, colors, shapes, and any other important elements. ### Guidelines: - Be descriptive and detailed, focusing on the most important aspects of the image. - Avoid making assumptions or adding information not present in the image. - Use the chat's primary language; default to English if multilingual. - If the image is too complex, focus on the most prominent elements. ### Output: Strictly return in JSON format:{"prompt":"Your detailed description here."} ### Chat History: <chat_history> {{MESSAGES:END:6}} </chat_history>
输入框内容猜测补全: 是否开启输入框内容自动补全功能;
查询生成提示词: 用于根据对话内容检测是否需要进行联网搜索功能;它的默认模版为:
### Task: Analyze the chat history to determine the necessity of generating search queries, in the given language. By default, **prioritize generating 1-3 broad and relevant search queries** unless it is absolutely certain that no additional information is required. The aim is to retrieve comprehensive, updated, and valuable information even with minimal uncertainty. If no search is unequivocally needed, return an empty list. ### Guidelines: - Respond **EXCLUSIVELY** with a JSON object. Any form of extra commentary, explanation, or additional text is strictly prohibited. - When generating search queries, respond in the format:{"queries":["query1","query2"]}, ensuring each query is distinct, concise, and relevant to the topic. - If and only if it is entirely certain that no useful results can be retrieved by a search, return:{"queries":[]}. - Err on the side of suggesting search queries if there is **any chance** they might provide useful or updated information. - Be concise and focused on composing high-quality search queries, avoiding unnecessary elaboration, commentary, or assumptions. - Today's date is:{{CURRENT_DATE}}. - Always prioritize providing actionable and broad queries that maximize informational coverage. ### Output: Strictly return in JSON format:{"queries":["query1","query2"]} ### Chat History: <chat_history> {{MESSAGES:END:6}} </chat_history>
标签生成: 是否开启对话标签自动生成功能;它的默认模版为:
### Task: Generate 1-3 broad tags categorizing the main themes of the chat history, along with 1-3 more specific subtopic tags. ### Guidelines: - Start with high-level domains (e.g. Science, Technology, Philosophy, Arts, Politics, Business, Health, Sports, Entertainment, Education) - Consider including relevant subfields/subdomains if they are strongly represented throughout the conversation - If content is too short (less than 3 messages) or too diverse, use only ["General"] - Use the chat's primary language; default to English if multilingual - Prioritize accuracy over specificity ### Output: JSON format:{"tags":["tag1","tag2","tag3"]} ### Chat History: <chat_history> {{MESSAGES:END:6}} </chat_history>
设置任务模型: 用于对话标题和 Web 搜索查询生成等任务的默认模型设置;它的默认模版为:
### Task: Generate a concise,3-5 word title with an emoji summarizing the chat history. ### Guidelines: - The title should clearly represent the main theme or subject of the conversation. - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting. - Write the title in the chat's primary language; default to English if multilingual. - Prioritize accuracy over excessive creativity; keep it clear and simple. ### Output: JSON format:{"title":"your concise title here"} ### Examples: - {"title":"📉 Stock Market Trends"}, - {"title":"🍪 Perfect Chocolate Chip Recipe"}, - {"title":"Evolution of Music Streaming"}, - {"title":"Remote Work Productivity Tips"}, - {"title":"Artificial Intelligence in Healthcare"}, - {"title":"🎮 Video Game Development Insights"} ### Chat History: <chat_history> {{MESSAGES:END:2}} </chat_history>
5.8.2 界面
默认提示词建议: 用于开启新会话时,默认提示词模版建议,效果如下:
公告横幅: 主页面的横幅提示配置(Markdown 语法),效果如下:
5.9 语音
5.9.1 语音转文本设置
语音转文本引擎:
OpenAI: 通过 OpenAI 官方 API 或兼容接口(如硅基流动、讯飞星火等)接入云端模型;
网页 API: 使用当前浏览器的语音转文本功能,需浏览器授权麦克风权限;
Deepgram: 实时流式处理语音平台,可在 DeepGram 官网 申请免费 API key 和选择模型;
Whisper(本地): Open WebUI 内置了 faster-whisper,可查看Hugging Face使用相关模型: