Document management method and device, equipment, medium and product

By automatically migrating and synchronizing documents from third-party cloud storage services to document services and knowledge Q&A services in the office collaboration system, the problem of insufficient knowledge and information of knowledge Q&A services is solved, and a higher quality and scope of intelligent Q&A is achieved.

CN120508620APending Publication Date: 2025-08-19BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510600209.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

In the existing office collaboration system, knowledge Q&A services lack rich knowledge information, resulting in limited quality and scope of Q&A.

Method used

By obtaining the document processing permissions of the third-party cloud storage service of the first user, the target documents in the third-party cloud storage service are migrated to the document service of the office collaboration system and synchronized to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target documents.

Benefits of technology

Without the need for users to manually migrate documents, the quality and scope of knowledge Q&A services are improved, and the intelligence and coverage of knowledge Q&A are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120508620A_ABST
    Figure CN120508620A_ABST
Patent Text Reader

Abstract

The invention provides a document management method and device, equipment, a medium and a product, the method is applied to an office collaboration system, the office collaboration system provides document service and knowledge question and answer service, and the method comprises the following steps: obtaining a document processing permission of a third-party cloud storage service of a first user; based on the document processing permission, migrating a target document of the first user in the third-party cloud storage service to a document service; and synchronizing the target document in the document service to the knowledge question and answer service, so that a data source of the knowledge question and answer service comprises the target document. According to the method, under the condition that the user does not need to manually migrate the document, the document of the third-party cloud storage service can be operated in the office cooperation system, the knowledge question and answer service can use the document of the third-party cloud storage service as knowledge information to perform intelligent question and answer with the user, the knowledge question and answer quality is improved, and the knowledge question and answer range is widened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a document management method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] With the continuous development of computer technology, office collaboration systems that combine computer technology with modern office work have emerged. Office collaboration systems, also known as office automation (OA) systems, business systems, and office platforms, can assist corporate employees in their work.

[0003] Typically, office collaboration systems offer document services for document management. Furthermore, as language models are increasingly used, many office collaboration systems also offer knowledge question-and-answer services, enabling intelligent question-and-answer sessions with users.

[0004] In related technologies, knowledge question-answering services need to rely on knowledge information for intelligent question-answering. How to enrich the knowledge information that knowledge question-answering services can rely on, and thus improve the quality and scope of knowledge question-answering, has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a document management method. This method can improve the quality and scope of knowledge questions and answers provided by an office collaboration system. This application also provides a device, electronic device, computer-readable storage medium, and computer program product corresponding to the above method.

[0006] In a first aspect, the present application provides a document management method, which is applied to an office collaboration system that provides document services and knowledge question-and-answer services. The method includes:

[0007] Obtaining document processing permissions of the first user's third-party cloud storage service;

[0008] Based on the document processing permission, migrating the target document of the first user in the third-party cloud storage service to the document service;

[0009] The target document in the document service is synchronized to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0010] In a second aspect, the present application provides a document management device deployed in an office collaboration system that provides document services and knowledge question-and-answer services. The device includes:

[0011] An acquisition module, configured to obtain the first user's document processing permission from a third-party cloud storage service;

[0012] a migration module, configured to migrate the target document of the first user in the third-party cloud storage service to the document service based on the document processing permission;

[0013] A synchronization module is used to synchronize the target document in the document service to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0014] In a third aspect, the present application provides an electronic device comprising a processor and a memory. The processor and the memory communicate with each other. The processor is configured to execute instructions stored in the memory to cause the electronic device to perform the document management method according to the first aspect or any implementation of the first aspect.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct an electronic device to execute the document management method described in the first aspect or any implementation of the first aspect.

[0016] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the document management method described in the first aspect or any one of the implementations of the first aspect.

[0017] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods.

[0018] It can be seen from the above technical solutions that this application has the following advantages:

