Document processing method, apparatus, device, and computer readable medium

By mapping knowledge platform information to virtual file system parameters, generating and retrieving knowledge documents using a large language model, and combining ontology semantics and permission management, the problems of poor retrieval quality and insufficient permission management in enterprise knowledge platforms are solved, achieving high-quality document search and knowledge sharing.

CN123178598APending Publication Date: 2026-11-27BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611347419.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When existing enterprise knowledge platforms are designed for large language models, the retrieval quality is poor and fails to meet business needs. Problems include weak document association, lack of knowledge extraction and derivation, insufficient access control, and lack of knowledge update mechanisms.

Method used

The knowledge objects, attributes, relationships, and management information in the knowledge platform are mapped to file system parameters of the virtual file system. Knowledge documents are generated through a large language model, and associations are established in the virtual file system. Document retrieval and sharing are realized by utilizing ontology semantic constraints and permission management.

Benefits of technology

It improves document search quality, meets enterprise-level business needs for multi-user access, permission isolation, and dynamic updates, ensures the accuracy and consistency of knowledge documents, and supports knowledge retrieval across business domains and ontology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178598A_ABST
    Figure CN123178598A_ABST
Patent Text Reader

Abstract

The application discloses a document processing method, device and equipment and a computer readable medium, and relates to the technical field of computers. A specific embodiment of the method comprises: mapping knowledge objects, knowledge object attributes, knowledge object relationships and knowledge object management information in a knowledge platform into file system parameters of a virtual file system; in response to a document upload, inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to a directory structure of the file system parameters and a business domain to which the knowledge document belongs, and establishing an association between the knowledge document and an existing knowledge document; and in response to a document retrieval request, the large language model accesses the knowledge document layer by layer according to index files in each layer in the directory structure to retrieve a document. The embodiment can improve the quality of document search to meet business requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a document processing method, apparatus, device, and computer-readable medium. Background Technology

[0002] A knowledge platform is used to aggregate and organize scattered documents within an enterprise, providing unified knowledge storage, processing, and access capabilities to external entities. In recent years, such knowledge platforms have increasingly served large language models, which are constrained in several ways when consuming knowledge. For example, the capacity of the context window and the strength of reasoning ability both affect the quality of reasoning.

[0003] In the process of realizing this invention, the inventors discovered that the prior art has at least the following problems: when existing enterprise knowledge platforms are oriented towards large language models, the retrieval quality is poor and it is difficult to meet business needs. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a document processing method, apparatus, device, and computer-readable medium that can improve document search quality to meet business needs.

[0005] To achieve the above objectives, according to one aspect of the present invention, a document processing method is provided, comprising: Map the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; In response to document upload, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to the directory structure of its business domain and the file system parameters, thereby establishing a connection between the knowledge document and existing knowledge documents; In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

[0006] The method further includes: Identify the business objects and / or business relationships to be modeled to generate modeling tasks; For the modeling task, ontology fragments are generated according to the task dependency order, and consistency checks are performed. Publish the verified ontology fragments and synchronize them to a relational database for querying by the virtual file system; The step of inputting the document into a large language model to generate a knowledge document includes: Based on ontology fragments in the relational database, a large language model extracts the content of the document to generate a knowledge document.

[0007] The step of inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to the directory structure of its business domain and the file system parameters, and establishing the association between the knowledge document and existing knowledge documents, includes: The document is stored in the raw directory of the Home directory corresponding to the user or department, and the parsing result of the document is written to the resolved directory corresponding to the raw directory; The large language model reads the parsing results in the resolved directory, generates the knowledge document within the scope of the business domain and ontology type, and writes the knowledge document into the virtual file system according to the directory structure of the business domain and the file system parameters; Update the index of the business domain to which the knowledge document belongs, the index of the ontology to which it belongs, and the knowledge document index based on the knowledge document, and establish the reference relationship between the knowledge document and other knowledge documents based on the relationship between the ontology.

[0008] The large language model reads the parsing results from the resolved directory and generates the knowledge document within the scope of its business domain and ontology type, including: The large language model reads the parsing results from the resolved directory and generates derived documents within the scope of the relevant business domain and ontology type; The derived document is evaluated for confidence level. If the confidence level is high, the derived document is used as the knowledge document. If the confidence level is low, the derived document is submitted for manual review or correction to obtain the knowledge document.

[0009] In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents, including: The document retrieval request is neither cross-domain nor cross-ontology. The large language model first reads the index of the business domain to determine the business domain, and then determines the ontology type based on the index of the business domain. After entering the ontology type, it reads the index of the corresponding ontology to obtain the document summary, and then reads the knowledge document based on the document summary. The document retrieval request is cross-domain or cross-ontology. The large language model combines the business semantics corresponding to the document retrieval request to obtain the ontology, and combines multiple business domains and / or multiple ontologs corresponding to the ontology to determine the knowledge document. The document retrieval request includes complex retrieval conditions, and the large language model searches the underlying database according to the complex retrieval conditions to determine the knowledge documents.

[0010] The method further includes: The virtual file system is implemented based on a network file system, a user-space file system, WebDAV, or SMB protocol; The system converts directory and file operation requests into queries to the underlying data source and returns the query results using the constructed files and directories. After a user logs into the virtual file system, an independent view is displayed, and document isolation is achieved through virtual file system users, virtual file system user groups, and virtual file system permission bits.

[0011] The method further includes: Send a link to the knowledge document to the target user via a symbolic link, and create a copy of the knowledge document using the cp command; The permissions and ownership of the replicas are adjusted using the chmod and chown commands, and the hard link command is used to achieve deduplication and sharing of identical knowledge in the replicas.

[0012] And / or, The method further includes: In response to feedback from user interactions with the large language model, the corresponding knowledge documents are modified and updated. Obtain document access time to identify knowledge documents that have not been accessed for a long time; Logically delete knowledge documents that have not been accessed for a long time, or adjust the weight of knowledge documents by combining access time and citation frequency using a large language model, so as to increase the weight of frequently used knowledge documents and decrease the weight of knowledge documents that have not been accessed for a long time.

