{"id":58,"date":"2026-01-20T10:08:31","date_gmt":"2026-01-20T02:08:31","guid":{"rendered":"https:\/\/www.starverse-ai.com\/guide\/?p=58"},"modified":"2026-01-21T09:50:11","modified_gmt":"2026-01-21T01:50:11","slug":"openwebui%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.starverse-ai.com\/guide\/archives\/58","title":{"rendered":"OpenWebUI\u5165\u95e8\u6307\u5357(\u90e8\u7f72\u6559\u7a0b)"},"content":{"rendered":"\n<p>OpenWebUI\u5165\u95e8\u672c\u8eab\u4e5f\u4e0d\u96be,\u4f9d\u7136\u662f\u9700\u8981\u4f9d\u8d56\u4e00\u4e9b\u57fa\u7840\u7684\u786c\u4ef6\u914d\u7f6e,\u90e8\u7f72\u5b8c\u6210\u5c31\u53ef\u4ee5\u5b9e\u73b0\u53ef\u89c6\u5316\u7ba1\u7406\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42,\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6211\u4eec\u5b98\u7f51\u7684\u4e00\u952e\u90e8\u7f72\u514d\u8d39\u8bd5\u7528\u5f88\u9002\u5408\u65b0\u624b\uff01<\/p>\n\n\n\n<p>\u4e00\u3001OpenWebUI \u7b80\u4ecb\u200b<\/p>\n\n\n\n<p>OpenWebUI \u662f\u4e00\u6b3e\u5f00\u6e90\u514d\u8d39\u7684 AI \u6a21\u578b\u53ef\u89c6\u5316\u7ba1\u7406\u5de5\u5177\uff0c\u4e13\u4e3a Ollama\u3001OpenAI API \u7b49\u6a21\u578b\u8fd0\u884c\u5668\u8bbe\u8ba1\uff0c\u63d0\u4f9b\u76f4\u89c2\u7684 Web \u64cd\u4f5c\u754c\u9762\u3002\u5176\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u591a\u6a21\u578b\u517c\u5bb9\u3001\u5185\u7f6e RAG \u68c0\u7d22\u589e\u5f3a\u529f\u80fd\u3001\u7528\u6237\u6743\u9650\u7ba1\u7406\u3001\u5168\u5e73\u53f0\u9002\u914d(Windows\/Linux\/macOS)\u53ca\u79bb\u7ebf\u8fd0\u884c\u80fd\u529b\uff0c\u65e0\u9700\u590d\u6742\u547d\u4ee4\u884c\u64cd\u4f5c\u5373\u53ef\u5b9e\u73b0 AI \u6a21\u578b\u7684\u90e8\u7f72\u3001\u7ba1\u7406\u4e0e\u4ea4\u4e92\uff0c\u517c\u987e\u65b0\u624b\u5165\u95e8\u4e0e\u4f01\u4e1a\u7ea7\u5e94\u7528\u9700\u6c42\uff0c\u662f\u672c\u5730 AI \u90e8\u7f72\u7684\u9996\u9009\u53ef\u89c6\u5316\u5de5\u5177\u3002\u200b<\/p>\n\n\n\n<p>\u4e8c\u3001\u90e8\u7f72\u524d\u7f6e\u914d\u7f6e\u8981\u6c42\u200b<\/p>\n\n\n\n<p>(\u4e00)\u57fa\u7840\u914d\u7f6e(\u6ee1\u8db3\u6838\u5fc3\u529f\u80fd\u8fd0\u884c)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows 10\/11 64 \u4f4d\u3001Ubuntu 20.04+\u3001macOS 12+(\u65e0\u4e2d\u6587\u8def\u5f84\u9650\u5236);\u200b<\/p>\n\n\n\n<p>\u5904\u7406\u5668\uff1a\u53cc\u6838 CPU(\u63a8\u8350\u56db\u6838\u53ca\u4ee5\u4e0a\uff0c\u63d0\u5347\u5e76\u53d1\u5904\u7406\u80fd\u529b);\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u22658GB(\u8fd0\u884c\u5355\u6a21\u578b\u57fa\u7840\u9700\u6c42\uff0c\u591a\u6a21\u578b\u540c\u65f6\u8fd0\u884c\u9700 16GB+);\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1a\u673a\u68b0\u786c\u76d8\u9884\u7559\u226520GB \u7a7a\u95f4(\u542b\u5de5\u5177\u5b89\u88c5\u5305 + \u57fa\u7840\u6a21\u578b\u5b58\u50a8);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1aDocker 20.10+(\u63a8\u8350\u90e8\u7f72\u65b9\u6848)\u6216 Python 3.11(\u624b\u52a8\u90e8\u7f72\u4e13\u7528\uff0c\u907f\u514d 3.12 + \u7248\u672c)\u3001Git;\u200b<\/p>\n\n\n\n<p>\u7f51\u7edc\u8981\u6c42\uff1a\u9996\u6b21\u90e8\u7f72\u9700\u8054\u7f51\u4e0b\u8f7d\u955c\u50cf \/ \u4f9d\u8d56\uff0c\u540e\u7eed\u652f\u6301\u79bb\u7ebf\u8fd0\u884c\u3002\u200b<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"343\" src=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/OpenWebUI.jpg\" alt=\"\" class=\"wp-image-60\" srcset=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/OpenWebUI.jpg 546w, https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/OpenWebUI-300x188.jpg 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/figure>\n<\/div>\n\n\n<p>(\u4e8c)\u63a8\u8350\u914d\u7f6e(\u5e73\u8861\u6027\u80fd\u4e0e\u7a33\u5b9a\u6027)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1a\u4e0e\u57fa\u7840\u914d\u7f6e\u4e00\u81f4;\u200b<\/p>\n\n\n\n<p>\u5904\u7406\u5668\uff1a\u56db\u6838\u516b\u7ebf\u7a0b CPU(\u5982 Intel i5\/Ryzen 5 \u53ca\u4ee5\u4e0a);\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u226516GB(\u652f\u6301\u591a\u6a21\u578b\u5e76\u884c\u52a0\u8f7d\uff0c\u51cf\u5c11\u5361\u987f);\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1aSSD \u9884\u7559\u226550GB \u7a7a\u95f4(\u63d0\u5347\u6a21\u578b\u52a0\u8f7d\u4e0e\u6587\u4ef6\u8bfb\u5199\u901f\u5ea6);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1aDocker 24.0+\u3001Git\uff0cNVIDIA \u7528\u6237\u989d\u5916\u5b89\u88c5 CUDA 12.1+(\u542f\u7528 GPU \u52a0\u901f);\u200b<\/p>\n\n\n\n<p>\u786c\u4ef6\u589e\u5f3a\uff1aNVIDIA \u663e\u5361(\u663e\u5b58\u22656GB\uff0c\u652f\u6301 CUDA \u52a0\u901f\uff0c\u5927\u5e45\u63d0\u5347\u6a21\u578b\u63a8\u7406\u901f\u5ea6)\u3002\u200b<\/p>\n\n\n\n<p><strong>\u661f\u5b87\u667a\u7b97\u5b98\u7f51\u652f\u6301\u514d\u8d39\u90e8\u7f72\u7acb\u9a6c\u5b89\u88c5\uff01\u70b9\u51fb\u4e0b\u65b9\u7acb\u5373\u8bd5\u7528!<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.starverse-ai.com\/applications\/details\/tama-HPNYo8NGRyqHURbG\"><img decoding=\"async\" src=\"https:\/\/www.starverse-ai.com\/guide\/wp-content\/uploads\/2026\/01\/QQ\u622a\u56fe20260121094818.jpg\" alt=\"\" class=\"wp-image-124\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>(\u4e09)\u4f01\u4e1a\u7ea7\u914d\u7f6e(\u591a\u7528\u6237 \/ \u9ad8\u6e05\u573a\u666f)\u200b<\/p>\n\n\n\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aUbuntu 22.04 LTS \u6216 Windows Server 2022;\u200b<\/p>\n\n\n\n<p>\u5904\u7406\u5668\uff1a\u516b\u6838\u5341\u516d\u7ebf\u7a0b CPU(\u5982 Intel i7\/Ryzen 7 \u53ca\u4ee5\u4e0a);\u200b<\/p>\n\n\n\n<p>\u5185\u5b58\uff1a\u226532GB(\u652f\u6301 10 \u4eba\u4ee5\u4e0a\u540c\u65f6\u8bbf\u95ee\uff0c\u591a\u6a21\u578b\u9ad8\u8d1f\u8f7d\u8fd0\u884c);\u200b<\/p>\n\n\n\n<p>\u5b58\u50a8\uff1aNVMe SSD\u2265100GB(\u9002\u914d\u5927\u5c3a\u5bf8\u6a21\u578b\u5b58\u50a8\u4e0e\u9ad8\u901f\u8bfb\u5199);\u200b<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4f9d\u8d56\uff1aDocker Compose\/Kubernetes(\u96c6\u7fa4\u90e8\u7f72)\u3001CUDA 12.4+\u3001cuDNN 8.9.x;\u200b<\/p>\n\n\n\n<p>\u786c\u4ef6\u589e\u5f3a\uff1aNVIDIA \u663e\u5361(\u663e\u5b58\u226512GB\uff0c\u5982 RTX 3060\/4070.\u652f\u6301 TensorRT \u4f18\u5316)\u3002\u200b<\/p>\n\n\n\n<p>\u4e09\u3001\u8be6\u7ec6\u90e8\u7f72\u4e0e\u4f7f\u7528\u6559\u7a0b\u200b<\/p>\n\n\n\n<p>(\u4e00)\u63a8\u8350\u65b9\u6848\uff1aDocker \u90e8\u7f72(\u9002\u914d 90% \u7528\u6237\uff0c\u7b80\u5355\u9ad8\u6548)\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5 Docker \u73af\u5883\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u7ec8\u7aef\u8f93\u5165docker &#8211;version\u9a8c\u8bc1\u662f\u5426\u6210\u529f\u3002\u200b<\/p>\n\n\n\n<p>Windows\uff1a\u4e0b\u8f7d Docker Desktop \u5e76\u5b89\u88c5\uff0c\u542f\u7528 WSL2 \u529f\u80fd(\u9700\u91cd\u542f\u7535\u8111);\u200b<\/p>\n\n\n\n<p>macOS\uff1a\u901a\u8fc7\u5b98\u7f51\u4e0b\u8f7d Docker Desktop\uff0cApple Silicon \u7528\u6237\u9700\u786e\u4fdd\u7cfb\u7edf\u7248\u672c\u226512.5;\u200b<\/p>\n\n\n\n<p>Linux(Ubuntu)\uff1a\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a\u200b<\/p>\n\n\n\n<p>sudo apt update &amp;&amp; sudo apt install docker-ce docker-ce-cli containerd.io\u200b<\/p>\n\n\n\n<p>sudo systemctl start docker &amp;&amp; sudo systemctl enable docker\u200b<\/p>\n\n\n\n<p>sudo usermod -aG docker $USER # \u65e0\u9700sudo\u8fd0\u884cDocker\u200b<\/p>\n\n\n\n<p>\u62c9\u53d6 OpenWebUI \u955c\u50cf\u200b<\/p>\n\n\n\n<p>\u5b8c\u6574\u7248\u955c\u50cf(\u542b\u9884\u6346\u7ed1\u6a21\u578b\uff0c\u63a8\u8350)\uff1a\u200b<\/p>\n\n\n\n<p>docker pull ghcr.io\/open-webui\/open-webui:main\u200b<\/p>\n\n\n\n<p>\u8f7b\u91cf\u7248\u955c\u50cf(\u4f53\u79ef\u66f4\u5c0f\uff0c\u9996\u6b21\u4f7f\u7528\u81ea\u52a8\u4e0b\u8f7d\u6a21\u578b)\uff1a\u200b<\/p>\n\n\n\n<p>docker pull ghcr.io\/open-webui\/open-webui:main-slim\u200b<\/p>\n\n\n\n<p>NVIDIA GPU \u52a0\u901f\u7248(\u9700\u63d0\u524d\u5b89\u88c5 CUDA)\uff1a\u200b<\/p>\n\n\n\n<p>docker pull ghcr.io\/open-webui\/open-webui:cuda\u200b<\/p>\n\n\n\n<p>\u542f\u52a8\u5bb9\u5668\u200b<\/p>\n\n\n\n<p>\u5173\u952e\u53c2\u6570\u8bf4\u660e\uff1a-p 3000:8080\u6620\u5c04\u7aef\u53e3\uff0c-v\u5b9e\u73b0\u6570\u636e\u6301\u4e45\u5316\uff0c&#8211;restart always\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u3002\u200b<\/p>\n\n\n\n<p>\u57fa\u7840\u542f\u52a8(CPU \u7248\uff0c\u672c\u5730\u8bbf\u95ee)\uff1a\u200b<\/p>\n\n\n\n<p>docker run -d -p 3000:8080 -v open-webui:\/app\/backend\/data &#8211;name open-webui &#8211;restart always ghcr.io\/open-webui\/open-webui:main\u200b<\/p>\n\n\n\n<p>GPU \u52a0\u901f\u542f\u52a8(NVIDIA \u663e\u5361)\uff1a\u200b<\/p>\n\n\n\n<p>docker run -d -p 3000:8080 &#8211;gpus all -v open-webui:\/app\/backend\/data &#8211;name open-webui &#8211;restart always ghcr.io\/open-webui\/open-webui:cuda\u200b<\/p>\n\n\n\n<p>\u5355\u7528\u6237\u6a21\u5f0f(\u8df3\u8fc7\u767b\u5f55\uff0c\u4ec5\u672c\u5730\u4f7f\u7528)\uff1a\u200b<\/p>\n\n\n\n<p>docker run -d -p 3000:8080 -e WEBUI_AUTH=false -v open-webui:\/app\/backend\/data &#8211;name open-webui &#8211;restart always ghcr.io\/open-webui\/open-webui:main\u200b<\/p>\n\n\n\n<p>\u8bbf\u95ee\u4e0e\u521d\u59cb\u5316\u200b<\/p>\n\n\n\n<p>\u542f\u52a8\u6210\u529f\u540e\uff0c\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:3000.\u9996\u6b21\u6253\u5f00\u9700\u6ce8\u518c\u7ba1\u7406\u5458\u8d26\u6237(\u6570\u636e\u672c\u5730\u5b58\u50a8\uff0c\u65e0\u9690\u79c1\u6cc4\u9732\u98ce\u9669)\uff0c\u5b8c\u6210\u540e\u5373\u53ef\u8fdb\u5165\u4e3b\u754c\u9762\u3002\u200b<\/p>\n\n\n\n<p>(\u4e8c)\u5907\u9009\u65b9\u6848\uff1aPython \u624b\u52a8\u90e8\u7f72(\u4f4e\u8d44\u6e90\u73af\u5883)\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5\u4f9d\u8d56\u73af\u5883\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5 Python 3.11(\u5b98\u7f51\u4e0b\u8f7d\u5bf9\u5e94\u7cfb\u7edf\u7248\u672c);\u200b<\/p>\n\n\n\n<p>\u5b89\u88c5 Node.js 22.10+(\u524d\u7aef\u7f16\u8bd1\u4f9d\u8d56);\u200b<\/p>\n\n\n\n<p>\u514b\u9686\u9879\u76ee\u4ed3\u5e93\uff1a\u200b<\/p>\n\n\n\n<p>git clone https:\/\/github.com\/open-webui\/open-webui.git\u200b<\/p>\n\n\n\n<p>cd open-webui\u200b<\/p>\n\n\n\n<p>\u914d\u7f6e\u540e\u7aef\u73af\u5883\u200b<\/p>\n\n\n\n<p># \u8fdb\u5165\u540e\u7aef\u76ee\u5f55\u200b<\/p>\n\n\n\n<p>cd backend\u200b<\/p>\n\n\n\n<p># \u5b89\u88c5\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>pip install -r requirements.txt -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple\u200b<\/p>\n\n\n\n<p># \u89e3\u51b3\u8de8\u57df\u95ee\u9898(\u672c\u5730\u6d4b\u8bd5\u5fc5\u5907)\u200b<\/p>\n\n\n\n<p>sed -i &#8216;s\/CORS_ALLOW_ORIGIN = os.environ.get(&#8220;CORS_ALLOW_ORIGIN&#8221;,&#8221;*&#8221;).split(&#8220;;&#8221;)\/CORS_ALLOW_ORIGIN = os.environ.get(&#8220;CORS_ALLOW_ORIGIN&#8221;,&#8221;http:\/\/localhost:5173&#8243;).split(&#8220;;&#8221;)\/g&#8217; open_webui\/config.py\u200b<\/p>\n\n\n\n<p>\u914d\u7f6e\u524d\u7aef\u73af\u5883\u200b<\/p>\n\n\n\n<p># \u8fd4\u56de\u9879\u76ee\u6839\u76ee\u5f55\u200b<\/p>\n\n\n\n<p>cd ..\u200b<\/p>\n\n\n\n<p># \u590d\u5236\u914d\u7f6e\u6587\u4ef6\u200b<\/p>\n\n\n\n<p>cp .env.example .env\u200b<\/p>\n\n\n\n<p># \u5b89\u88c5\u524d\u7aef\u4f9d\u8d56\u200b<\/p>\n\n\n\n<p>npm install\u200b<\/p>\n\n\n\n<p># \u542f\u52a8\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u200b<\/p>\n\n\n\n<p>npm run dev\u200b<\/p>\n\n\n\n<p>\u542f\u52a8\u670d\u52a1\u200b<\/p>\n\n\n\n<p>Windows\uff1a\u53cc\u51fbbackend\/start_windows.bat\u542f\u52a8\u540e\u7aef;\u200b<\/p>\n\n\n\n<p>Linux\/macOS\uff1a\u6267\u884csh backend\/start.sh\u542f\u52a8\u540e\u7aef;\u200b<\/p>\n\n\n\n<p>\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:5173\u5373\u53ef\u4f7f\u7528\u3002\u200b<\/p>\n\n\n\n<p>(\u4e09)\u57fa\u7840\u4f7f\u7528\u6d41\u7a0b\u200b<\/p>\n\n\n\n<p>\u8fde\u63a5\u6a21\u578b\uff1a\u5728\u4e3b\u754c\u9762\u8fdb\u5165 \u201c\u8bbe\u7f6e\u201d\uff0c\u9009\u62e9\u6a21\u578b\u63d0\u4f9b\u8005(\u5982 Ollama)\uff0c\u586b\u5199\u6a21\u578b\u5730\u5740(\u672c\u5730\u9ed8\u8ba4http:\/\/localhost:11434);\u200b<\/p>\n\n\n\n<p>\u6a21\u578b\u4e0b\u8f7d\uff1a\u5728 \u201c\u6a21\u578b\u5e93\u201d \u4e2d\u9009\u62e9\u6240\u9700\u6a21\u578b(\u5982 llama3)\uff0c\u70b9\u51fb\u4e0b\u8f7d\u5373\u53ef\u81ea\u52a8\u90e8\u7f72;\u200b<\/p>\n\n\n\n<p>\u4ea4\u4e92\u4f53\u9a8c\uff1a\u5728\u804a\u5929\u754c\u9762\u8f93\u5165\u95ee\u9898\uff0c\u53ef\u8c03\u6574\u6e29\u5ea6\u3001\u6700\u5927 tokens \u7b49\u53c2\u6570\uff0c\u652f\u6301\u6587\u4ef6\u4e0a\u4f20\u3001RAG \u68c0\u7d22\u7b49\u529f\u80fd;\u200b<\/p>\n\n\n\n<p>\u7528\u6237\u7ba1\u7406\uff1a\u7ba1\u7406\u5458\u53ef\u5728 \u201c\u63a7\u5236\u53f0\u201d \u6dfb\u52a0\u7528\u6237\u3001\u5206\u914d\u6743\u9650\uff0c\u9002\u5408\u591a\u7528\u6237\u5171\u4eab\u73af\u5883\u3002\u200b<\/p>\n\n\n\n<p>\u56db\u3001\u5e38\u89c1\u95ee\u9898 FAQ\u200b<\/p>\n\n\n\n<p>Docker \u5bb9\u5668\u65e0\u6cd5\u8fde\u63a5\u672c\u5730 Ollama?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u5bb9\u5668\u5185localhost\u6307\u5411\u81ea\u8eab\uff0c\u800c\u975e\u4e3b\u673a\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u542f\u52a8\u547d\u4ee4\u6dfb\u52a0&#8211;add-host=host.docker.internal:host-gateway\uff0c\u6a21\u578b\u5730\u5740\u586b\u5199http:\/\/host.docker.internal:11434.\u200b<\/p>\n\n\n\n<p>\u6a21\u578b\u4e0b\u8f7d\u7f13\u6162\u6216\u5931\u8d25?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u9ed8\u8ba4\u4ece\u56fd\u5916\u670d\u52a1\u5668\u4e0b\u8f7d\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u6539\u7528\u56fd\u5185\u955c\u50cf(\u5982hf-mirror.com)\u624b\u52a8\u4e0b\u8f7d\u6a21\u578b\uff0c\u653e\u7f6e\u5230~\/.ollama\/models\u76ee\u5f55;\u6216\u5728 Docker \u542f\u52a8\u65f6\u6dfb\u52a0\u4ee3\u7406\u73af\u5883\u53d8\u91cf\u3002\u200b<\/p>\n\n\n\n<p>\u542f\u52a8\u62a5\u9519 \u201cPython \u7248\u672c\u4e0d\u517c\u5bb9\u201d?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u4f7f\u7528 Python 3.12 + \u6216 3.10 \u4ee5\u4e0b\u7248\u672c\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u5378\u8f7d\u5f53\u524d Python\uff0c\u5b89\u88c5 3.11 \u7248\u672c\uff0c\u91cd\u65b0\u914d\u7f6e\u73af\u5883\u3002\u200b<\/p>\n\n\n\n<p>GPU \u52a0\u901f\u672a\u751f\u6548\uff0c\u4ecd\u4f7f\u7528 CPU?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1aCUDA \u7248\u672c\u4e0d\u5339\u914d\u6216\u672a\u5b89\u88c5 GPU \u7248\u955c\u50cf\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u786e\u8ba4 CUDA \u7248\u672c\u226512.1.\u62c9\u53d6cuda\u6807\u7b7e\u955c\u50cf\uff0c\u542f\u52a8\u547d\u4ee4\u6dfb\u52a0&#8211;gpus all\u53c2\u6570\u3002\u200b<\/p>\n\n\n\n<p>\u6d4f\u89c8\u5668\u63d0\u793a\u8de8\u57df\u9519\u8bef?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u540e\u7aef CORS \u914d\u7f6e\u9650\u5236\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u6309\u624b\u52a8\u90e8\u7f72\u6b65\u9aa4\u4fee\u6539config.py\u6587\u4ef6\uff0c\u6216\u5728\u542f\u52a8\u547d\u4ee4\u4e2d\u6dfb\u52a0-e CORS_ALLOW_ORIGIN=&#8221;*&#8221;(Docker \u90e8\u7f72)\u3002\u200b<\/p>\n\n\n\n<p>\u5fd8\u8bb0\u7ba1\u7406\u5458\u5bc6\u7801?\u200b<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6848\uff1a\u5220\u9664 Docker \u6570\u636e\u5377(docker volume rm open-webui)\u540e\u91cd\u542f\u5bb9\u5668\uff0c\u91cd\u65b0\u6ce8\u518c;\u624b\u52a8\u90e8\u7f72\u9700\u5220\u9664backend\/data\u76ee\u5f55\u4e0b\u7684\u6570\u636e\u5e93\u6587\u4ef6\u3002\u200b<\/p>\n\n\n\n<p>all-MiniLM-L6-v2 \u6a21\u578b\u4e0b\u8f7d\u5931\u8d25?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1aHugging Face \u8bbf\u95ee\u53d7\u9650\u3002\u89e3\u51b3\u65b9\u6848\uff1a\u4ece hf-mirror \u4e0b\u8f7d\u6a21\u578b\u5230\u672c\u5730\uff0c\u4fee\u6539backend\/open_webui\/retrieval\/utils.py\uff0c\u5c06model_repo_path\u6539\u4e3a\u672c\u5730\u8def\u5f84\u3002\u200b<\/p>\n\n\n\n<p>\u90e8\u7f72\u540e\u5916\u90e8\u8bbe\u5907\u65e0\u6cd5\u8bbf\u95ee?\u200b<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a\u9ed8\u8ba4\u4ec5\u76d1\u542c\u672c\u5730\u7aef\u53e3\u3002\u89e3\u51b3\u65b9\u6848\uff1aDocker \u542f\u52a8\u65f6\u5c06\u7aef\u53e3\u6620\u5c04\u6539\u4e3a-p 0.0.0.0:3000:8080.\u786e\u4fdd\u9632\u706b\u5899\u5f00\u653e 3000 \u7aef\u53e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenWebUI\u5165\u95e8\u672c\u8eab\u4e5f\u4e0d\u96be,\u4f9d\u7136\u662f\u9700\u8981\u4f9d\u8d56\u4e00\u4e9b\u57fa\u7840\u7684\u786c&hellip;<\/p>\n","protected":false},"author":2,"featured_media":60,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zixun"],"views":155,"_links":{"self":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":2,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/posts\/58\/revisions\/125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/media\/60"}],"wp:attachment":[{"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.starverse-ai.com\/guide\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}