[0019] The present application provides a document management method, which is applied to an office collaboration system. The office collaboration system provides document services and knowledge question and answer services. The method first obtains the document processing permissions of a first user from a third-party cloud storage service. Then, based on the document processing permissions, the target document of the first user in the third-party cloud storage service is migrated to the document service, and the target document in the document service is synchronized to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0020] This method automatically migrates user documents stored in third-party cloud storage services to the document service of the office collaboration system by obtaining file processing permissions from the third-party cloud storage service. These documents are then synchronized with the knowledge question-and-answer service of the office collaboration system. This allows users to access documents stored in third-party cloud storage services within the office collaboration system without having to manually migrate them. Furthermore, the knowledge question-and-answer service can use documents stored in third-party cloud storage services as knowledge information for intelligent Q&A with users, improving both the quality and scope of knowledge Q&A. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical methods of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments.

[0022] Figure 1 A flowchart of a document management method provided in an embodiment of the present application;

[0023] Figure 2A and Figure 2B A schematic diagram of an interface for a knowledge question-and-answer service provided in an embodiment of the present application;

[0024] Figure 3 A flowchart of a document management method provided in an embodiment of the present application;

[0025] Figure 4 A flowchart of a document management method provided in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of a document management device provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The terms "first" and "second" in the embodiments of this application are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the features.

[0029] First, some technical terms and application scenarios involved in the embodiments of this application are introduced.

[0030] With the continuous development of computer technology, office collaboration systems, which integrate computer technology with modern office work, have emerged. Office collaboration systems, also known as office automation (OA) systems, business systems, and office platforms, can assist employees in their work and significantly improve the efficiency of individual or group office work.

[0031] An office collaboration system typically includes multiple services that provide different functions. These services can also be referred to as functional modules. For example, an office collaboration system typically provides instant messaging services, document services, and calendar management services. Document services can be used to manage documents. For example, users can view document lists, write documents, and modify documents in the document service. Users can also view other users' documents and add comments to other users' documents in the document service.

[0032] With the continuous development of artificial intelligence technology, language models with natural language processing capabilities can be applied to an increasing number of scenarios. For example, when language models are applied to question-and-answer scenarios, their natural language processing capabilities can be leveraged to achieve intelligent question-and-answering. Many office collaboration systems also provide knowledge Q&A services, which can be used to conduct intelligent Q&A with users. For example, users can ask questions about software usage, technical support, and other topics in the knowledge Q&A service, and the knowledge Q&A service can respond to the user's questions.

[0033] In related technologies, knowledge Q&A services rely on knowledge information for intelligent Q&A. For example, if a user's question is related to the use of Software A, the knowledge information may include Software A's user manual. The knowledge Q&A service identifies the user's question, determines its relevance to Software A, and then, based on the Software A user manual, selects content to respond to the user's question. This response is then generated, completing a round of intelligent Q&A. Enriching the knowledge information that knowledge Q&A services rely on, thereby improving the quality and scope of knowledge Q&A, has become a pressing issue.

[0034] In view of this, the present application provides a document management method, which is applied to an office collaboration system. The office collaboration system provides document services and knowledge question and answer services. The method first obtains the document processing permissions of the first user's third-party cloud storage service, and then, based on the document processing permissions, migrates the target document of the first user in the third-party cloud storage service to the document service, and synchronizes the target document in the document service to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0035] This method automatically migrates user documents stored in third-party cloud storage services to the document service of the office collaboration system by obtaining file processing permissions from the third-party cloud storage service. These documents are then synchronized with the knowledge question-and-answer service of the office collaboration system. This allows users to access documents stored in third-party cloud storage services within the office collaboration system without having to manually migrate them. Furthermore, the knowledge question-and-answer service can use documents stored in third-party cloud storage services as knowledge information for intelligent Q&A with users, improving both the quality and scope of knowledge Q&A.

[0036] To facilitate understanding of the technical solutions provided in the embodiments of the present application, the following description will be made with reference to the accompanying drawings. Figure 1 The flowchart of a document management method shown in FIG. 4 is applicable to an office collaboration system that provides document services and knowledge question-and-answer services. The method specifically includes the following steps:

[0037] S201: Obtain document processing permissions of a third-party cloud storage service of a first user.

