A method of automatically processing a document in accordance with a natural language command.
Patent Information
- Application Number
- FR2024001547
- Authority / Receiving Office
- FR · FR
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-02-16
- Publication Date
- 2025-08-22
Smart Images

Figure 00000000_0000_ABST
Abstract
Claims
Claims
1.
2.
3. Method for automatically processing a document stored by a second server (2), in accordance with at least one user command in natural language, describing said expected processing of the document, the method being characterized in that it comprises the implementation, by data processing means (11) of a first server (1) connected to the second server (2) by a communication network (20), of steps of: a. Obtaining said at least one user command in natural language and an identifier of said document, from a user interface (13); b. Transmission to said second server (2) of a request for at least part of said document in the form of a text file, said request comprising said obtained identifier, and receipt in return of said text file, c. Implementation of a textual query for processing the document, called the main textual query, by a generative language model, said main textual query comprising: - The user command; - The contents of said text file; a. Restitution, by said user interface (13), of a textual response to said main textual request. The method of claim 1, wherein said generative language model is implemented by a third server (3) connected to the first server (1) by said communication network (20), step (c) comprising transmitting said textual request to the third server (3), and receiving in return said textual response. Method according to one of claims 1 and 2, wherein said main text query further comprises a sentence defining that the desired action of the generative language model is the processing in accordance with the user command of the content of the text file, the user command being designated by a first identifier, the content of said text file being designated by a second identifier, and the first and second identifiers being repeated in said sentence.
4. Method according to claim 3, in which said text query is of the form: "P(I1; 12) II: CU 12: DOC" Where II and 12 are the first identifiers; P(I1; 12) said sentence defining the desired action of the generative language model and repeating the identifiers II and 12; DOC the text contained in the text file, and CU the user command.
5. Method according to one of claims 1 to 4, in which step (a) comprises the user entering on the one hand said identifier and on the other hand said user command in natural language.
6. A method according to one of claims 1 to 5, wherein said user command contains said identifier, step (a) comprising extracting the identifier of the document in said user command.
7. Method according to claim 6, in which step (a) comprises the implementation of a textual query for pre-processing said textual user command, called preliminary textual query, by said generative language model, so as to extract said identifier.
8. Method according to claim 7, wherein said preliminary request is a request for transcription of said textual user command, by said generative language model, into a structured file containing: - said document identifier; - a generic version of said user command no longer containing said identifier; - Optionally, a designation of a target part of the document to be processed; Said main textual request implemented in step (c) comprising said generic version rather than the original user command containing said identifier.
9. A method according to claim 8, wherein, if said structured file contains the designation of a target part of the document to be processed, said query transmitted in step (b) is a query of said target part of said document.
10. Method according to one of claims 8 and 9, wherein said preliminary text query comprises: - the user command; - either a model of the structured file; or a pair of a reference command in natural language, and a reference structured file in said predefined markup language, corresponding to the expected transcription of said reference command by said generative language model.
11. Method according to one of claims 1 to 10, in which the generative language model is a large language model, LLM, in particular a pre-trained generative transformer type model, GPT.
12. Method according to one of claims 1 to 11, comprising the implementation of steps (a) to (d) for a first user command so as to obtain a first textual response, then the implementation, for a second user command, of step (a); of a step (c') of implementing a second main textual query, by the generative language model, comprising the second user command but not the content of said text file; and of step (d).
13. Server (1) for automatically processing a document in accordance with at least one user command in natural language, connected to a second server (2) storing said document by a communication network (20), characterized in that it comprises data processing means (11) configured to: - Obtain from a user interface (13) the user command in natural language, describing said expected processing of the document, and an identifier of said document; - Transmit to said second server (2) a request for at least part of said document in the form of a text file, said request comprising said obtained identifier, and receive in return said text file, - Implement a textual request for processing the document, called the main textual request, by a model of generative language, said main text query comprising: • The user command; • The content of said text file; - Restore, by said user interface (13), a text response to said main text query.
14. Computer program product comprising code instructions for executing a method according to one of claims 1 to 12 for automatically processing a document stored by a second server (2), in accordance with at least one user command in natural language, describing said expected processing of the document, when said program is executed on a computer.
15. Storage means readable by computer equipment on which is recorded a computer program product comprising code instructions for the execution of a method according to one of claims 1 to 12 for automatic processing of a document stored by a second server (2), in accordance with at least one user command in natural language, describing said expected processing of the document.
Citation Information
Patent Citations
Generative summaries for search results
US11886828B1