Knowledge Base Tutorial
最后更新于
这有帮助吗?
最后更新于
这有帮助吗?
In version 0.9.1, CherryStudio introduces the long-awaited knowledge base feature.
Below, we will present a step-by-step guide on how to use CherryStudio's knowledge base in detail.
Find models in the model management service. You can quickly filter by clicking "Embedding";
Find the desired model and add it to My Models.
Knowledge Base Entry: In the CherryStudio toolbar on the left, click the knowledge base icon to enter the management page;
Add Knowledge Base: Click "Add" to start creating a knowledge base;
Naming: Enter the name of the knowledge base and add an embedding model. Taking bge-m3 as an example, you can complete the creation.
Add Files: Click the "Add Files" button to open the file selection dialog;
Select Files: Choose supported file formats such as pdf, docx, pptx, xlsx, txt, md, mdx, etc., and open them;
Vectorization: The system will automatically perform vectorization. When "Completed" (green ✓) is displayed, it indicates that vectorization is complete.
CherryStudio supports multiple ways to add data:
Folder Directory: You can add an entire folder directory. Files in supported formats under this directory will be automatically vectorized;
Website Link: Supports website URLs, such as https://docs.siliconflow.cn/introduction;
Sitemap: Supports sitemap in xml format, such as https://docs.siliconflow.cn/sitemap.xml;
Plain Text Notes: Supports entering custom content in plain text.
Hints:
Illustrations in the imported knowledge base documents are temporarily not supported for conversion to vectors and need to be manually converted to text;
Using a website URL as a knowledge base source may not always be successful. Some websites have strict anti-scraping mechanisms (or require login, authorization, etc.), so this method may not be able to obtain accurate content. It is recommended to test search after creation.
Generally, websites provide sitemaps. For example, CherryStudio's sitemap. In most cases, you can get relevant information by adding /sitemap.xml
after the root address of the website (i.e., URL). For example, aaa.com/sitemap.xml
.
If the website does not provide a sitemap or the URLs are complex, you can create a sitemap xml file yourself. The file temporarily needs to be filled in using a direct link that is directly accessible on the public network. Local file links will not be recognized.
You can let AI generate sitemap files or have AI write a sitemap HTML generator tool;
Direct links can be generated using OSS direct links or cloud drive direct links, etc. If there is no ready-made tool, you can also go to the ocoolAI official website, log in and use the free file upload tool in the website top bar to generate direct links.
Once files and other materials are vectorized, you can perform queries:
Click the "Search Knowledge Base" button at the bottom of the page;
Enter the content to be queried;
The search results are presented;
And the matching score of the result is displayed.
Create a new topic. In the conversation toolbar, click "Knowledge Base". The list of created knowledge bases will expand. Select the knowledge base you need to reference;
Enter and send a question. The model will return an answer generated through retrieval results;
At the same time, the data source of the reference will be attached below the answer, allowing you to quickly view the source file.