[0038] Among them, the third-party cloud storage service can be understood as a cloud storage service provided by a third party other than the office collaboration system. The third-party cloud storage service can be used to provide cloud storage services, for example, providing cloud document storage services.

[0039] The first user can be understood as a user who uses the office collaboration system and the third-party cloud storage service. The first user may have a document migration demand, that is, the first user uses the third-party cloud storage service to store documents (referred to as target documents in the embodiment of this application), and the first user has a document migration demand to migrate the target documents from the third-party cloud storage service to the document service in the office collaboration system.

[0040] In the related art, the first user often needs to use manual document migration to migrate the target document in the third-party cloud storage service to the document service of the office collaboration system. Specifically, the first user needs to download the target document to the local computer from the third-party cloud storage service, and then upload the local target document to the document service of the office collaboration system. There are two problems with the above method: first, the operation process of the above document migration process is cumbersome, and the first user's experience in document migration is poor; second, due to limited local storage space, the first user may not be able to download all the target documents in the third-party cloud storage service to the local computer, resulting in the first user needing to perform multiple document download and document upload operations.

[0041] In an embodiment of the present application, the office collaboration system can automatically migrate a target document from a third-party cloud storage service to the office collaboration system. Document processing permissions can be understood as the permissions required to migrate a target document from a third-party cloud storage service. That is, by obtaining the first user's document processing permissions from the third-party cloud storage service, the office collaboration system can process the first user's target document from the third-party cloud storage service based on the document processing permissions.

[0042] S202: Based on the document processing authority, migrate the target document of the first user in the third-party cloud storage service to the document service.

[0043] Since the document processing permission of the first user's third-party cloud storage service has been obtained, the office collaboration system can process the target document stored by the first user in the third-party cloud storage service based on the document processing system. In an embodiment of the present application, the office collaboration system can migrate the target document stored by the first user in the third-party cloud storage service to the document service of the office collaboration system.

[0044] The embodiment of the present application does not limit the type of the target document. For example, the target document can be a text type, a table type, or other different types of documents.

[0045] In this way, by first obtaining document processing permissions, the office collaboration system can realize automatic document migration. For the target document stored externally, the first user can also use it in the document service of the office collaboration system, for example, viewing the target document, modifying the target document, etc. in the document service of the office collaboration system.

[0046] S203: Synchronize the target document in the document service to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0047] In addition to migrating the first user's target document from the third-party cloud storage service to the document service of the office collaboration system, this embodiment of the application also synchronizes the target document from the document service to the knowledge question and answer service. In other words, during the process of the knowledge question and answer service conducting intelligent question and answer with the first user, the target document can serve as the data source for the knowledge question and answer service, and the knowledge question and answer service can use the target document as knowledge information for intelligent question and answer.

[0048] In some embodiments, in response to a knowledge question and answer operation triggered by a first user in a knowledge question and answer service, a first prompt word is generated, the first prompt word is sent to a first language model, and reply information corresponding to the question information returned by the first language model is received.

[0049] The language model has natural language processing capabilities, capable of recognizing, analyzing, and generating natural language content, and can be used to handle various natural language tasks. The language model can generate responses based on prompt learning. Prompts can be used to guide the language model in generating specific outputs. By setting appropriate prompts, the language model can be guided to generate text that meets user needs. For example, the specific vocabulary, sentence structure, and context in the prompt can control the language model's generation direction. Prompts can also provide context for the language model, helping it better understand the context and requirements of natural language tasks.

[0050] In an embodiment of the present application, the first prompt word may include: question information associated with the knowledge question and answer operation, auxiliary information, and prompt information used to indicate an answer to the question information in combination with the auxiliary information, wherein the auxiliary information includes a target document.

[0051] The knowledge Q&A operation can be understood as an operation that triggers a knowledge Q&A session. For example, the knowledge Q&A operation can be an operation that sends a text message for a knowledge Q&A session. In this case, the question information associated with the knowledge Q&A operation can be the sent text message. Auxiliary information, also understood as knowledge information, can be used to assist the language model in responding to the first user's question message. Since the target document is synchronized to the knowledge Q&A service, the auxiliary information can include the target document. In other words, the language model can answer the question message in conjunction with the target document.

