knowledge base platform
By utilizing the topic configuration, data retrieval, and distributed lock modules of the knowledge base platform, the problems of uncustomizable editing and interoperability in existing technologies have been solved, enabling rapid data entry and efficient retrieval, thereby improving the efficiency and performance of enterprise internal knowledge management.
Patent Information
- Application Number
- CN202310387874.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2043-04-12
AI Technical Summary
Existing knowledge base document management platforms cannot enable rapid customized editing, cannot meet the complex search and query conditions within enterprises, and cannot interoperate with other projects, resulting in increased workload for knowledge entry personnel and reduced enterprise work efficiency.
This paper provides a knowledge base platform that includes a topic configuration module, a document configuration module, a document query module, and a distributed lock configuration module. It supports the rapid input of knowledge information, meets complex search query conditions, and realizes multi-threaded concurrent operation and real-time query through distributed lock and Redis caching technology.
It enables fast and efficient input of knowledge information, meets the complex search and query needs of enterprises, reduces labor costs, improves enterprise work efficiency, supports multi-threaded concurrent operation and millisecond-level query, and reduces the pressure on the query interface.
Smart Images

Figure CN116611515B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a knowledge base platform and its construction method. Background Technology
[0002] Existing knowledge base document management platforms suffer from the following drawbacks: they lack the ability to quickly customize document editing, requiring significant time to write specific formats; they cannot customize search criteria, limiting searches to the product's built-in search functionality; and they cannot interoperate with other projects for resource sharing. The primary reason for these shortcomings is that market-driven document management platforms are developed to meet the needs of countless enterprises, prioritizing universality in their design. This is a double-edged sword, making it difficult or impossible for these products to provide customized features when needed. Furthermore, as open-source products, they cannot interoperate with other projects within an enterprise. Therefore, when a company requires a complex document format, including customized elements such as topics, materials, learning information, knowledge points, tags, and questions, using existing document management platforms significantly increases the workload for knowledge entry personnel, failing to meet the company's daily operational needs. Summary of the Invention
[0003] Therefore, it is necessary to provide a knowledge base platform to address the aforementioned technical issues. This platform offers document management functions that enable rapid and efficient input of knowledge information, meets various complex search and query conditions within the enterprise, and integrates with other important projects to improve overall enterprise efficiency.
[0004] The present invention provides a knowledge base platform, comprising:
[0005] The theme configuration module is used to configure themes, including adding, editing, and deleting themes.
[0006] The data configuration module is used to configure data, including creating and editing data. The content of the data includes: topic category and data title. The topic category is the topic in the topic configuration module.
[0007] The data query module is used to perform data queries. The query conditions include: the topic category and the data title in the data configuration module. Data queries are performed by setting at least one of the query conditions.
[0008] In some embodiments, the system further includes a question bank configuration module for configuring the question bank for the data in the data configuration module, including adding questions and editing questions.
[0009] In some embodiments, the theme configuration module includes: theme code, theme name, and parent theme.
[0010] In some embodiments, when the query condition in the data query module is the name of the parent topic, the output results include the subtopics of that topic name.
[0011] In some embodiments, a distributed lock configuration module is also included, which is used to implement the function of multi-threaded concurrent modification of data / topic content through distributed locks; the distributed lock includes two granularities: project dimension and business dimension; the project dimension locks based on the project name as a condition, and the business dimension locks based on the topic code as a condition.
[0012] In some embodiments, the distributed lock is a Redis distributed lock.
[0013] In some embodiments, the information in the knowledge base platform is fully cached and updated in real time using Redis caching technology.
[0014] In some embodiments, the data query module includes: recording all query conditions and sorting them according to query frequency, and caching at least the top three query results by frequency through Redis.
[0015] By implementing the above-described solution of the present invention, the following beneficial effects can be obtained:
[0016] 1. A document management platform was built that enables rapid and efficient input of knowledge information, saving labor costs; it meets various complex search and query conditions within the enterprise, allowing for quick location of knowledge information; it utilizes the knowledge information entered by the staff to connect with other important projects within the enterprise, improving work efficiency and facilitating use by personnel in various departments; and it provides real-time / offline query functions for call center support projects.
[0017] 2. Implement multi-threaded concurrent document addition / update / deletion functionality with finer granularity based on distributed locks.
[0018] 3. By using caching technology to cache all knowledge information and update it in real time, millisecond-level queries can be achieved without using external query middleware, laying a good foundation for agent-assisted real-time / offline queries.
[0019] 4. Due to the diversity and complexity of search criteria and the high QPS, hot searches are cached, which reduces the pressure on the query interface while ensuring the accuracy of the query. Attached Figure Description
[0020] Figure 1 These are schematic diagrams illustrating the structure of some embodiments of the knowledge base platform of this invention;
[0021] Figure 2This is a flowchart of some embodiments of creating / editing data in the data configuration module of the present invention;
[0022] Figure 3 This is a schematic diagram of the interface of the data configuration module in some embodiments of the present invention.
[0023] Figure 4 This is a schematic diagram of the interface of the title configuration module in some embodiments of the present invention.
[0024] Figure 5 This is a schematic diagram of some embodiments of theme-related fields in the theme configuration of the present invention. Detailed Implementation
[0025] Embodiments of the invention will now be described more fully with reference to the accompanying drawings, in which embodiments of the invention are illustrated. However, the invention may be practiced in many different forms, and should not be construed as limited to the embodiments set forth herein.
[0026] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. As used herein, the singular forms “a” and “this” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that, when used herein, the term “comprising” specifies the presence of the stated features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof.
[0027] Unless otherwise defined, the terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. Terms used herein shall be interpreted as having the same meaning as they have in the context of this specification and in the relevant field, and shall not be interpreted in an idealized or overly formal sense, unless specifically defined herein.
[0028] Before describing the specific details of this application, the meanings of the terms used in this application will be briefly explained.
[0029] QPS (Queries per second) is a measure of how much traffic a specific query server processes within a given time period.
[0030] Redis: Redis is a key-value storage system. Similar to Memcached, it supports a wider range of value types, including string, list, set, sorted set (zset), and hash. These data types support push / pop, add / remove, intersection, union, difference, and more complex operations, all of which are atomic. Furthermore, Redis supports various sorting methods. Like Memcached, data is cached in memory for efficiency. The difference is that Redis periodically writes updated data to disk or appends modification operations to a log file, and it also implements master-slave synchronization.
[0031] Project dimension: refers to the project level. For example, the knowledge base platform in this application is a project, and the project name is knowledge base platform.
[0032] Business dimension: refers to the business level, such as specific topics, materials, and questions in a knowledge base platform project.
[0033] Figure 1 Flowcharts of some embodiments of the knowledge base platform of the present invention are shown.
[0034] like Figure 1 As shown, it includes:
[0035] The theme configuration module 100 is used to configure themes, including adding, editing, and deleting themes;
[0036] The data configuration module 200 is used for configuring data, including creating and editing data. The data content includes: topic categories and data titles. The topics in the topic categories are the topics in the topic configuration module. Further preferably, the data content can also include: data tags, data visibility, knowledge information, and learning information. The knowledge information and learning information can have their visibility set, within the scope of data visibility.
[0037] Figure 2 The flowchart illustrates some embodiments of creating / editing data in the data configuration module of the present invention.
[0038] like Figure 2As shown, you can create and edit data by clicking "Save New Data," "Save and Publish New Data," "Save Edit Data," and "Save and Publish Edit Data." Saving creates / updates a draft version, while publishing creates / updates the final version. These draft and final versions provide a traceability function for data configuration.
[0039] Figure 3 A schematic diagram of the interface of the data configuration module according to some embodiments of the present invention is shown.
[0040] like Figure 3 As shown, the interface of the data configuration module is divided into three parts: the basic information section includes: data title, topic, data tags, and data visibility; the knowledge information section includes: knowledge content, knowledge tags, and knowledge visibility; and the learning materials section includes: learning visibility, learning attachments, and learning content. By setting the visibility, different users can see different information.
[0041] The data query module 300 is used to perform data queries. The query conditions include: the topic category and the data title in the data configuration module. Data queries can be performed by setting at least one of the query conditions.
[0042] In some embodiments, the system further includes a question bank configuration module for configuring the question bank for the data in the data configuration module, including adding questions and editing questions.
[0043] Figure 4 A schematic diagram of the interface of the title configuration module according to some embodiments of the present invention is shown.
[0044] like Figure 4 As shown, the interface of the question configuration module includes: question number, topic, document title, question type, question stem, options, correct answer, and enabled status. The configured questions can be easily viewed by the operator.
[0045] In some embodiments, the topic configuration module includes: topic code, topic name, and parent topic. When the query condition is the topic name of the parent topic, the output includes the subtopics of that topic name.
[0046] Figure 5 The diagram illustrates some embodiments of topic-related fields in the topic configuration of the present invention.
[0047] like Figure 5As shown, the topic-related fields include: topic code, topic name, parent topic, description, update time, operator, and operation. The topic code and topic name are unique and cannot be repeated. The parent topic is selected via a drop-down menu to establish parent-child topic relationships. The update time and operator are automatically updated after the save operation.
[0048] In some embodiments, a distributed lock configuration module is also included, used to implement the function of concurrent modification of data / topic content by multiple threads through a distributed lock; the distributed lock includes two granularities: project dimension and business dimension; the project dimension locks based on the project name, and the business dimension locks based on the topic code. Preferably, the distributed lock is a Redis distributed lock.
[0049] This distributed lock, implemented using Redis, has two granularities. The first is project-level granularity, where a Redis lock needs to be requested at the project level. Once successfully requested, the Redis locks for each project are isolated from each other. Secondly, within a project, locking can be applied at the business level. For example, in the data addition and editing functions, data names cannot be duplicated. Since data topics are independent modules, it might lead to selecting a deleted topic. Therefore, locking the entire data module based on these concurrency conditions would significantly reduce overall efficiency. Instead, locking is based on the project name (e.g., a knowledge base platform) and the topic code. When multiple users operate on the same data simultaneously, as long as the fields being operated on do not include the data name and topic, concurrent operations can be performed safely, providing excellent performance even under multi-user operation. Similar methods are also applied to modules such as topics and questions.
[0050] In some embodiments, the information in the knowledge base platform is fully cached and updated in real time using Redis caching technology.
[0051] In some embodiments, the data query module includes: recording all query conditions and sorting them according to query frequency, and caching at least the top three query results by frequency through Redis.
[0052] The various functions of the knowledge base platform in this invention can be implemented in the following ways: microservice functionality based on Spring Cloud; data storage and interaction functionality based on MyBatis; query interface and agent-assisted real-time / offline query caching functionality based on Redis; timed update caching functionality based on XXLJOB; fine-grained multi-threaded concurrent document addition / update / deletion functionality based on distributed locks; resource information such as images / videos in knowledge information stored on OSS; dynamic configuration parameters based on the company's internal configuration center, dynamically adjusting dynamic parameters such as pagination number / download links; and interaction with supplier interfaces based on the company's internal gateway system.
[0053] The system design utilizes the company's internal configuration center and gateway system, which not only ensures interface efficiency but also significantly improves interface security; Redis caching technology is used to enable real-time / offline queries assisted by agents.
[0054] Referring to the foregoing exemplary description of the present invention, those skilled in the art will clearly understand that the present invention has the following advantages: it constructs a document management platform that can quickly and efficiently input knowledge information, saving labor costs; it meets various complex search and query conditions within the enterprise, quickly locating knowledge information; it utilizes the knowledge information entered by the personnel to connect with other important projects within the enterprise, improving the enterprise's work efficiency and facilitating use by personnel in various departments; and it provides real-time / offline query functions for agent assistance projects. It implements multi-threaded concurrent document addition / update / deletion functions with finer granularity based on distributed locks. Through caching technology, it fully caches and updates knowledge information in real time, achieving millisecond-level queries without using external query middleware, laying a good foundation for real-time / offline queries for agent assistance. Due to the diversity and complexity of search conditions and the high QPS, it caches hot searches, ensuring query accuracy while reducing the pressure on the query interface.
[0055] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0056] The embodiments of the present invention have now been described in detail. To avoid obscuring the concept of the invention, some details known in the art have not been described. Those skilled in the art will fully understand how to implement the technical solutions disclosed herein based on the above description.
[0057] While specific embodiments of the present invention have been described in detail by way of examples, those skilled in the art should understand that the above examples are for illustrative purposes only and are not intended to limit the scope of the invention. Those skilled in the art should understand that modifications can be made to the above embodiments or equivalent substitutions can be made to some technical features without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.
Claims
1. A knowledge base platform, characterized in that, include: The theme configuration module is used to configure themes, including adding, editing, and deleting themes. The data configuration module is used to configure data, including creating and editing data. The data content includes: topic categories and data titles. The topics in the topic categories are the topics in the topic configuration module. The data query module is used to perform data queries. The query conditions include: the topic category and the data title in the data configuration module. Data queries are performed by setting at least one of the query conditions. The distributed lock configuration module is used to enable multi-threaded concurrent modification of data / topic content through distributed locks. The distributed lock includes two granularities: project dimension and business dimension. The project dimension locks based on the project name, while the business dimension locks based on the topic code. The information in the knowledge base platform is fully cached and updated in real time using Redis caching technology; The data query module includes: recording all query conditions and sorting them according to query frequency, and caching at least the top three query results by frequency through Redis.
2. The knowledge base platform according to claim 1, characterized in that, Also includes: The question bank configuration module is used to configure the question bank for the materials in the data configuration module, including: adding questions and editing questions.
3. The knowledge base platform according to claim 1, characterized in that, The theme configuration module includes the following content: theme code, theme name, and parent theme.
4. The knowledge base platform according to claim 3, characterized in that, In the data query module, when the query condition is the name of the parent topic, the output results include the subtopics of that topic name.
5. The knowledge base platform according to claim 1, characterized in that, The distributed lock is a Redis distributed lock.
Citation Information
Patent Citations
A knowledge base comprehensive analysis and application service system
CN109598656A
Document management, operation and maintenance system
CN111767441A
Software version information management method, system and equipment and storage medium
CN114625411A