[0013] According to a second aspect of the present invention, a document processing apparatus is provided, comprising: The file module is used to map knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; The association module is used to respond to document upload by inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to the directory structure of its business domain and the file system parameters, thereby establishing an association between the knowledge document and existing knowledge documents. The retrieval module is used to respond to document retrieval requests. The large language model accesses knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

[0014] According to a third aspect of the present invention, a document processing electronic device is provided, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.

[0015] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method as described above.

[0016] One embodiment of the above invention has the following advantages or beneficial effects: It maps knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; in response to document upload, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to its business domain and the directory structure of the file system parameters, establishing a connection between the knowledge document and existing knowledge documents; in response to a document retrieval request, the large language model accesses the knowledge document layer by layer according to the index files in the directory structure to retrieve the document. By retrieving documents in the virtual file system of the knowledge platform through the large language model, the document search quality can be improved to meet business needs, since the virtual file system stores documents according to the file system parameters.

[0017] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0018] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein: Figure 1 This is a schematic diagram of the main flow of a document processing method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the process of publishing an ontology according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating the application of a virtual file system according to an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the mapping from the knowledge platform to the virtual file system according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the user knowledge directory structure according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the process of writing knowledge documents into a virtual file system according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the process for generating knowledge documents according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the document retrieval process according to an embodiment of the present invention; Figure 9This is a schematic diagram of the process of sharing knowledge documents according to an embodiment of the present invention; Figure 10 This is a schematic diagram of the process for updating knowledge documents according to an embodiment of the present invention; Figure 11 This is a schematic diagram of the main structure of a document processing apparatus according to an embodiment of the present invention; Figure 12 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied; Figure 13 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0019] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0020] The consumption of knowledge by large language models is subject to many constraints, and knowledge platforms oriented towards large language models have roughly gone through three stages.

[0021] The first stage is based on a retrieval-enhanced generation (RAG) scheme. Documents are first segmented into chunks, vectorized using an embedding model, and then stored in a vector library. When answering questions, several semantically similar chunks are retrieved and concatenated with prompts from a large language model to assist in generating the answer. This allows a large language model with limited context to utilize a large-scale knowledge base.

[0022] The second stage is based on a graph retrieval enhancement (GraphRAG) solution. Building upon fragmentation, entities and relationships are extracted from the document text to construct a knowledge graph. During retrieval, related entities and fragments are retrieved by following the graph, thus recovering the connections between fragmented documents to some extent.

[0023] The third stage is based on file systems and command lines. As the context of large language models increases and their reasoning becomes more powerful, the system no longer needs vectorized retrieval. Instead, it exposes knowledge directly in the form of file systems and command lines, allowing the large language model to use standard commands such as ls, cat, grep, and find to browse, read, and search, fully leveraging the model's own reasoning capabilities. There are already some practical applications in this area, such as code development tools that use file systems to understand code repositories, and personal knowledge bases (LLM Wikis) generated by large language models and organized in file format.

[0024] When the above solutions are used in enterprise-level knowledge platforms, they have the following drawbacks.

[0025] Disadvantage 1: Traditional RAG-based solutions suffer from poor retrieval quality, weak document connections, and a lack of knowledge extraction and derivation. RAG shard size is entirely determined manually based on experience; shards that are too large exceed the context or introduce noise, while shards that are too small break semantics and lack complete context. There is no definitive optimal sharding method, resulting in inconsistent quality and high noise levels in the retrieved content. Connections between shards, between documents, and between paragraphs are disrupted during sharding. While GraphRAG uses entity relationship graphs to recover some connections, the granularity of sharding remains an issue, and the extracted connections are based solely on the literal meaning of the documents, lacking the enterprise's own business experience, leading to numerous connection errors. More importantly, these solutions merely shard the original documents for retrieval without further knowledge extraction and derivation; the knowledge remains at the level of the original documents.

[0026] Disadvantage 2: Knowledge building based on large language models is mostly done on local file systems, using personal document wikis. Moving it to a knowledge platform lacks management mechanisms for knowledge isolation, sharing permissions, and metadata. Currently, knowledge building based on large language models and file systems is basically run locally by a single user, who can see all files by default. However, in an enterprise, there are complex ownership and authorization relationships between documents, users, and departments. Different people should see different things according to their roles. The single-machine approach on the file system cannot present different views to different people according to their roles and authorizations, nor can it share knowledge with multiple people without copying it. Furthermore, there is no unified management of metadata such as security levels, creators, and keywords, making it difficult to support a multi-user, multi-department enterprise knowledge platform.

[0027] Disadvantage 3: The knowledge extracted and derived from the large language model lacks constraints and is not combined with the company's own business experience. When organizing knowledge using a file system, a large language model is often needed to summarize the original document into higher-level knowledge. However, the current extraction process is unconstrained and purely based on the text: the extracted knowledge and connections only come from the literal meaning of the document, lacking business experience and relevance to actual business, making it difficult to form enterprise-level knowledge assets.

[0028] Disadvantage 4: Lack of mechanisms for updating, disclosing outdated, and separating frequently used knowledge. Knowledge is not static. Business changes, and users' understanding of the same knowledge also changes; old interpretations may have become outdated. Most existing solutions input knowledge only once, failing to continuously update knowledge based on user feedback, identify and remove outdated knowledge that has not been used for a long time, or differentiate knowledge based on access frequency. The knowledge base includes obsolete and invalid content, hindering the retrieval of valid knowledge.

[0029] To address the issue of poor retrieval quality failing to meet business needs, the following technical solutions from the embodiments of the present invention can be adopted.

[0030] See Figure 1 , Figure 1 This is a schematic diagram of the main flow of a document processing method according to an embodiment of the present invention. Specifically, it includes the following steps: S101. Map the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system.