[0052] Since the above information is configured in the first prompt word, the language model can analyze the question information associated with the knowledge question and answer operation based on the prompt ability of the first prompt word, and generate reply information corresponding to the question information in combination with auxiliary information including the target document, thereby realizing a round of intelligent question and answer dialogue with the first user.

[0053] See also Figure 2A and Figure 2B The interface diagram of a knowledge question answering service is shown in Figure 2AIn the embodiment, the knowledge question and answer service interface 20 includes an input box 21 and multiple controls. The first user can input question information in the input box 21. The multiple controls include an online search control 221 for triggering an online search of the knowledge question and answer service so that the knowledge question and answer service relies on the online search results for intelligent question and answer, a knowledge use control 222 for triggering the knowledge question and answer service to use existing knowledge information for intelligent question and answer, and a text sending control 223. The first user can trigger the knowledge use control 222 to select the knowledge information that the knowledge question and answer service depends on, such as a locally uploaded file, an internal document of a document service, or a connection to an external service (such as a third-party cloud storage service). The first user can trigger the text sending control 223 to send the question information input in the input box 21. The operation of the first user triggering the text sending control 223 can be a knowledge question and answer operation triggered by the first user, and the question information input in the input box can be question information associated with the knowledge question and answer operation.

[0054] exist Figure 2B In response to the first user selecting to connect to an external service, an external service management interface 23 is presented. In the external service management interface 23, the connection status of the first user's multiple third-party cloud storage services and the knowledge question and answer service is presented. When the target document of the third-party cloud storage service is synchronized to the knowledge question and answer service, the third-party cloud storage service can be understood as being connected to the knowledge question and answer service. When the target document of the third-party cloud storage service is not synchronized to the knowledge question and answer service, the third-party cloud storage service can be understood as not being connected to the knowledge question and answer service. For example, Figure 2B In the example, third-party cloud storage service A and third-party cloud storage service B are connected to the knowledge question and answer service, while third-party cloud storage service C is not connected to the knowledge question and answer service. The knowledge question and answer service can rely on the target files of the first user in third-party cloud storage service A and third-party cloud storage service B for reply, but cannot rely on the target files of the first user in third-party cloud storage service C for reply.

[0055] This method automatically migrates user documents stored in third-party cloud storage services to the document service of the office collaboration system by obtaining file processing permissions from the third-party cloud storage service. These documents are then synchronized with the knowledge question-and-answer service of the office collaboration system. This allows users to access documents stored in third-party cloud storage services within the office collaboration system without having to manually migrate them. Furthermore, the knowledge question-and-answer service can use documents stored in third-party cloud storage services as knowledge information for intelligent Q&A with users, improving both the quality and scope of knowledge Q&A.

[0056] The following combination Figure 3 and Figure 4 The flowchart of the document management method shown in the figure illustrates the specific implementation process of document management.

[0057] like Figure 3 As shown, in addition to providing document services and knowledge question and answer services, the office collaboration system also provides document management services and databases. Among them, the document management service provided in the embodiment of the present application can be executed by the document management service.

[0058] Specifically, in response to receiving the document migration request from the first user, an authorization interface provided by the third-party cloud storage service is called, and in response to the first user granting document processing authority based on the authorization interface, an authorization code returned by the authorization interface is received.

[0059] That is to say, when the first user has the need to migrate the target document in the third-party cloud storage service to the document service in the office collaboration system, the first user can send a document migration request to the document management service of the office collaboration system. The document management service calls the authorization interface provided by the third-party cloud storage service and prompts the first user to authorize, so that the first user authorizes the document processing authority based on the authorization interface. For example, the first user authorizes by entering the account and password of the third-party cloud storage service, or the first user authorizes through biometric recognition of the third-party cloud storage service, etc. In this way, the third-party cloud storage service can return an authorization code to the document management service, indicating that the first user has authorized the document management service to migrate the document for the first user in the third-party cloud storage service.

[0060] In addition, the document management service may also store the authentication information including the first user's user information and authorization code in the database of the office collaboration system. If the first user subsequently reauthorizes, the document management service may also update the authorization code of the first user's authentication information in the database.

