Recently, friends have often asked:
How can DeepSeek combine with our company's internal knowledge to generate answers?
How can DeepSeek generate content based on popular Xiaohongshu notes?
If you want AI to combine with local information, you have to upload files every time you create a session, and there are file size limits. It's too troublesome. Is there a way to optimize this?
My answer is: Build a personal knowledge base!
1. By building a personal knowledge base, you can make DeepSeek generate answers for you better and more accurately.
2. You can add, remove, or update content at any time, without frequently uploading reference files, and without any coding knowledge. It is simple and efficient to use.
01
What Is a Personal Knowledge Base
What is a personal knowledge base, and how does it work?
If DeepSeek is compared to our brain, then a conversation is like an exam, and DeepSeek's answers are based on the knowledge we have learned (the data used for training).
A personal knowledge base is equivalent to turning the exam into an open-book exam. By "studying" and "searching" within the knowledge base content, the generated answers become more accurate.
For example, when I ask DeepSeek-R1 to recommend attractions related to Black Myth: Wukong, after pairing it with a knowledge base of popular Xiaohongshu travel guides, its answer looks like this:
Not only does the answer content reference the knowledge base materials, but even the structure and layout of the content are similar. The generated answer can basically be used directly.
This article teaches three ways to build a personal knowledge base, meeting your needs in different scenarios:
1. Locally deploy DeepSeek + build a knowledge base
Advantages: No internet connection required, strong data privacy, completely free;
Disadvantages: There are certain configuration requirements, and basically the full version of DeepSeek-R1 cannot be used;
Suitable for enterprises with relatively high data privacy requirements;
2. Call DeepSeek via API + build a knowledge base
Advantages: Convenient, supports the full version of DeepSeek-R1, and many large models are available;
Disadvantages: Consumes Tokens, and long-term use will incur certain costs;
3. Directly use DeepSeek + an all-in-one knowledge base tool
Advantages: Simple to use, supports the full version of DeepSeek-R1, and you can use knowledge bases shared by others;
Disadvantages: The PC version only supports uploading local files;
Suitable for beginner users. Without local deployment, you can quickly have a personal knowledge base, and it is completely free.
02
Locally Deploy DeepSeek to Build a Knowledge Base
Ollama+AnythingLLM
To locally deploy DeepSeek and build a knowledge base, you need to use Ollama and AnythingLLM.
We need to use Ollama to download DeepSeek. Those who don't know how can refer to the previous tutorial on locally deploying DeepSeek.
A nanny-level tutorial for locally deploying DeepSeek, even beginners can do it!
After downloading DeepSeek, we enter the system's environment variable settings. (Path: Right-click My Computer - Advanced System Settings)
Under WIN's user variables, click New.
Enter the variable name:OLLAMA_HOST
Variable value:0.0.0.0:11434
Click OK.
Note: When building the knowledge base and using it afterward, Ollama needs to be running. Do not exit!!
If you accidentally close Ollama, you can search for PowerShell in the taskbar and click to open it.
Open the AnythingLLM official website and choose the corresponding system version to download.
Friends who find the official website download slow can also directly use the installation package I've prepared.
Get"AnythingLLM Installation Package" , scan the QR code to follow and reply: AnythingLLM
After the download is complete, just install it directly.
Next is the key part of creating a personal knowledge base! We click the settings icon.
In AI Provider - LLM Preferences, select Ollama as the LLM provider, and enter in Ollama Base URLhttp://0.0.0.0:11434。
Then you can select the local DeepSeek large model at the position shown in the diagram, and click Save in the upper right corner.
Return to the homepage,click + New Workspace。
Next, we can upload content to the knowledge base.
Itsupports uploading local files, and can alsoupload by entering a web link, so whether it's files we summarize and internalize, or useful information we come across online, all can be used to enrich the knowledge base.
After uploading, files will first go to the staging area on the left (shared by all knowledge bases, so when there are multiple knowledge bases, we'd best create folders in the staging area to manage them separately).
The workspace on the right is the entire content of the knowledge base, which can be added to or removed from at any time to optimize it.
In the chat interface, we select the workspace, and DeepSeek will generate more precise answers based on the document content inside.
03
SiliconFlow API+Cherry Studio
Building a Knowledge Base
What if your personal setup isn't sufficient, but you still want to use the full DeepSeek-R1 + knowledge base?
You can call DeepSeek through an API, and then build a knowledge base. When building the knowledge base, you also need to select an embedding model.
We go to the SiliconFlow official website and click API Keys.
Create a new API key, click to copy the key for later use.
Open the Cherry Studio official website and download the application.
After installation is complete, enter the application and click Settings in the lower left corner.
In Model Services, select SiliconFlow, enter the key we just created, and click Check.
Check DeepSeek-R1. If a connection successful reminder pops up, it means you can normally use the full DeepSeek-R1 for conversations.
If it is unsuccessful, you need to click Manage on the page and manually add the DeepSeek-R1 model.
We also need to return to the SiliconFlow official website to configure an embedding model.
The embedding model can convert the files we upload into numbers that computers can easily understand, and then store them in its vector database. When we ask it questions, it will use RAG technology to search the database for relevant answers and finally output them to us.
In the Model Square, select Embedding.
Click to copy the model name:BAAI/bge-m3。
Return to the Cherry Studio interface and click Manage.
Click the + sign to add an embedding model.
Then we enter the knowledge base and click Add.
Fill in the knowledge base name and select the embedding model as BAAI/bge-m3, then click Confirm.
On the file upload page, it supports many file formats.
It supports searching within the knowledge base and will display the content proportion. This makes it convenient for us to view the contents of the knowledge base at any time.
We return to the chat interface, select the DeepSeek-R1 model and the knowledge base we just created in the dialog box at the bottom, and we can start using it.
The generated answer will display the cited content and specific cited document information at the end.
04
ima.copilot
One-stop use of R1 + knowledge base
If you are a beginner and find the local deployment and API calls above still rather complicated, then this last tool is even more suitable for you.
Use ima.copilot to create a knowledge base with one click; the interface is clean, the operation is simple, and it is completely free.
No need to combine multiple tools; chat directly with the full-power DeepSeek-R1.
We need to download the ima.copilot client. After opening it, click Knowledge Base on the home page.
Click Create Knowledge Base.
Enter the knowledge base name and description.
Click Upload File.
One convenient thing about ima.copilot is that it works with the Mini Program version.
When I see a particularly good WeChat official account article on my phone, I can tap the "…" in the upper right corner, select More Open With, and save it to my knowledge base with one click.
In the knowledge base interface, we can start chatting directly with the full-power DeepSeek-R1.
The most powerful thing about ima.copilot is that even if you don't know how to build a knowledge base, you can still use knowledge bases that others have shared with you.
Building a personal knowledge base is a great learning habit.
When we come across good content in daily life, we put it into the knowledge base, and it canquickly extract the core viewpoints of documents, saving 90% of the time spent organizing information。
turnfragmented information into a structured knowledge system, continuously iterate and update,and build the "ultimate DeepSeek plugin" through tags and bidirectional links.
No complex instructions needed; even without understanding code or with zero foundation, you can generate precise content, quickly building a differentiated professional barrier of "AI + vertical field".
Among these three methods of building a knowledge base, which one do you think suits you better? Start using them now~