[0031] This invention applies to enterprise-level knowledge platforms for large language models (LLMs) and agents. For example, it is suitable for scenarios requiring enterprise-level, multi-user, permission-isolated, ontology-constrained, dynamically updatable, and hot / cold data separation knowledge platform services to large language models / agents in the form of a file system.

[0032] First, a virtual file system is constructed. This virtual file system does not store business data; responses are dynamically generated in real-time by the underlying data source and ontology during file operations. It's important to emphasize that, from the perspective of the large language model / Agent, the virtual file system is perceived as a regular file system. Accessing it using standard commands such as ls, cat, grep, and find is no different from operating on local files.

[0033] The virtual file system is based on the databases and middleware commonly used in knowledge platforms. The core of the virtual file system lies in mapping the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to the file system parameters of the virtual file system.

[0034] Specifically, knowledge objects include users and departments. Knowledge object attributes include documents. Knowledge object relationships include permissions. Knowledge object management information includes metadata, business domains, ontology types, and ontology relationships. The virtual file system's file system parameters include file system users, user groups, files, permission bits, extended attributes, directories, and symbolic / hard links.

[0035] The mapping relationships include: users are mapped to file system users, departments are mapped to user groups, documents are mapped to files, permissions are mapped to permission bits, metadata is mapped to extended attributes, business domains / ontology types are mapped to directories, and ontology relationships are mapped to soft links / hard links.

[0036] Through the above mapping, the knowledge objects, attributes, relationships, and management information such as users, departments, documents, permissions, metadata, business domains, ontology types, and ontology relationships in the knowledge platform are mapped one by one to the virtual file system, so that all subsequent operations on the knowledge platform can be completed through standard file system commands.

[0037] S102. In response to document upload, input the document into the large language model to generate a knowledge document, and write the knowledge document into the virtual file system according to the directory structure of the business domain and file system parameters, and establish the association between the knowledge document and the existing knowledge document.

[0038] In response to document uploads, the document is input into the large language model, parsed, and then used to generate knowledge documents. The parsing of the large language model is not arbitrary, but based on ontology semantic constraints within the virtual file system. The ontology provides the large language model with the enterprise's business semantics, limiting the candidate range for selecting business domains and ontology types to the object types and associated types already defined in the ontology. The knowledge documents are then written into the virtual file system according to their directory structure based on their respective business domains and file system parameters, establishing associations between the knowledge documents and existing knowledge documents.

[0039] S103. In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

[0040] In response to document retrieval requests, the retrieval is accomplished by accessing the index files at each level along the directory structure. Its advantage lies in the fact that the large language model does not need to directly read the context based on massive amounts of content; instead, it relies on the index at each level to determine the search, only reading the specific document when it is determined to be needed, thus minimizing the space occupied by the context.

[0041] In the above embodiments, the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform are mapped to file system parameters of the virtual file system. In response to document uploads, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to its business domain and the directory structure of the file system parameters, establishing a connection between the knowledge document and existing knowledge documents. In response to document retrieval requests, the large language model accesses the knowledge document layer by layer according to the index files in the directory structure to retrieve the document. By retrieving documents in the virtual file system of the knowledge platform using the large language model, the document search quality can be improved to meet business needs, since the virtual file system stores documents according to the file system parameters.

[0042] See Figure 2 , Figure 2 This is a schematic diagram of the process for publishing an ontology according to an embodiment of the present invention. Specifically, it includes the following steps: S201. Identify the business objects and / or business relationships to be modeled to generate a modeling task.

[0043] In embodiments of the present invention, an ontology is used to describe things and their relationships in the enterprise's business domain. An ontology is an abstract and formalized description of things and their relationships in the enterprise's business domain, used to embody the enterprise's business experience.

[0044] The ontology is the core content of the ontology semantic layer, which serves as the carrier and management layer of the ontology within the system architecture. The ontology semantic layer forms the semantic foundation of the entire solution, jointly constructed by business experts and agents. Its purpose is to preserve the enterprise's business semantics for subsequent knowledge production and consumption. It primarily includes object types and link types: object types are abstractions of business entities, such as waybills, carriers, warehouses, sorting centers, and sales departments, belonging to different business domains, such as warehousing, sorting, and distribution. Link types describe the relationships between these object types.

[0045] By combining existing business data, metadata, dialogues, and documents, the business objects and / or relationships to be modeled are identified to generate modeling tasks. For example, business objects include waybills, carriers, and warehouses; business relationships include waybills being handled by carriers and waybills passing through sorting centers. The modeling task clarifies the scope of business semantics covered by this ontology construction. The above process belongs to the planning phase of constructing the ontology's semantic layer.

[0046] S202. For the modeling task, generate ontology fragments according to the task dependency order and perform consistency verification.

[0047] For multiple modeling tasks, ontology fragments are generated sequentially from the large language model according to the task dependency order. For example, an ontology fragment may include new object types, new attributes, or new associations. An ontology fragment is essentially the definition of object types, attributes, and associations generated for one or more modeling tasks. Through consistency checks and rule controls, it can be ensured that newly generated ontology fragments are semantically consistent with existing ontologies, conflict-free, and do not compromise the stability of published ontologies.

[0048] S203. Publish the verified ontology fragments and synchronize them to the relational database for querying by the virtual file system.

[0049] Once the ontology fragments pass verification, they are officially published. This involves writing each ontology fragment according to its object type and synchronizing it to the relational database, forming an ontology that can be referenced subsequently. The ontology fragments stored in the relational database serve as the semantic basis for the business domain / ontology type directory structure and ontology relationships in the virtual file system. The virtual file system can query the ontology in the relational database when performing file operation translation and directory organization.

[0050] The aforementioned ontology construction simultaneously achieves disambiguation and semantic unification, standardizing different names for the same thing within the enterprise and clarifying the standard semantics of various business entities and their relationships. The ontology output can take the form of a formal modeling language like OWL or LinkML, or a more readable format such as documentation or Mermaid relationship diagrams. Regardless of the form, the purpose remains the same: to provide the enterprise's business semantics for the large language model in subsequent knowledge production and consumption.

[0051] During knowledge production, the large language model enables the identification of the business domain and ontology to which a knowledge document belongs, as well as the association with existing knowledge. During knowledge consumption, the large language model enables the combination of relevant knowledge across business domains and ontology based on the relationships between business entities to answer questions.

[0052] S204. Based on ontology fragments in a relational database, a large language model is used to extract the content of the document and generate a knowledge document.

[0053] Once the ontology fragments are published and synchronized to the relational database, the extraction behavior of the large language model can be constrained during knowledge production. When a document is uploaded, the large language model reads its content, filters candidate content within the business domain and ontology type defined by the ontology fragment in the relational database, extracts and summarizes the candidate content, generates knowledge documents, and writes them to the corresponding business domain and ontology type directories. Simultaneously, the relationships between knowledge documents are established based on the association types defined in the ontology, ensuring that the relationships conform to business semantics.

[0054] exist Figure 2 In this embodiment, enterprise business experience is stored in a relational database in the form of object types and association types. Using a large language model as the execution entity, document content is extracted under the constraints of ontology fragments, ensuring that the generated knowledge documents and their relationships strictly fall within the enterprise's existing business framework. This significantly reduces errors in the large language model and improves the accuracy of knowledge extraction and business consistency.

[0055] See Figure 3 , Figure 3 This is a flowchart illustrating the application of a virtual file system according to an embodiment of the present invention. Specifically, it includes the following steps: S301. Implement a virtual file system based on network file system, user-space file system, WebDAV or SMB protocol.

[0056] Virtual file systems are implemented based on technologies such as Network File System (NFS), and are different from the client's local user system: each user sees their own independent view after logging in, and the data is naturally isolated.

[0057] In practical implementation, besides NFS, the same effect can also be achieved using protocols such as user-space file system (FUSE), WebDAV, or SMB, with the upper-layer access method remaining unchanged. Regardless of the underlying protocol used, a unified file system access interface is presented externally, and the semantics of upper-layer file operations remain consistent, without needing to change the upper-layer calling method due to different protocols.

[0058] S302. Convert directory and file operation requests into queries against the underlying data source, and return the query results through the constructed files and directories.

[0059] Upon receiving directory and file operation requests, the virtual file system does not directly manipulate the actual stored data but instead performs mapping operations. Each directory and file operation request, upon reaching the NFS server, is mapped to the underlying data source according to the user's identity and the server then organizes the results into files and directories and returns them.

[0060] Specifically, the system implements a file server that takes directory and file operation requests such as listing directories (readdir), retrieving attributes (getattr), and reading (read) as protocol requests. Based on the requester's identity and mapping relationship, it converts these requests into queries against underlying data sources such as relational databases or object storage, and then dynamically organizes the query results into files and directories for feedback.

[0061] For large language models or the user's machine, the operating system's NFS client mounts the service to a local path, making accessing that path identical to accessing a local file. Each request arrives at the NFS server, which then queries the underlying data source according to the user's identity and organizes the results into files and directories before returning them.

[0062] It's important to note that for the large language model, the virtual file system perceived is a regular file system, accessed using standard commands like ls, cat, grep, and find, indistinguishable from operating local files. The virtual file system itself doesn't actually store data; it corresponds to the databases and middleware commonly used in knowledge platforms. See Table 1 for specific data source mappings. Table 1

[0063] The core of the virtual file system is the mapping from the knowledge platform to the virtual file system, mapping the concepts in the knowledge platform one-to-one to the existing file system primitives in the virtual file system, as shown in Table 2 and... Figure 4 As shown: Table 2

[0064] Based on the above mapping, the virtual file system is organized according to users and departments. Each user and each department has its own Home directory, while the root user can see the entire domain.

[0065] Within a single user's Home directory, the raw directory stores uploaded original documents, while the resolved directory stores Markdown files processed by Optical Character Recognition (OCR) or multimodal parsing. Knowledge documents are organized in the Home directory according to business domain, ontology, and three layers, with each layer accompanied by an index.md description and index. See [link to relevant documentation]. Figure 5 .

[0066] The first level is the business domain directory, and the index.md file in this level contains a brief description of each business domain.

[0067] The second layer is the ontology directory under this business domain, and the index.md of this layer contains the business semantics of each ontology.

[0068] The third layer consists of specific documents within the ontology. For example, the waybill status summary and waybill lifecycle are within the waybill ontology. The index.md file in this layer contains summaries and overviews of each document.

[0069] As an example, business domains are pre-established during initialization, and the ontologies under each business domain are defined. The outermost index.md describes each business domain, and the index.md under each business domain describes the ontologies under that business domain.

[0070] S303. After a user logs into the virtual file system, an independent view is displayed, and document isolation is achieved through virtual file system users, virtual file system user groups, and virtual file system permission bits.

[0071] In a multi-user enterprise environment, different users have varying degrees of visibility into knowledge documents. Each user sees their own independent view after logging in, resulting in natural data isolation.

[0072] Specifically, users, departments, and roles are mapped to users, user groups, and supplementary groups in the file system, and authorizations are mapped to permission bits or access control lists (ACLs). Each time a file operation is performed, it is determined in real time whether the corresponding permission is available, so that different users present their own views on the same system, achieving document-level isolation.

[0073] In other words, when a user accesses a document through the virtual file system, the file server determines in real time whether the user has the corresponding read, write, and execute permissions based on the user's identity, user group, and permission bits in the virtual file system, and decides whether to return or allow the operation of the knowledge document accordingly, thus presenting each user with their own independent document view on the virtual file system.

[0074] exist Figure 3 In the embodiments described, user view isolation and document-level access control are achieved by using users, user groups, and permission bits, which meets the data isolation and permission management needs of enterprises in multi-user environments and improves versatility and security.

[0075] See Figure 6 , Figure 6 This is a schematic diagram illustrating the process of writing knowledge documents into a virtual file system according to an embodiment of the present invention. Specifically, it includes the following steps: S601. Store the document in the raw directory of the user's or department's Home directory, and write the parsing result of the document into the resolved directory corresponding to the raw directory.

[0076] In the virtual file system, each user and department has its own Home directory, such as / Users / {user}, / Group / {department}. The Home directory is divided into a raw directory for storing the original uploaded documents and a resolved directory for storing the parsed files. Specifically, after a document is uploaded, it first enters the raw directory. After OCR or multimodal parsing, the parsing results are written to the corresponding .md file in the resolved directory. This separates the original document from the parsed, readable text, preserving the original document as a traceability basis while providing a unified and readable input for subsequent large language models to read the parsing results and extract knowledge.

[0077] S602. The large language model reads the parsing results in the resolved directory, generates knowledge documents within the scope of the business domain and ontology type, and writes the knowledge documents into the virtual file system according to the directory structure of the business domain and file system parameters.

[0078] The large language model reads the parsing results from the resolved directory and initiates knowledge production constrained by the ontology. It reads the parsing results in the resolved directory to determine one or more business domains and ontology involved. Within the scope of the relevant business domain and ontology type, it generates knowledge documents and writes these documents to the virtual file system according to the directory structure defined by the relevant business domain and file system parameters.

[0079] Each knowledge document generated by the large language model must belong to a business domain and ontology type defined in the ontology; arbitrary categories cannot be created. This ensures that the knowledge document maintains consistency with the enterprise's business framework in terms of business semantics. The generated knowledge document is written to the virtual file system according to a three-level directory structure of business domain / ontology type / knowledge document, achieving structured collection of knowledge.

[0080] S603. Update the index of the business domain, the index of the ontology, and the knowledge document index based on the knowledge document, and establish the reference relationship between the knowledge document and other knowledge documents based on the relationship between the ontology.

[0081] After knowledge documents are written to the corresponding directories, the indexes at each level need to be updated synchronously and knowledge associations established. That is, the index files from the business domain layer and ontology type layer to the specific knowledge document layer must reflect the content summary and hierarchical relationship of the newly added knowledge.

[0082] Furthermore, for each generated markup file, bidirectional references are established at the end of the file based on ontology relationships, linking the markup file to related new and historical documents, thus connecting scattered knowledge into a network. In this way, through index updates and the establishment of reference relationships, newly generated knowledge documents can not only be quickly located by indexing layer by layer, but also form semantic associations with other knowledge documents according to the relationships defined by the ontology, integrating knowledge from isolated fragments into an interconnected knowledge network.

[0083] exist Figure 6 In this embodiment, by storing the original document and the parsed document in layers, and by using the ontology-constrained large language model to generate knowledge documents within the specified business domain and ontology type range, the business consistency and traceability of the knowledge content are guaranteed.

[0084] See Figure 7 , Figure 7 This is a schematic diagram of the process for generating knowledge documents according to an embodiment of the present invention. Specifically, it includes the following steps: S701: The large language model reads the parsing results in the resolved directory and generates derived documents within the scope of its business domain and ontology type.

[0085] The large language model reads Markdown files from the resolved directory, obtained through OCR or multimodal parsing. It then generates derived documents within the relevant business domain and ontology type. These derived documents are the initial drafts of knowledge documents obtained by the large language model after refining and summarizing the original parsed content. Derived documents must belong to the business domains and ontology types defined in the ontology; arbitrarily creating new categories is not allowed, thus ensuring that the derived content belongs to the enterprise business framework.

[0086] S702. Analyze the confidence level of the derived document. If the confidence level is high, the derived document is treated as a knowledge document. If the confidence level is low, the derived document is submitted for manual review or correction to obtain a knowledge document.

[0087] After generating derived documents, their content reliability is assessed using a confidence level evaluation. Based on this evaluation, derived documents with high confidence are accepted, while those with low confidence are submitted for manual review. After confirmation or correction, they are then written into the system, thereby injecting enterprise business experience, reducing errors in the large language model, and ensuring the quality of the knowledge documents.

[0088] Specifically, if the confidence level of the derived document is high, it will be directly written as a knowledge document into the corresponding business domain / ontology / directory; if the confidence level is low, the derived document will be submitted for manual review, and business experts will confirm or correct the content. The corrected document can be written as a knowledge document into the virtual file system.

[0089] exist Figure 7 In this embodiment, derived documents are generated under ontology constraints using a large language model, and the quality of knowledge documents is ensured through confidence assessment and manual review.

[0090] See Figure 8 , Figure 8 This is a schematic diagram of a document retrieval process according to an embodiment of the present invention. Specifically, it includes the following steps: S801. If the document retrieval request is neither cross-domain nor cross-ontology, the large language model first reads the index of the business domain to determine the business domain, and then determines the ontology type based on the index of the business domain. After entering the ontology type, it reads the index of the corresponding ontology to obtain the document summary, and then reads the knowledge document based on the document summary.

[0091] When a document retrieval request does not involve cross-business domains or cross-ontologies, the large language model processes it layer by layer according to the hierarchical structure of the knowledge directory. Specifically, the large language model first reads the index file (index.md) of the outermost business domain to determine the business domain related to the document retrieval request; after entering the business domain, it reads the index file of that layer to determine the ontology types contained therein; after entering the target ontology type directory, it reads the index file of that layer again to obtain the summaries of each knowledge document; based on the summaries, it determines the specific knowledge document to be retrieved, and finally reads the document content to complete the retrieval.

[0092] By adopting the above approach, the large language model does not need to search through massive amounts of documents, but instead determines the search for knowledge documents based on the index of each level.

[0093] S802. If a document retrieval request is cross-domain or cross-ontology, the large language model combines the business semantics corresponding to the document retrieval request to obtain the ontology, and then combines multiple business domains and / or multiple ontologies corresponding to the ontology to determine the knowledge document.

[0094] When document retrieval requests involve complex questions across business domains or ontologies, documents from a single directory cannot provide a complete answer. For example, answering why a waybill is delayed might involve the waybill in the delivery domain, the warehouse in the warehousing domain, and the sorting center in the sorting domain. Large language models, combined with the products of ontology modeling, such as OWL, LinkML, Markdown, or Mermaid, understand the relationships between business entities and, following the associations defined in the ontology, combine and reference relevant documents scattered across multiple business domains and ontologies.