[0061] Continue as Figure 3 As shown, after obtaining the document processing permission of the first user's third-party cloud storage service, you can also obtain the target document of the first user in the third-party cloud storage service based on the document processing permission, import the target document into the document service, and, based on the path information of the target document in the third-party cloud storage service, build a file tree of the target document in the document service.

[0062] Among them, the file tree of the target document can display the relationship between the target documents in a hierarchical structure (for example, a tree structure), and each directory or document of the target document can be regarded as a node, the directory can be a branch node, and the document can be a leaf node. In this way, the path information of the target document in the third-party cloud storage service is represented in the form of a file tree.

[0063] That is to say, the target document is processed in two parts in the office collaboration system. On the one hand, the target document is imported into the document service so that the first user can view and modify the target document in the document service of the office collaboration system. On the other hand, the path information of the target document in the third-party cloud storage service is migrated to the document service of the office collaboration system, and the original path of the target document is retained in the office collaboration system.

[0064] In addition, the document management service may also store the file tree of the target document in a database of the office collaboration system, so that when the user uses the office collaboration system, the user may view the file tree of the target document in the document service.

[0065] In some possible implementations, a layer-order traversal is performed on the path information of the target document in the third-party cloud storage service, and a file tree of the target document is constructed in the document service.

[0066] Among them, level-order traversal can be used to traverse the tree structure. Since the path information of the target document in the third-party cloud storage service is a file tree, through level-order traversal, each node in the target document can be traversed, and each node in the target document can be accessed layer by layer, and the path information of the target document in the third-party cloud storage service can be migrated intact to the document service of the office collaboration system.

[0067] Level-order traversal typically starts from the root node of the tree and visits the nodes of the tree layer by layer. Level-order traversal is usually implemented with the help of a queue. Specifically, the root node of the target document's path information in the third-party cloud storage service is used as the current processing node and mounted to the document service. Then, the following loop is performed until the level-order traversal queue is empty: based on the target document's path information in the third-party cloud storage service, the child nodes of the current processing node are added to the end of the level-order traversal queue. The first node is removed from the level-order traversal queue, the current processing node is updated to the first node, and the current processing node is mounted under the parent node of the current processing node in the document service.

[0068] For example, the target document's path information in a third-party cloud storage service is / a / b and / a / c, and the file's root node is a. Node a is mounted to the document service and added to the level-order traversal queue as the current processing node. Next, node a's child nodes b and c are added to the end of the level-order traversal queue. The first node b is removed from the level-order traversal queue, and the current processing node is updated to node b. Node b is then mounted under node a in the document service. At this point, node c is still in the level-order traversal queue, so the current processing node is updated to node c, and node c is mounted under node a in the document service.

[0069] In this way, through the layer-order traversal method, a file tree of the target document in the third-party cloud storage service is constructed in the document service of the office collaboration system, so that the first user can view the target document in the office collaboration system with the same document hierarchy relationship.

[0070] like Figure 4 As shown, the document service can specifically include a file middleware and a cloud disk space. After the document management service pulls the target document from the third-party cloud storage service, it imports the target file into the file middleware of the document service and creates a file tree for the target document in the cloud disk control of the document service.

[0071] Next, a document change message is generated in the message queue of the document service, and in response to the knowledge question and answer service consuming the message change message, the target document is synchronized to the knowledge question and answer service.

[0072] In other words, communication between the document service and the knowledge Q&A service occurs via message queues, synchronizing the target document to the knowledge Q&A service. Specifically, the file center and cloud disk space each correspond to a message queue. The file center generates document change messages related to the target document's content in the corresponding message queue, while the cloud disk space generates document change messages related to the target document's file tree in the corresponding message queue.

[0073] In this way, the knowledge question answering service consumes the document change message in the message queue and synchronizes the target document and the file tree of the target document to the knowledge question answering service, so that the target document can also be used for intelligent question answering in the knowledge question answering service.

