{"id":9107,"date":"2024-04-26T11:58:15","date_gmt":"2024-04-26T03:58:15","guid":{"rendered":"https:\/\/www.1ai.net\/?p=9107"},"modified":"2024-04-26T11:59:53","modified_gmt":"2024-04-26T03:59:53","slug":"%e7%94%a8llama3%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e9%9b%b6%e6%88%90%e6%9c%ac%e6%9e%84%e5%bb%ba%e7%a7%81%e6%9c%89ai%e7%9f%a5%e8%af%86%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/9107.html","title":{"rendered":"Using Llama3, we will teach you how to build a private AI knowledge base at zero cost"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"0 0 []\">Today&#039;s sharing is about how to build a private AI at zero cost<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e7%9f%a5%e8%af%86%e5%ba%93\" title=\"[Sees articles with [knowledge base] labels]\" target=\"_blank\" >knowledge base<\/a>This solution is particularly suitable for sales personnel who are faced with a large amount of product knowledge that needs to be remembered.<\/p>\n<p data-track=\"2\">A friend of mine, a middle-aged salesman who switched to a medical device company, recently talked to me about this problem: there are many types of products and complex technical parameters. In order to recommend suitable products to customers, you need to have a deep reserve of product knowledge. This is a challenge for him, because in addition to learning product knowledge, he also has to face pressure from leaders and performance challenges, which makes his work more stressful.<\/p>\n<p data-track=\"3\">So I gave him a suggestion: provide product descriptions and technical information to AI and let AI learn. In this way, when sales staff encounter problems in promoting products, they can directly consult AI, or let customers ask AI questions themselves to understand which product is suitable for them. Such an intelligent customer service question-and-answer system can greatly reduce the workload of grassroots sales staff.<\/p>\n<p data-track=\"4\">If you have similar needs, the following solution may be helpful to you. This solution fully utilizes local resources, does not require any fees, and can be easily embedded in third-party platforms, such as your own company&#039;s website, WeChat applets, etc.<\/p>\n<p data-track=\"5\">Let\u2019s first take a look at the effect of this knowledge base. Here is a screenshot of a product description in the knowledge base, which contains the incidence data of the disease population for which the product is applicable.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9108\" title=\"get-876\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-876.jpg\" alt=\"get-876\" width=\"1082\" height=\"446\" \/><\/div>\n<p data-track=\"6\">Now, I will ask the AI a question and see how it responds.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9110\" title=\"get-878\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-878.jpg\" alt=\"get-878\" width=\"1289\" height=\"970\" \/><\/div>\n<p data-track=\"7\">See? Not only did the AI give an answer, it also indicated which knowledge base it learned this information from.<\/p>\n<p data-track=\"8\">Next, we will show you how to build such a system from scratch.<\/p>\n<p data-track=\"9\">The framework used this time is<a href=\"https:\/\/www.1ai.net\/en\/tag\/maxkb\" title=\"[See articles with [MaxKB] label]\" target=\"_blank\" >MaxKB<\/a>and<a href=\"https:\/\/www.1ai.net\/en\/tag\/ollama\" title=\"_Other Organiser\" target=\"_blank\" >Ollama<\/a>Provide front-end UI and local free large model interface respectively<\/p>\n<p data-track=\"10\">Install Ollama<\/p>\n<p data-track=\"11\">Download address: https:\/\/ollama.com\/download<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9109\" title=\"get-877\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-877.jpg\" alt=\"get-877\" width=\"1079\" height=\"575\" \/><\/div>\n<p data-track=\"12\">After downloading, double-click to install.<\/p>\n<p data-track=\"13\">Then open the CMD window and enter the command:<\/p>\n<pre><code>ollama run llama3<\/code><\/pre>\n<p data-track=\"15\">Start automatically downloading llama3 models<\/p>\n<p data-track=\"17\">Install MaxKB<\/p>\n<pre><code>docker run -d --name=maxkb -p 8080:8080 -v ~\/.maxkb:\/var\/lib\/postgresql\/data 1panel\/maxkb<\/code><\/pre>\n<p data-track=\"19\">Enter the above command on the command line to deploy the docker service<\/p>\n<p data-track=\"20\">After success, access the browser: 127.0.0.1:8000<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9111\" title=\"get-879\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-879.jpg\" alt=\"get-879\" width=\"1080\" height=\"612\" \/><\/div>\n<p data-track=\"21\">After entering the login page, enter the default username and password:<\/p>\n<pre><code># Username: admin # Password: MaxKB@123..<\/code><\/pre>\n<p data-track=\"23\">After the first login, you need to change the password and then enter the settings page to configure the large model parameters.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9112\" title=\"get-880\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-880.jpg\" alt=\"get-880\" width=\"995\" height=\"504\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9113\" title=\"get-881\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-881.jpg\" alt=\"get-881\" width=\"1205\" height=\"913\" \/><\/div>\n<p data-track=\"24\">Choose any model name. There is only one default option for model type. For basic model, fill in the name of the model actually downloaded from Ollama. For API domain name, fill in the address of the host where Ollama is installed. For this machine, fill in 127.0.0.1:11434. For API key, fill in anything you want and save it.<\/p>\n<p data-track=\"25\">After the model is configured, start creating the knowledge base<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9117\" title=\"get-885\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-885.jpg\" alt=\"get-885\" width=\"1109\" height=\"759\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9114\" title=\"get-882\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-882.jpg\" alt=\"get-882\" width=\"936\" height=\"528\" \/><\/div>\n<p data-track=\"26\">There are two types of knowledge bases: general ones allow manual entry of information and upload of data documents, and web sites provide a URL and then the system crawls the text information on the web page.<\/p>\n<p data-track=\"27\">Here we need to upload a document, so choose the general type.<\/p>\n<p data-track=\"28\">After filling in the basic information, click Upload Document and then import it into the system<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9116\" title=\"get-884\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-884.jpg\" alt=\"get-884\" width=\"1080\" height=\"499\" \/><\/div>\n<p data-track=\"29\">After importing, the system will intelligently segment the document content. The speed is very fast, but the accuracy may not be as good as manual segmentation. This depends on your needs. Here is a demonstration of intelligent segmentation.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9115\" title=\"get-883\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-883.jpg\" alt=\"get-883\" width=\"1080\" height=\"380\" \/><\/div>\n<p data-track=\"31\">Click Import in the lower right corner<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9118\" title=\"get-886\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-886.jpg\" alt=\"get-886\" width=\"764\" height=\"521\" \/><\/div>\n<p data-track=\"32\">Now we can create an intelligent assistant based on this knowledge base.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9119\" title=\"get-887\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-887.jpg\" alt=\"get-887\" width=\"1027\" height=\"706\" \/><\/div>\n<p data-track=\"33\">Fill in basic information<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9120\" title=\"get-888\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-888.jpg\" alt=\"get-888\" width=\"1198\" height=\"446\" \/><\/div>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9122\" title=\"get-890\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-890.jpg\" alt=\"get-890\" width=\"1140\" height=\"1012\" \/><\/div>\n<p data-track=\"34\">Add a knowledge base<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9121\" title=\"get-889\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-889.jpg\" alt=\"get-889\" width=\"1169\" height=\"401\" \/><\/div>\n<p data-track=\"35\">Click Create<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9123\" title=\"get-891\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-891.jpg\" alt=\"get-891\" width=\"1172\" height=\"931\" \/><\/div>\n<p data-track=\"36\">Enter the settings interface<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9124\" title=\"get-892\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-892.jpg\" alt=\"get-892\" width=\"845\" height=\"412\" \/><\/div>\n<p data-track=\"37\">Enter a debugging settings page<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9125\" title=\"get-893\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-893.jpg\" alt=\"get-893\" width=\"1332\" height=\"994\" \/><\/div>\n<p data-track=\"38\">Compare the contents of the original document:<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9127\" title=\"get-895\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-895.jpg\" alt=\"get-895\" width=\"876\" height=\"547\" \/><\/div>\n<p data-track=\"39\">Very good<\/p>\n<p data-track=\"40\">Next, you can distribute this application to business personnel as a product knowledge assistant, or you can connect this application to the company website or WeChat applet to directly face customers as AI customer service<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9126\" title=\"get-894\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/04\/get-894.jpg\" alt=\"get-894\" width=\"1038\" height=\"838\" \/><\/div>\n<p data-track=\"42\">Now we have an intelligent AI knowledge base that can not only improve work efficiency but also improve customer service quality. I hope this solution can help you!<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Today's sharing is about how to build a private AI knowledge base at zero cost, and this solution is especially suitable for salespeople who are faced with a large amount of product knowledge that needs to be memorized. A friend of mine, a middle-aged salesman who switched to a medical device company, recently talked to me about this problem: with a wide range of products and complex technical parameters, he needs to have a deep product knowledge base to recommend the right products for his customers. This is a challenge for him, because in addition to learning product knowledge, he also has to face the pressure of leadership and performance challenges, which makes his work doubly stressful. So I gave him a suggestion: provide the product descriptions and technical information to AI, and let AI learn it. In this way, salespeople who encounter problems when promoting the product can directly consult with the AI, or let the customers themselves consult with the AI.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[2403,2404,2405,2402],"collection":[],"class_list":["post-9107","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-llama3","tag-maxkb","tag-ollama","tag-2402"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/9107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=9107"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/9107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=9107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=9107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=9107"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=9107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}