[0095] Specifically, the large language model obtains the corresponding ontology and association type based on the business semantics involved in the retrieval request. Based on the relationship between business entities defined in the ontology, it combines relevant documents scattered across multiple business domains and multiple ontology to form a complete knowledge set before providing an answer.

[0096] Since the above document combinations represent business semantics recognized by the enterprise, the large language model determines knowledge documents based on document combinations rather than satisfying conjectures about the relationships between business entities. This ensures the correct association of information across business domains, thereby reducing the illusions that the large language model may have when answering cross-domain questions.

[0097] S803. Document retrieval requests include complex retrieval conditions. The large language model searches the underlying database according to the complex retrieval conditions to determine knowledge documents.

[0098] When a document retrieval request includes complex search criteria, directly traversing layer by layer is costly. It is better to use extended commands to push the complex search criteria to the underlying data source for execution.

[0099] Specifically, the large language model transforms complex conditions such as business domain, security level, and update time in document retrieval requests into parameters for extended commands. Based on these parameters, the underlying relational database is queried, and knowledge documents that meet the complex retrieval conditions are directly selected from the database. Only the matching results are returned to the large language model, thus avoiding the performance overhead of reading data layer by layer and traversing all documents.

[0100] As an example, complex search criteria include: documents within the delivery domain, classified as internal, and updated within the last month. The standard method for identifying knowledge documents involves first listing a directory and then reading metadata for each document, which is computationally expensive. However, by using extended commands corresponding to complex search criteria, parameters such as the business domain, security level, and update time of the `find` method can be set. These extended commands are then pushed to the underlying database, where knowledge documents matching the complex search criteria are directly filtered out.

[0101] exist Figure 8In one embodiment, knowledge documents are identified based on the type of document retrieval request to improve retrieval efficiency and reduce the illusion of large language models.

[0102] See Figure 9 , Figure 9 This is a flowchart illustrating the process of sharing knowledge documents according to an embodiment of the present invention. Specifically, it includes the following steps: S901. Send a link to the knowledge document to the target user via a symbolic link, and create a copy of the knowledge document using the cp command.

[0103] As the owner of a knowledge document, a user can share it. Knowledge document sharing is implemented based on a virtual file system. To share a knowledge document with a target user, a symbolic link is created (ln -s), and the document is displayed as a symbolic link in the recipient's interface. Sharing is achieved without copying the data. If an independent copy is needed, the cp command can be used.

[0104] Specifically, when a user wants to share a knowledge document with other users, the large language model translates the sharing intent into a symbolic link command `ln -s`. This creates a symbolic link to the original knowledge document in the target user's view directory. The target user can then access the knowledge document through this symbolic link without needing to copy it, saving storage space and ensuring that the shared content is consistent with the original knowledge document in real time. If the user needs to provide a separate copy, the `cp` command is executed to create a copy of the knowledge document. This copy is independent of the original knowledge document, and subsequent modifications will not affect it.

[0105] S902. Adjust the permissions and ownership of replicas using the chmod and chown commands, and use the hard link command to achieve deduplication and sharing of identical knowledge in replicas.

[0106] During the sharing process, it's also necessary to control permissions and ownership of the shared knowledge documents. The visibility and operability of the knowledge documents can be adjusted using the `chmod` command to modify permission bits; for example, setting it to read-only allows the other party to only read and not modify. Ownership can be changed using the `chown` command. Deduplicating identical knowledge from copies before sharing can be achieved using hard links (ln).

[0107] Specifically, when a user wants to restrict another party's access to a shared knowledge document, they use the `chmod` command to modify the permission bits. For example, setting it to read-only allows the other party to view but not modify it. To change the ownership of a knowledge document, the `chown` command is used to adjust the owner. For sharing knowledge with identical content, the `ln` command is used to create hard links, making multiple paths point to the same knowledge document, thus achieving deduplication and sharing.

[0108] exist Figure 9In this embodiment, knowledge sharing operations are uniformly mapped to standard file system commands, which are executed directly through commands, reducing complexity and development costs.

[0109] See Figure 10 , Figure 10 This is a schematic diagram of the process for updating knowledge documents according to an embodiment of the present invention. Specifically, it includes the following steps: S1001. In response to feedback from the user's dialogue with the large language model, modify and update the corresponding knowledge documents.

[0110] Knowledge document updates are triggered by feedback from user interactions with the large language model. The knowledge document updates based on user feedback, and the update itself is a modification of the corresponding knowledge document. Because user views are isolated, an update to a user's own knowledge document will not affect other users.

[0111] Specifically, when a user points out errors, adds new information, or confirms correction suggestions in a knowledge document during a dialogue with the large language model, the large language model translates the feedback into a write operation on the corresponding knowledge document, directly modifying the content of that knowledge document in the virtual file system. The modification only takes effect within the user's view and will not affect other users' knowledge documents.

[0112] S1002. Obtain document access time and identify knowledge documents that have not been accessed for a long time.

[0113] For identifying expired knowledge documents, the built-in time attribute of the virtual file system is used. For example, by using access time, the access time of each knowledge document can be obtained using `ls -lu`, thus identifying knowledge documents that have not been accessed for a long time.

[0114] Specifically, the virtual file system records the access time of each knowledge document in the file system's `atime` attribute. The large language model obtains the last access time of each knowledge document by executing the `ls -lu` command and compares it with the current time. When the access time of a knowledge document is earlier than a preset threshold, it is determined that the knowledge document has not been accessed for a long time.

[0115] S1003. Logically delete knowledge documents that have not been accessed for a long time, or adjust the weight of knowledge documents by combining access time and citation frequency through the large language model, so as to increase the weight of frequently used knowledge documents and decrease the weight of knowledge documents that have not been accessed for a long time.

[0116] For knowledge documents that have not been accessed for a long time, two approaches can be taken. First, logical deletion can be performed, removing these documents from the user's view while retaining the underlying data for future reference. Second, the knowledge documents can be retained, and a large language model can calculate weights for each document based on its access time and citation count. The weight of documents that have been inaccessible for a long time and have few citations can be reduced, while the weight of frequently accessed and cited documents can be increased. During subsequent knowledge consumption, high-weight documents are prioritized for recall and recommendation, while low-weight documents are ranked lower, thus achieving a tiered system based on popularity.

[0117] exist Figure 10 In this embodiment, by directly converting user feedback into modifications to knowledge documents, automatic knowledge updates are achieved, significantly improving the timeliness and retrieval quality of knowledge documents.

[0118] See Figure 11 , Figure 11 This is a schematic diagram of the main structure of a document processing apparatus according to an embodiment of the present invention. The document processing apparatus can implement a document processing method, and specifically includes: File module 1101 is used to map knowledge objects, knowledge object attributes, knowledge object relationships and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; The association module 1102 is used to respond to document upload by inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to the directory structure of the business domain and the file system parameters, thereby establishing an association between the knowledge document and existing knowledge documents. The retrieval module 1103 is used to retrieve documents in response to document retrieval requests. The large language model accesses knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

[0119] In one embodiment of the present invention, the association module 1102 is used to identify the business objects and / or business relationships to be modeled in order to generate a modeling task; For the modeling task, ontology fragments are generated according to the task dependency order, and consistency checks are performed. Publish the verified ontology fragments and synchronize them to a relational database for querying by the virtual file system; Based on ontology fragments in the relational database, a large language model extracts the content of the document to generate a knowledge document.

[0120] In one embodiment of the present invention, the association module 1102 is used to store the document in the raw directory of the Home directory corresponding to the user or department, and write the parsing result of the document into the resolved directory corresponding to the raw directory; The large language model reads the parsing results in the resolved directory, generates the knowledge document within the scope of the business domain and ontology type, and writes the knowledge document into the virtual file system according to the directory structure of the business domain and the file system parameters; Update the index of the business domain to which the knowledge document belongs, the index of the ontology to which it belongs, and the knowledge document index based on the knowledge document, and establish the reference relationship between the knowledge document and other knowledge documents based on the relationship between the ontology.

[0121] In one embodiment of the present invention, the association module 1102 is used for the large language model to read the parsing results in the resolved directory and generate derived documents within the scope of the business domain and ontology type. The derived document is evaluated for confidence level. If the confidence level is high, the derived document is used as the knowledge document. If the confidence level is low, the derived document is submitted for manual review or correction to obtain the knowledge document.

[0122] In one embodiment of the present invention, the retrieval module 1103 is used when the document retrieval request does not belong to cross-domain and cross-ontology. The large language model first reads the index of the business domain to determine the business domain, and determines the ontology type based on the index of the business domain. After entering the ontology type, it reads the index of the ontology to obtain the document summary, and then reads the knowledge document based on the document summary. The document retrieval request is cross-domain or cross-ontology. The large language model combines the business semantics corresponding to the document retrieval request to obtain the ontology, and combines multiple business domains and / or multiple ontologs corresponding to the ontology to determine the knowledge document. The document retrieval request includes complex retrieval conditions, and the large language model searches the underlying database according to the complex retrieval conditions to determine the knowledge documents.

[0123] In one embodiment of the present invention, the file module 1101 is used to implement the virtual file system based on a network file system, a user-space file system, WebDAV, or SMB protocol; The system converts directory and file operation requests into queries to the underlying data source and returns the query results using the constructed files and directories. After a user logs into the virtual file system, an independent view is displayed, and document isolation is achieved through virtual file system users, virtual file system user groups, and virtual file system permission bits.

[0124] In one embodiment of the present invention, the retrieval module 1103 is used to send a link of the knowledge document to a target user via a soft link and to create a copy of the knowledge document via the cp command; The permissions and ownership of the replicas are adjusted using the chmod and chown commands, and the hard link command is used to achieve deduplication and sharing of identical knowledge in the replicas.

[0125] In response to feedback from user interactions with the large language model, the corresponding knowledge documents are modified and updated. Obtain document access time to identify knowledge documents that have not been accessed for a long time; Logically delete knowledge documents that have not been accessed for a long time, or adjust the weight of knowledge documents by combining access time and citation frequency using a large language model, so as to increase the weight of frequently used knowledge documents and decrease the weight of knowledge documents that have not been accessed for a long time.

[0126] Figure 12 An exemplary system architecture 1200 is shown that can be applied to the document processing method or document processing apparatus of the present invention.

[0127] like Figure 12 As shown, system architecture 1200 may include terminal devices 1201, 1202, and 1203, a network 1204, and a server 1205. Network 1204 serves as the medium for providing communication links between terminal devices 1201, 1202, and 1203 and server 1205. Network 1204 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0128] Users can use terminal devices 1201, 1202, and 1203 to interact with server 1205 via network 1204 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1201, 1202, and 1203, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0129] Terminal devices 1201, 1202, and 1203 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0130] Server 1205 can be a server that provides various services, such as a backend management server that supports shopping websites browsed by users using terminal devices 1201, 1202, and 1203 (for example only). The backend management server can analyze and process data such as received product information query requests, and feed back the processing results (such as target push information and product information - for example only) to the terminal devices.

[0131] It should be noted that the document processing method provided in this embodiment of the invention is generally executed by the server 1205, and correspondingly, the document processing device is generally located in the server 1205.

[0132] It should be understood that Figure 12 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0133] The following is for reference. Figure 13 It shows a schematic diagram of the structure of a computer system 1300 suitable for implementing a terminal device of the present invention. Figure 13 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0134] like Figure 13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 1302 or programs loaded from storage portion 1308 into random access memory (RAM) 1303. The RAM 1303 also stores various programs and data required for the operation of the system 1300. The CPU 1301, ROM 1302, and RAM 1303 are interconnected via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0135] The following components are connected to I / O interface 1305: an input section 1306 including a keyboard, mouse, etc.; an output section 1307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN card, modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to I / O interface 1305 as needed. Removable media 1311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1310 as needed so that computer programs read from them can be installed into storage section 1308 as needed.

[0136] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1309, and / or installed from removable medium 1311. When the computer program is executed by central processing unit (CPU) 1301, it performs the functions defined above in the system of this invention.

[0137] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0139] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a file module, an association module, and a retrieval module. The names of these modules do not necessarily limit the module itself; for example, a file module can also be described as "file system parameters used to map knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in a knowledge platform to a virtual file system."

[0140] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include: Map the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; In response to document upload, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to the directory structure of its business domain and the file system parameters, thereby establishing a connection between the knowledge document and existing knowledge documents; In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

[0141] According to the technical solution of this invention, knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform are mapped to file system parameters of a virtual file system. In response to document upload, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to its business domain and the directory structure of the file system parameters, establishing an association between the knowledge document and existing knowledge documents. In response to a document retrieval request, the large language model accesses the knowledge document layer by layer according to the index files in the directory structure to retrieve the document. By retrieving documents in the virtual file system of the knowledge platform using the large language model, the document search quality can be improved to meet business needs, since the virtual file system stores documents according to the file system parameters.

[0142] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention. It should be noted that the acquisition, storage, and application of user personal information involved in the technical solutions of this disclosure comply with relevant laws and regulations and do not violate public order and good morals.

Claims

1. A document processing method, characterized in that, include: Map the knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; In response to document upload, the document is input into a large language model to generate a knowledge document, and the knowledge document is written into the virtual file system according to the directory structure of its business domain and the file system parameters, thereby establishing a connection between the knowledge document and existing knowledge documents; In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

2. The document processing method according to claim 1, characterized in that, The method further includes: Identify the business objects and / or business relationships to be modeled to generate modeling tasks; For the modeling task, ontology fragments are generated according to the task dependency order, and consistency checks are performed. Publish the verified ontology fragments and synchronize them to a relational database for querying by the virtual file system; The step of inputting the document into a large language model to generate a knowledge document includes: Based on ontology fragments in the relational database, a large language model extracts the content of the document to generate a knowledge document.

3. The document processing method according to claim 1, characterized in that, The step of inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to the directory structure of its business domain and the file system parameters, and establishing the association between the knowledge document and existing knowledge documents, includes: The document is stored in the raw directory of the Home directory corresponding to the user or department, and the parsing result of the document is written to the resolved directory corresponding to the raw directory; The large language model reads the parsing results in the resolved directory, generates the knowledge document within the scope of the business domain and ontology type, and writes the knowledge document into the virtual file system according to the directory structure of the business domain and the file system parameters; Update the index of the business domain to which the knowledge document belongs, the index of the ontology to which it belongs, and the knowledge document index based on the knowledge document, and establish the reference relationship between the knowledge document and other knowledge documents based on the relationship between the ontology.

4. The document processing method according to claim 3, characterized in that, The large language model reads the parsing results from the resolved directory and generates the knowledge document within the scope of its business domain and ontology type, including: The large language model reads the parsing results from the resolved directory and generates derived documents within the scope of the relevant business domain and ontology type; The derived document is evaluated for confidence level. If the confidence level is high, the derived document is used as the knowledge document. If the confidence level is low, the derived document is submitted for manual review or correction to obtain the knowledge document.

5. The document processing method according to claim 1, characterized in that, In response to a document retrieval request, the large language model accesses the knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents, including: The document retrieval request is neither cross-domain nor cross-ontology. The large language model first reads the index of the business domain to determine the business domain, and then determines the ontology type based on the index of the business domain. After entering the ontology type, it reads the index of the corresponding ontology to obtain the document summary, and then reads the knowledge document based on the document summary. The document retrieval request is cross-domain or cross-ontology. The large language model combines the business semantics corresponding to the document retrieval request to obtain the ontology, and combines multiple business domains and / or multiple ontologs corresponding to the ontology to determine the knowledge document. The document retrieval request includes complex retrieval conditions, and the large language model searches the underlying database according to the complex retrieval conditions to determine the knowledge documents.

6. The document processing method according to claim 1, characterized in that, The method further includes: The virtual file system is implemented based on a network file system, a user-space file system, WebDAV, or SMB protocol; The system converts directory and file operation requests into queries to the underlying data source and returns the query results using the constructed files and directories. After a user logs into the virtual file system, an independent view is displayed, and document isolation is achieved through virtual file system users, virtual file system user groups, and virtual file system permission bits.

7. The document processing method according to claim 1, characterized in that, The method further includes: Send a link to the knowledge document to the target user via a symbolic link, and create a copy of the knowledge document using the cp command; The permissions and ownership of the replicas are adjusted using the chmod and chown commands, and the hard link command is used to achieve deduplication and sharing of identical knowledge in the replicas. And / or, The method further includes: In response to feedback from user interactions with the large language model, the corresponding knowledge documents are modified and updated. Obtain document access time to identify knowledge documents that have not been accessed for a long time; Logically delete knowledge documents that have not been accessed for a long time, or adjust the weight of knowledge documents by combining access time and citation frequency using a large language model, so as to increase the weight of frequently used knowledge documents and decrease the weight of knowledge documents that have not been accessed for a long time.

8. A document processing apparatus, characterized in that, include: The file module is used to map knowledge objects, knowledge object attributes, knowledge object relationships, and knowledge object management information in the knowledge platform to file system parameters of the virtual file system; The association module is used to respond to document upload by inputting the document into a large language model to generate a knowledge document, and writing the knowledge document into the virtual file system according to the directory structure of its business domain and the file system parameters, thereby establishing an association between the knowledge document and existing knowledge documents. The retrieval module is used to respond to document retrieval requests. The large language model accesses knowledge documents layer by layer according to the index files in the directory structure to retrieve the documents.

9. A document processing electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.