[0074] Combined with the above Figures 1 to 4 The document management method provided in the embodiment of the present application is introduced in detail. The following will introduce the devices and equipment provided in the embodiment of the present application in conjunction with the accompanying drawings.

[0075] See also Figure 5 The document management device shown is deployed in an office collaboration system that provides document services and knowledge question-answering services. The device 50 includes:

[0076] An acquisition module 501 is configured to acquire a first user's document processing permission from a third-party cloud storage service;

[0077] A migration module 502 is configured to migrate the target document of the first user in the third-party cloud storage service to the document service based on the document processing permission;

[0078] The synchronization module 503 is configured to synchronize the target document in the document service to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

[0079] In some possible implementations, the apparatus 50 further includes a question-and-answer module, which is configured to:

[0080] In response to a knowledge question and answer operation triggered by the first user in the knowledge question and answer service, generating a first prompt word; wherein the first prompt word includes: question information associated with the knowledge question and answer operation, auxiliary information, and prompt information for indicating an answer to the question information in combination with the auxiliary information, wherein the auxiliary information includes the target document;

[0081] The first prompt word is sent to a first language model, and reply information corresponding to the question information returned by the first language model is received.

[0082] In some possible implementations, the obtaining module 501 is specifically configured to:

[0083] In response to receiving the document migration request from the first user, calling an authorization interface provided by the third-party cloud storage service;

[0084] In response to the first user granting the document processing permission based on the authorization interface, an authorization code returned by the authorization interface is received.

[0085] In some possible implementations, the migration module 502 is specifically configured to:

[0086] Based on the document processing permission, obtaining a target document of the first user in the third-party cloud storage service;

[0087] The target document is imported into the document service, and a file tree of the target document is constructed in the document service according to the path information of the target document in the third-party cloud storage service.

[0088] In some possible implementations, the migration module 502 is specifically configured to:

[0089] Perform a layer-order traversal on the path information of the target document in the third-party cloud storage service, and construct a file tree of the target document in the document service.

[0090] In some possible implementations, the migration module 502 is specifically configured to:

[0091] The file root node in the path information of the target document in the third-party cloud storage service is used as the current processing node, mounted to the document service, and added to the end of the level-order traversal queue;

[0092] Execute the following loop operation until the level-order traversal queue is empty: according to the path information of the target document in the third-party cloud storage service, add the child node of the current processing node to the end of the level-order traversal queue; take out the first node from the level-order traversal queue, and update the current processing node to the first node; mount the current processing node to the parent node of the current processing node in the document service.

[0093] In some possible implementations, the synchronization module 503 is specifically configured to:

[0094] Producing a document change message to the message queue of the document service;

[0095] In response to the knowledge question and answer service consuming the message change message, the target document is synchronized to the knowledge question and answer service.

[0096] The document management device 50 according to the embodiment of the present application may correspond to executing the method described in the embodiment of the present application, and the above and other operations and / or functions of each module / unit of the document management device 50 are respectively to achieve Figure 1 For the sake of brevity, the corresponding processes of the various methods in the illustrated embodiments are not described here in detail.

[0097] The embodiment of the present application also provides an electronic device. The electronic device is specifically used to implement Figure 5 The functions of the document management device 50 in the illustrated embodiment.

[0098] Figure 6 A structural diagram of an electronic device 600 is provided. Figure 6 As shown, electronic device 600 includes bus 601, processor 602, communication interface 603 and memory 604. Processor 602, memory 604 and communication interface 603 communicate with each other via bus 601.

[0099] The bus 601 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0100] The processor 602 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0101] The communication interface 603 is used for communicating with the outside, for example, the communication interface 603 can be used for communicating with a terminal.

[0102] The memory 604 may include volatile memory, such as random access memory (RAM), or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0103] The memory 604 stores executable codes, and the processor 602 executes the executable codes to perform the aforementioned document management method.

[0104] Specifically, in the implementation Figure 5 In the case of the embodiment shown, and Figure 5 When each module or unit of the document management device 50 described in the embodiment is implemented by software, Figure 5 The software or program code required for the functions of each module / unit in the document management system may be partially or completely stored in the memory 604. The processor 602 executes the program code corresponding to each unit stored in the memory 604 to perform the aforementioned document management method.

