Knowledge Space Management
You can upload enterprise internal documents and technical materials to the Knowledge Space page for unified management. The knowledge can serve as contextual reference to improve the accuracy of the agent's responses. Knowledge spaces can only be created and managed on the console, and only accounts with seats enabled can perform related operations.
Getting Started with Knowledge Bases
CodeArts Agent leverages knowledge bases primarily for unit test generation, code generation, and R&D Q&A, dramatically enhancing both accuracy and speed across these critical scenarios.
The following figure shows the process of how the tool processes user queries into answers visually. It includes important stages like retrieving data and making logical conclusions, making it easy for you to grasp how knowledge bases work.
- To fulfill service needs, organize your knowledge into distinct types, such as general, domain-specific, or individual expertise.
- Create a knowledge space to manage knowledge bases.
- Upload desired files to create a knowledge base. Then, choose a chunking method to break data source into manageable pieces. Each chunk is then transformed into a vector by an embedding model.
- CodeArts Agent can then reference knowledge bases for more accurate retrieval and generation.
Learn these key concepts before using knowledge bases for quick setup.
| Basic Concept | Description |
|---|---|
| Knowledge Space | A knowledge space is a collection of knowledge formed after chunking, vectorizing, indexing user-uploaded data, and storing it in a database. It is categorized based on actual usage dimensions. A knowledge space itself does not store content; it is used solely for the centralized management of knowledge bases. |
| Knowledge Base | A knowledge base organizes and stores different types of documents. These documents are categorized by their type and source for clear classification, making them easier to find and understand. |
| File | Files serve as the primary carrier of knowledge. To ingest them into a knowledge base for retrieval, configure a proper chunking strategy, select an embedding model, apply index filters, and define retrieval policies. |
| Chunk | Chunks refer to portions of a file. They are created when loading and splitting a file, serving as fundamental units for vectorization, storage, and recall. |
Constraints
| Package Edition | Max Capacity | Type of Knowledge Space Can Be Created |
|---|---|---|
| Free Edition | 500 MB | User |
| Basic Edition | 5 GB | Enterprise, Team, and User |
| Professional Edition | 20 GB | Enterprise, Team, and User |
Prerequisites
You have been assigned a seat. If not, you cannot create or manage a knowledge space.
Referencing a Knowledge Base in the Context
- Log in to the client as an enterprise member or administrator.
- In the input box on the chat panel, enter #, or choose
> Add Context. Then choose Knowledge Bases. - In the knowledge base list, select the knowledge space (for example, individual) created in 1. Figure 5 Selecting a knowledge space
- In the target knowledge space, select the knowledge base (for example, service-introduction) created in 3 and add it to the context.
- After the knowledge base is added, you can initiate a chat based on the knowledge base.
Managing Knowledge Bases
Table 7 shows the operation permissions of different roles on managing knowledge bases.
| Role | Enterprise Knowledge Base | Team Knowledge Base | User Knowledge Base |
|---|---|---|---|
| Enterprise administrator | All operations on all knowledge bases. | All operations on all knowledge bases. | All operations on all knowledge bases. |
| Team administrator | The following operations can be performed:
| All operations on knowledge bases created by members of their own team (including the team administrators). | All operations on the knowledge bases created by themselves. |
| Team member | The following operations can be performed:
| The following operations can be performed on knowledge bases created by members of their own team (including the team administrator):
| All operations on the knowledge bases created by themselves. |
| Enterprise member | The following operations can be performed:
| No operation permissions. | All operations on the knowledge bases created by themselves. |
| Operation | Procedure |
|---|---|
| Editing a knowledge space | On the knowledge space page, click |
| Deleting a knowledge space | Before deleting a knowledge space, you must clear all knowledge bases in the space.
|
| Test hit rates of knowledge bases. | The hit rate test is designed to run search queries against the knowledge base to verify the accuracy and relevance of retrieval results.
|
| Deleting a knowledge base | When content is severely outdated and holds no retention value, or contains critical errors where correction is too costly or impossible, follow the steps below to delete the knowledge base.
|
| Batch deleting knowledge bases | Deleting knowledge bases one by one manually is inefficient; you can batch delete knowledge bases through the following steps:
|
| View operation history on knowledge bases. |
|
| Re-importing a file | If file upload fails, check your network connection or file format, and click Reimport to try again.
|
| Deleting a file | When dealing with a small number of files, deleting them one by one is more intuitive and flexible, making it easier to locate and clear specific content.
|
| Batch deleting files | Deleting many files one by one manually is inefficient; you can also batch delete files using the following steps. This is ideal for scenarios such as knowledge base restructuring, version iterations, and deduplication, helping you keep your knowledge base organized.
|
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot




