{"id":346,"date":"2024-04-23T15:53:28","date_gmt":"2024-04-23T07:53:28","guid":{"rendered":"https:\/\/hali.life\/?p=346"},"modified":"2024-04-24T09:20:52","modified_gmt":"2024-04-24T01:20:52","slug":"0%e8%b4%b9%e7%94%a8%e6%9e%84%e5%bb%baai%e7%a7%81%e6%9c%89%e7%9f%a5%e8%af%86%e5%ba%93%ef%bc%8c%e5%ae%a2%e6%9c%8d%e3%80%81%e8%ae%b2%e5%b8%88%e7%ad%89%e5%b0%86%e8%a2%ab%e5%8f%96%e4%bb%a3%e3%80%82","status":"publish","type":"post","link":"https:\/\/hali.life\/?p=346","title":{"rendered":"\u3010MaxKB Ollama\u30110\u8d39\u7528\u6784\u5efaAI\u79c1\u6709\u77e5\u8bc6\u5e93\uff0c\u5ba2\u670d\u3001\u8bb2\u5e08\u7b49\u5c06\u88ab\u53d6\u4ee3\u3002"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u89c6\u9891\u6559\u5b66<\/h1>\n\n\n\n<p><strong>B\u7ad9<\/strong>\uff1a<a href=\"https:\/\/www.bilibili.com\/video\/BV1Hm421s7Ft\/\">https:\/\/www.bilibili.com\/video\/BV1Hm421s7Ft\/<\/a><\/p>\n\n\n\n<p><strong>YouTube<\/strong>\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"video-container\"><iframe loading=\"lazy\" title=\"\u3010MaxKB Ollama Llama3\u30110\u8d39\u7528\u6784\u5efaAI\u79c1\u6709\u77e5\u8bc6\u5e93\uff0c\u5ba2\u670d\u3001\u8bb2\u5e08\u7b49\u5c06\u88ab\u53d6\u4ee3\u3002\" width=\"740\" height=\"416\" src=\"https:\/\/www.youtube.com\/embed\/6j9nlbOd8Xg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">\u524d\u8a00<\/h1>\n\n\n\n<p>\u5b8c\u5168\u4f7f\u7528\u672c\u5730\u8d44\u6e90\uff0c\u90e8\u7f72\u4e00\u4e2a0\u8d39\u7528\u7684AI\u77e5\u8bc6\u5e93\uff0c\u53ef\u7528\u4e8e \u667a\u80fd\u5ba2\u6237\u3001\u5185\u90e8\u77e5\u8bc6\u89e3\u7b54\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u73af\u5883<\/h1>\n\n\n\n<p>docker\u3001win10+<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u7b2c\u4e00\u90e8\u5206 MaxKB\u5b89\u88c5<\/h1>\n\n\n\n<p>MaxKB \u7b80\u4ecb\uff1a\u57fa\u4e8e LLM \u5927\u8bed\u8a00\u6a21\u578b\u7684\u77e5\u8bc6\u5e93\u95ee\u7b54\u7cfb\u7edf\u3002\u5f00\u7bb1\u5373\u7528\uff0c\u652f\u6301\u5feb\u901f\u5d4c\u5165\u5230\u7b2c\u4e09\u65b9\u4e1a\u52a1\u7cfb\u7edf<\/p>\n\n\n\n<p>GitHub\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/1Panel-dev\/MaxKB\">https:\/\/github.com\/1Panel-dev\/MaxKB<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 docker\u5b89\u88c5<\/h3>\n\n\n\n<p>\u76ee\u524dMaxKB\u5b98\u65b9\u53ea\u7ed9\u51fa\u4e86docker\u90e8\u7f72\u65b9\u5f0f\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u5148\u5b89\u88c5docker docker desktop \u4e0b\u8f7d\u5e76\u5b89\u88c5 \uff1a<a href=\"https:\/\/www.docker.com\/products\/docker-desktop\/\">https:\/\/www.docker.com\/products\/docker-desktop\/<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.2 MaxKB \u5b89\u88c5<\/h3>\n\n\n\n<p>docker \u5b89\u88c5MaxKB \u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>docker run -d --name=maxkb -p 8080:8080 -v ~\/.maxkb:\/var\/lib\/postgresql\/data 1panel\/maxkb<\/code><code># \u521d\u59cb\u5bc6\u7801\n# \u7528\u6237\u540d: admin\n# \u5bc6\u7801: MaxKB@123..<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">1.3 \u767b\u9646MaxKB \u5e76\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u767b\u9646MaxKB\u540e\u53ef\u4ee5\u521b\u5efa\u77e5\u8bc6\u5e93\uff0c\u77e5\u8bc6\u5e93\u652f\u6301\u6587\u6863\u548c\u7f51\u9875\u94fe\u63a5\u3002\u521b\u5efa\u95ee\u7b54\u5e94\u7528\u5e76\u5173\u8054\u5bf9\u5e94\u7684\u77e5\u8bc6\u5e93\u3002\u8bbe\u7f6e\u5927\u8bed\u8a00\u6a21\u578b\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u7b2c\u4e8c\u90e8\u5206 \u5b89\u88c5\u5927\u8bed\u8a00\u6a21\u578b<\/h1>\n\n\n\n<p>\u4e0a\u4e00\u4e2a\u90e8\u5206\u4e2d\u6211\u4eec\u6784\u5efa\u4e86\u77e5\u8bc6\u5e93\uff0c\u73b0\u5728\u9700\u8981\u4e00\u4e2a\u5927\u8bed\u8a00\u6a21\u578b\u6765\u5b66\u4e60\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u5e76\u7406\u89e3\u6211\u4eec\u7684\u63d0\u95ee\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 Ollama\u7684\u5b89\u88c5<\/h3>\n\n\n\n<p>Ollama\u662f\u4e00\u4e2a\u8ba9\u6211\u4eec\u53ef\u4ee5\u4e00\u952e\u8fd0\u884c\u5927\u6a21\u578b\u7684\u8f6f\u4ef6\u3002 \u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/ollama.com\/\">https:\/\/ollama.com\/<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728cmd\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 \nollama -v\n\u663e\u793a\u5bf9\u5e94\u7248\u672c\uff0c\u8bc1\u660e\u5b89\u88c5\u6b63\u786e\u5e76\u6b63\u5728\u8fd0\u884c<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 \u4e0b\u8f7d\u5927\u8bed\u8a00\u6a21\u578b<\/h3>\n\n\n\n<p>\u9996\u5148\u5728ollama\u7684\u6a21\u578b\u5e93\u91cc\u9762\u9009\u62e9\u81ea\u5df1\u60f3\u8981\u7684\u6a21\u578b\uff0collama model\u5730\u5740\uff1a<a href=\"https:\/\/ollama.com\/library\">https:\/\/ollama.com\/library<\/a><br>\u5728cmd\u547d\u4ee4\u884c\u4e2d\uff0c\u8fd0\u884c\u5bf9\u5e94\u7684\u4e0b\u8f7d\u547d\u4ee4\uff0c\u4f8b\u5982\u6211\u4e0b\u8f7d llama3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>ollama run llama3<\/code><\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u7b2c\u4e09\u90e8\u5206 \u5c06MaxKB\u4e0e\u5927\u8bed\u8a00\u6a21\u578b\u5bf9\u63a5<\/h1>\n\n\n\n<p>\u5728MaxKB\u7f51\u7ad9\u4e2d\uff0c\u7cfb\u7edf\u8bbe\u7f6e\u21d2\u6a21\u578b\u8bbe\u7f6e\u21d2Ollama\u21d2\u6dfb\u52a0\u6a21\u578b<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u6ce8\u610f\uff01<\/mark><\/strong><\/p>\n\n\n\n<p>\u201c\u57fa\u7840\u6a21\u578b\u201d \u586b\u5199\u5185\u5bb9\u5fc5\u987b\u548c\u4e0b\u8f7d\u6a21\u578b\u540d\u79f0\u4e00\u81f4<\/p>\n\n\n\n<p>\u201cAPI\u57df\u540d\u201d 127.0.0.1:11434 \u82e5MaxKB\u4f7f\u7528docker\u90e8\u7f72\u5e94\u586b\u5199 <a href=\"http:\/\/host.docker.internal:11434\/\"><\/a><a href=\"http:\/\/host.docker.internal:11434\">http:\/\/host.docker.internal:11434<\/a><\/p>\n\n\n\n<p>\u201cAPI KEY\u201d \u968f\u610f\u586b\u5199<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89c6\u9891\u6559\u5b66 B\u7ad9\uff1ahttps:\/\/www.bilibili.com\/video\/BV1Hm421s7Ft\/ Yo&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"views":10755,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=346"}],"version-history":[{"count":4,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":357,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions\/357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=\/wp\/v2\/media\/347"}],"wp:attachment":[{"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hali.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}