[0105] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the document management method applied to the document management device 50.

[0106] The present application also provides a computer program product comprising one or more computer instructions that, when loaded and executed on a computing device, fully or partially generate the process or function described in the present application.

[0107] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0108] When the computer program product is executed by a computer, the computer executes any of the aforementioned document management methods. The computer program product may be a software installation package, and when any of the aforementioned document management methods is needed, the computer program product may be downloaded and executed on the computer.

[0109] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to the various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the prescribed logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the prescribed function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0110] The units involved in the embodiments described in this application may be implemented in software or hardware, wherein the name of a unit / module does not, in some cases, constitute a limitation on the unit itself.

[0111] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0112] In the context of the present application embodiment, machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include but is not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.

[0114] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0115] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0116] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0117] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A document management method, characterized in that: Applied to an office collaboration system that provides document services and knowledge question-and-answer services, the method includes: Obtaining document processing permissions of the first user's third-party cloud storage service; Based on the document processing permission, migrating the target document of the first user in the third-party cloud storage service to the document service; The target document in the document service is synchronized to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

2. The method according to claim 1, characterized in that The method further comprises: In response to a knowledge question and answer operation triggered by the first user in the knowledge question and answer service, generating a first prompt word; wherein the first prompt word includes: question information associated with the knowledge question and answer operation, auxiliary information, and prompt information for indicating an answer to the question information in combination with the auxiliary information, wherein the auxiliary information includes the target document; The first prompt word is sent to a first language model, and reply information corresponding to the question information returned by the first language model is received.

3. The method according to claim 1, characterized in that The obtaining of the first user's document processing permission of the third-party cloud storage service includes: In response to receiving the document migration request from the first user, calling an authorization interface provided by the third-party cloud storage service; In response to the first user granting the document processing permission based on the authorization interface, an authorization code returned by the authorization interface is received.

4. The method according to claim 1, wherein The step of migrating the target document of the first user in the third-party cloud storage service to the document service based on the document processing permission includes: Based on the document processing permission, obtaining a target document of the first user in the third-party cloud storage service; The target document is imported into the document service, and a file tree of the target document is constructed in the document service according to the path information of the target document in the third-party cloud storage service.

5. The method according to claim 4, characterized in that The step of constructing a file tree of the target document in the document service according to the path information of the target document in the third-party cloud storage service includes: Perform a layer-order traversal on the path information of the target document in the third-party cloud storage service, and construct a file tree of the target document in the document service.

6. The method according to claim 5, characterized in that The performing a layer-order traversal on the path information of the target document in the third-party cloud storage service to construct a file tree of the target document in the document service includes: The file root node in the path information of the target document in the third-party cloud storage service is used as the current processing node, mounted to the document service, and added to the end of the level-order traversal queue; Execute the following loop operation until the level-order traversal queue is empty: according to the path information of the target document in the third-party cloud storage service, add the child node of the current processing node to the end of the level-order traversal queue; take out the first node from the level-order traversal queue, and update the current processing node to the first node; mount the current processing node to the parent node of the current processing node in the document service.

7. The method according to any one of claims 1 to 6, characterized in that The step of synchronizing the target document in the document service to the knowledge question and answer service includes: Producing a document change message to the message queue of the document service; In response to the knowledge question and answer service consuming the message change message, the target document is synchronized to the knowledge question and answer service.

8. A document management device, characterized in that: Deployed in an office collaboration system that provides document services and knowledge question-and-answer services, the device includes: An acquisition module, configured to obtain the first user's document processing permission from a third-party cloud storage service; a migration module, configured to migrate the target document of the first user in the third-party cloud storage service to the document service based on the document processing permission; A synchronization module is used to synchronize the target document in the document service to the knowledge question and answer service, so that the data source of the knowledge question and answer service includes the target document.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The method comprises instructions for instructing an electronic device to execute the method according to any one of claims 1 to 8.

11. A computer program product, characterized in that The computer program product comprises computer-readable instructions for implementing the method according to any one of claims 1 to 7.