Building a Private Knowledge Base Using Cloud Studio
Cloud Studio + ollama + deepseek + nomic-embed-text + anythingllm + Private Knowledge === AI Private Knowledge Base
The image is the address of the AI-generated image
The requirements have mostly been covered above, let's start our operations.
Still open our old friend Cloud Studio, now some of us refer to Cloud Studio as CS. Hope CS can grow stronger and achieve new heights, becoming our local Colab.
Still select the homepage banner, directly choose the 32b model
Wait for resource allocation, and start up
After completion, it looks like this
Cloud Studio has already embedded anythingllm for us. If we need to install and use it on our local computer, we need to download and install anythingllm. Of course, if we just want a simple experience, we don't need to download it, but can directly use the embedded web provided by CS.
We just need to open the embedded anythingllm page in the browser.
The step of pulling deepseek-r1:32b can be omitted because CS has already downloaded the model for us, provided that the 32 plan was selected. If we need to use 32b, we need to download it by pulling ollama pull deepseek-r1:32b
Pull nomic-embed-text
with ollama pull nomic-embed-text
If using locally, choose to download the anythingllm client
Open initialization
Only local installation of anythingllm requires initialization; using Cloud Studio is already initialized by default. However, remember to execute the pull commands in the Cloud Studio terminal; the speed may be a bit slow since the resources are on foreign servers.
Click start
Scroll down and select ollama
Do you remember when we mentioned deploying deepseekr1 with ollama to provide the API? The URL here is where you need to fill in the API address. If you don't know how to fill it, open Cloud Studio and click on the port.
See which port provides the ollama service, click the small globe to open a new page
Copy the URL here, mine is https://ottzkl-pkzulq-8434.app.cloudstudio.work, and paste it into the anythingllm client
Remember, make sure to remove the trailing slash from the URL; it should not have a slash, https://ottzkl-pkzulq-8434.app.cloudstudio.work
After entering the URL, the model above will automatically recognize it. Scroll down to select the appropriate model, for example, we choose 32b. We can keep the other parameters as default; modifying parameters is beyond the scope of this article.
Then keep clicking next until initialization is complete.
Let's start with some simple settings
Click the small wrench icon
2025/2/17 15:20
The operations at this point are consistent with the web page operations.
Click embedder to set preferences
Select ollama, the address is the same as the previous API address, paste it in, choose nomic-embed-text, and click save changes.
Clicking the small wrench icon now shows a back arrow; click it to return to the homepage.
Create a new workspace on the homepage
Enter the name of the workspace and then click save.
Let's test it first to see if we can call deepseek normally
OK, it's normal. Click the upload button next to the workspace we created to upload materials.
Many file formats are supported, including txt, doc, csv, xls, docx, xlsx, pdf, URLs, etc. It also supports audio and video files, but text files are the best format for easier, faster, and more accurate recognition.
I randomly found a few PDF files online
Drag, select all, and move them to the workspace
Scroll down and select save.
Wait a moment for the workspace data to update after uploading
Wait for the success prompt, and then pin the uploaded files so that our materials will be prioritized for calling
Close the dialog box, and let's ask questions
Click hide citations to see which materials are currently referenced.
Thus, the private knowledge base is set up.
Come get the benefits, Tencent Cloud Cloud Studio big benefits!!! One
Come get the benefits, Tencent Cloud Cloud Studio big benefits!!! Two
Come get the benefits, Tencent Cloud Cloud Studio big benefits!!! Three
Come get the benefits, Tencent Cloud Cloud Studio big benefits!!! Four