{"id":972,"date":"2023-12-18T22:43:36","date_gmt":"2023-12-18T14:43:36","guid":{"rendered":"https:\/\/www.dd-home.top\/?p=972"},"modified":"2023-12-20T08:59:45","modified_gmt":"2023-12-20T00:59:45","slug":"dbchat-%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.dd-home.top\/?p=972","title":{"rendered":"DbChat \u914d\u7f6e"},"content":{"rendered":"<h4>DbChat \u76f8\u5173\u90e8\u7f72\u8fd0\u884c\u8d44\u6599<\/h4>\n<p><!--more--><\/p>\n<h4 class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">1\u3001Db_Chat \u76f8\u5173\u5730\u5740<\/span><\/h4>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#github\u5730\u5740<\/span><\/span>\r\n<span role=\"presentation\">https:\/\/github.com\/eosphoros-ai\/DB-GPT<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u56fd\u5185\u955c\u50cf\u5730\u5740<\/span><\/span>\r\n<span role=\"presentation\">https:\/\/hub.nuaa.cf\/eosphoros-ai\/DB-GPT<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u4e2d\u6587\u6587\u6863\u5730\u5740<\/span><\/span>\r\n<span role=\"presentation\">https:\/\/www.yuque.com\/eosphoros\/dbgpt-docs<\/span><\/pre>\n<h4 class=\"md-end-block md-heading\"><span class=\"md-plain\">2\u3001\u73af\u5883\u914d\u7f6e<\/span><\/h4>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u914d\u7f6econda<\/span><\/span>\r\n<span role=\"presentation\">conda create <span class=\"cm-attribute\">-n<\/span> dbgpt_env <span class=\"cm-def\">python<\/span><span class=\"cm-operator\">=<\/span><span class=\"cm-number\">3<\/span>.10<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u6fc0\u6d3bconda<\/span><\/span>\r\n<span role=\"presentation\">conda activate dbgpt_env<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u5b89\u88c5\u73af\u5883<\/span><\/span>\r\n<span role=\"presentation\">pip install <span class=\"cm-attribute\">-e<\/span> <span class=\"cm-string\">\".[default]\"<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-builtin\">cp<\/span> .env.template  .env<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#cuda \u4e0d\u5339\u914d\u65f6\u7684\u5904\u7406<\/span><\/span>\r\n<span role=\"presentation\">conda install pytorch torchvision torchaudio <span class=\"cm-def\">pytorch-cuda<\/span><span class=\"cm-operator\">=<\/span><span class=\"cm-number\">12<\/span>.1 <span class=\"cm-attribute\">-c<\/span> pytorch <span class=\"cm-attribute\">-c<\/span> nvidia<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"text\" spellcheck=\"false\"><span role=\"presentation\">#cannot import name 'COMMON_SAFE_ASCII_CHARACTERS' from #'charset_normalizer.constant' (D:\\miniconda3\\conda_env\\envs\\chatglm3\\lib\\site-#packages\\charset_normalizer\\constant.py)<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">pip install chardet<\/span>\r\n<span role=\"presentation\">\u200b<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#ImportError: cannot import name 'Doc' from 'typing_extensions' (D:\\miniconda3\\conda_env\\envs\\chatglm3\\lib\\site-packages\\typing_extensions.py)<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">pip install <span class=\"cm-def\">typing_extensions<\/span><span class=\"cm-operator\">==<\/span><span class=\"cm-number\">4<\/span>.8.0<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\"># --force-reinstall<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#streamlit run .\\web_demo2.py<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">\u200b<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\">conda install langchain[all]<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\">conda install <span class=\"cm-def\">typing_extensions<\/span><span class=\"cm-operator\">==<\/span><span class=\"cm-number\">4<\/span>.8.0<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"python\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-keyword\">import<\/span> <span class=\"cm-variable\">nltk<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\"><span class=\"cm-variable\">nltk<\/span>.<span class=\"cm-property\">download<\/span>(<span class=\"cm-string\">'punkt'<\/span>)<\/span>\r\n<span role=\"presentation\"><span class=\"cm-variable\">nltk<\/span>.<span class=\"cm-property\">download<\/span>(<span class=\"cm-string\">'averaged_perceptron_tagger'<\/span>)<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"text\" spellcheck=\"false\"><span role=\"presentation\">No sentence-transformers model found with name C:\\Users\\Nbad\/.cache\\torch\\sentence_transformers\\GanymedeNil_text2vec-large-chinese. Creating a new one with MEAN pooling.<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">Embedding dimension 768 does not match collection dimensionality 1024<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">\u200b<\/span><\/pre>\n<h4 class=\"md-end-block md-heading\"><span class=\"md-plain\">\u6210\u719f\u7684\u65b9\u6848<\/span><\/h4>\n<p class=\"md-end-block md-p\"><span class=\"md-link md-pair-s\" spellcheck=\"false\"><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/630049721?utm_id=0&amp;wd=&amp;eqid=a8a29c690004eea4000000066475cf00\">https:\/\/zhuanlan.zhihu.com\/p\/630049721?utm_id=0&amp;wd=&amp;eqid=a8a29c690004eea4000000066475cf00<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DbChat \u76f8\u5173\u90e8\u7f72\u8fd0\u884c\u8d44\u6599<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"class_list":["post-972","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=972"}],"version-history":[{"count":2,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/972\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/972\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}