Demonstration file generation method and device, equipment, storage medium and program

Through a large language model, analyzing user needs and generating typesetting codes is solved, and the problems of time-consuming and inconsistent formats of traditional PPT production are realized, and efficient and personalized demonstration files are automatically generated.

CN119579734APending Publication Date: 2025-03-07BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411485293.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Traditional PPT production methods are time-consuming and cumbersome, require a lot of human resources, and are prone to inconsistent formats.

Method used

By introducing a large language model to analyze user needs, identify user intentions, and generate file content data and layout code based on text demonstration diagrams and demonstration layout intentions, thereby automatically generating target demonstration files.

Benefits of technology

It realizes automatic generation of demonstration files, improves generation efficiency, reduces production time, and ensures the format consistency and personalization of the generated files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119579734A_ABST
    Figure CN119579734A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a presentation file generation method and device, equipment, a storage medium and a program. The method comprises the steps of obtaining user demand information and a large language model; the user demand information is used for indicating a user intention for a demonstration file to be generated, and the user intention comprises a text demonstration intention and a demonstration typesetting intention; obtaining file content data according to the large language model and the user demand information for the text demonstration intention; generating a typesetting code according to the file content data and the user demand information for demonstrating the typesetting intention; and rendering according to the typesetting code to obtain the target demonstration file. The large language model is introduced to analyze the user demand, and the typesetting code is generated for the file content data based on the demonstration typesetting intention, so that personalized typesetting layout with uniform typesetting and format is realized under the condition of automatically generating the demonstration file, and the problem that the generated target demonstration file is inconsistent in format is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of user identification, and in particular to a method for generating a presentation file, a device for generating a presentation file, an electronic device, a computer-readable storage medium and a computer program product. Background Art

[0002] A presentation file may refer to a presentation document (PowerPoint, PPT for short), which often contains many graphics and animation effects. It can make static files into dynamic files for browsing and is applied to business presentations, academic lectures, industry reports and conferences, training and education, art design and other fields, helping creators present their ideas and concepts in an attractive way.

[0003] However, the traditional way of making PPT mainly involves manually processing each page one by one. The production process is time-consuming and cumbersome, and will consume a lot of time and human resources. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method for generating a presentation file, a device for generating a presentation file, an electronic device, a computer-readable storage medium and a computer program product to realize automatic generation of presentation files. The specific technical solution is as follows:

[0005] In a first aspect of the present invention, a method for generating a presentation file is provided, the method comprising:

[0006] Acquire user demand information and a large language model; the user demand information is used to indicate the user's intention for the presentation file to be generated, and the user's intention includes a text presentation diagram and a presentation layout intention;

[0007] Obtaining file content data according to the large language model and user demand information for the text presentation diagram;

[0008] Generate typesetting code according to the file content data and user demand information for the demonstration typesetting intention;

[0009] The target presentation file is obtained by rendering according to the typesetting code.

[0010] In a second aspect of the present invention, a demonstration file generating device is provided, the device comprising:

[0011] A user demand information acquisition module, used to acquire user demand information and a large language model; the user demand information is used to indicate the user's intention for the presentation file to be generated, and the user's intention includes a text presentation diagram and a presentation layout intention;

[0012] A file content recognition module, used for obtaining file content data according to the large language model and user demand information for the text presentation diagram;

[0013] A typesetting code generation module, used to generate typesetting code according to the file content data and user demand information for the demonstration typesetting intention;

[0014] The demonstration file generation module is used to render the target demonstration file according to the typesetting code.

[0015] In another aspect of the implementation of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; and the processor is used to implement any of the above-mentioned demonstration file generation methods when executing the program stored in the memory.

[0016] In another aspect of the present invention, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned methods for generating a presentation file.

[0017] In yet another aspect of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned methods for generating a presentation file.

[0018] The method, device, equipment, storage medium and program for generating a presentation file provided by the embodiment of the present invention analyzes user needs by introducing a large language model to identify the user intention for the presentation file to be generated, thereby obtaining file content data based on user demand information for the text presentation diagram, and generating typesetting code based on the file content data and user demand information for the presentation typesetting intention, and then rendering the target presentation file according to the typesetting code, that is, the large language model can be used to improve the ability to understand the input content, and the target presentation file can be automatically generated on the premise of ensuring that the generated target presentation file is accurate, relevant and meets the user's expectations, thereby improving the generation efficiency of the presentation file and reducing the production time of the presentation file. Furthermore, the typesetting code generated for the file content data based on the presentation typesetting intention can be rendered to obtain the target presentation file through the aforementioned typesetting code, so that in the case of automatically generating the presentation file, a personalized typesetting layout with unified typesetting and format can be achieved, thereby avoiding the problem of inconsistent formats in the generated target presentation file. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0020] Figure 1 A flowchart of a method for generating a demonstration file according to an embodiment of the present invention;

[0021] Figure 2 A flowchart of another method for generating a presentation file in an embodiment of the present invention;

[0022] Figure 3 It is an identification flow chart of an embodiment of a method for generating a demonstration file in an embodiment of the present invention;

[0023] Figure 4 It is a structural block diagram of an embodiment of a demonstration file generating device in an embodiment of the present invention;

[0024] Figure 5 The figure is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0026] Presentation files help creators present their ideas and concepts in an attractive way.

[0027] However, the current production of presentation files is mainly achieved by manually processing each page one by one, that is, the traditional production method of PPT mentioned above, the production process is time-consuming and cumbersome, and will consume a lot of time and human resources; and because the format is manually adjusted during the production process of traditional PPT, it will cause format inconsistency problems between multiple slides; and some automated tools will have limitations in understanding the input content, which may cause the generated PPT to be inaccurate or relevant due to insufficient understanding of the content; and traditional tools usually lack user-friendly personalized options, making it impossible for users to flexibly and quickly customize the presentation content; and when converting data from other data sources into expressive forms in PPT, such as text diagrams, text tables, etc., a lot of data conversion work will be required.

[0028] The embodiment of the present invention adopts a large language model to improve the efficiency of PPT production by efficiently and automatically generating presentation files. At the same time, it adopts typesetting generation technology, such as LaTeX Beamer technology, to ensure the consistency of the format in the generated PPT and the personalization level of the generated PPT, so that users can easily create high-quality presentation files. Specifically, the embodiment of the present invention designs a flexible data input module, which can process data in different formats and convert it into a unified internal data structure to support the input of multiple data sources, so that users can provide input source data in multiple forms, including PDF documents, plain text, reports, and SQL data sources, etc., so that users can easily provide information required for presentations and ensure the diversity of input; it can also use a large language model to achieve a deep understanding of the input data, so that it can intelligently generate content-related and expressive PPT slides to ensure sufficient understanding of the input content; it can also use LaTeX Beamer technology to ensure that the generated PPT has high-quality typesetting and format consistency, making it suitable for professional scenarios such as academic and commercial; it can also provide a user interface to allow users to easily select and switch the theme, style and layout of the presentation to meet different scenarios and personal needs, so as to meet the personalized needs of users; and it can also introduce real-time feedback and editing functions so that users can make real-time adjustments and edits on the generated PPT to ensure that the final presentation fully meets their expectations and requirements.

[0029] Reference Figure 1 , shows a flowchart of a method for generating a presentation file in an embodiment of the present invention, which may specifically include the following steps:

[0030] Step 101, obtaining user demand information and a large language model;

[0031] Large Language Model (LLM) is a basic model that can be trained with a large amount of data to understand and generate natural language and other types of content to perform tasks including text summarization, translation, sentiment analysis, etc. In an embodiment of the present invention, for example, a GPT-4 large language model or other similar advanced language models can be used to understand and generate natural language, and specifically can be responsible for understanding user needs, output content, and converting and decoding data content.

[0032] In order to understand the user demand information, the user demand can be received first to obtain the user demand information. In actual applications, the user can submit the demand information for the presentation file to be generated through some interactive mode, such as voice input or text input.

[0033] As an example, when performing voice input, the user's needs can be input into the large language model in the form of voice by selecting a voice recognition tool. In this process, the voice recognition tool can first convert the user's voice into text, and then use the converted text as the input of the large language model, such as GPT-4, or the user can choose to manually edit the text to more accurately express the user's needs, and then submit the converted text or the user-edited text to GPT-4, so that it can subsequently generate corresponding file content data; as another example, when performing text typing, you can access an online platform or application that integrates GPT-4 and LaTeX Beamer technology, and then type the required PPT scheme in the text box of the platform, including themes, key points, structures, etc., to submit the typed user needs to the language model, such as GPT-4, so that it can subsequently generate corresponding file content data. This is not limited by the embodiments of the present invention.

[0034] User demand information can be mainly used to indicate the user's intention for the presentation file to be generated. The indicated user intention can include text presentation diagrams and presentation layout intentions. Then, the user demand information can include user demand information for the text presentation diagram, such as but not limited to presentation topics, presentation objectives, and multiple data sources. Among them, the presentation topic can be used to indicate the main discussion points or core content of the presentation file to be generated, such as "marketing strategy", "product innovation", "annual report", etc. The presentation objective can be used to indicate the purpose or expected effect of the presentation file to be generated, such as "showing investors the company's profit potential" or "training new employees to understand product functions", etc.

[0035] Optionally, a flexible data input module can be designed, which can process data in different formats and convert it into a unified internal data structure to support the input of multiple data sources. Multiple data sources can represent input source data provided in multiple forms, including PDF documents, plain text, reports, and SQL data sources. As an example, a PDF document uploaded by a user is received through the data input module, so that the large language model can extract text data and / or table data in the document; as another example, the plain text directly input by the user is received through the data input module, so that the large language model can extract key information; as another example, an Excel report uploaded by a user is received through the data input module, so that the large language model can read the report data and extract key data; as another example, the database connection information input by the user and the SQL query statement input by the user are received through the data input module, so that the data input module can connect to the database to perform corresponding query operations and provide query results to the large language model, and the large language model can extract corresponding data.

[0036] Optionally, the user demand information may also include user demand information for the presentation layout intention, such as but not limited to layout information, which may include, for example, structural arrangement, color theme, font and style, pictures and charts, animation effects, and interactive elements. It should be noted that the more detailed the demand information submitted by the user, the better the large language model can understand and meet the user's requirements based on the comprehensiveness and accuracy of the submitted requirements, thereby generating a presentation file that better meets the user's expectations.

[0037] Step 102, obtaining file content data according to the large language model and user demand information for the text presentation diagram;

[0038] The large language model can be used to understand user demand information. In this case, the large language model can perform demand analysis on user demand information for the text presentation diagram to obtain file content data.

[0039] In practical applications, the input of the large language model includes not only the information to be parsed itself, that is, the user demand information, but also the input of prompt information. The prompt information plays a vital role in guiding the model to generate correct, relevant and high-quality output. Specifically, for the user demand information to be parsed, the prompt information can include parsing instructions and parsing examples, wherein the parsing instructions can clearly inform the large language model of the parsing task that needs to be performed at present, and the parsing examples can be used to prompt the large language model to understand the aforementioned parsing instructions according to the provided parsing examples to obtain file content data that meets the requirements. That is, the prompt information can help the large language model understand the user's intentions, guide the large language model to generate expected output, and help control the output of the large language model so that it meets specific format, style or content requirements.

[0040] Optionally, the file content data may include text data and visual data, wherein the text data is used to convey information and explanations, such as titles, text, etc., and the visual data is used to intuitively display data and trends, such as lists, pictures, tables, etc.

[0041] In some embodiments of the present invention, the user demand information for the text presentation diagram includes a presentation theme, a presentation goal, and multiple data sources. The demand analysis performed can be specifically manifested as performing demand analysis on the presentation theme and the presentation goal through a large language model to obtain a text presentation diagram, and then retrieving text data that is consistent with the text presentation diagram from multiple data sources.

[0042] In practical applications, the above-mentioned prompt information can be used when performing demand analysis, that is, the prompt information is used as the input of the large language model to guide the large language model to perform demand analysis on the presentation theme and goal. Optionally, in the process of generating a text presentation diagram, the parsing instruction included in the prompt information can be a text presentation diagram parsing instruction, which can inform the large language model of the parsing task to be currently performed, which is a text presentation diagram parsing task of "parsing the presentation theme and the presentation goal, and obtaining the text presentation diagram"; the parsing example included in the prompt information can be a text presentation diagram parsing example, which can be specifically expressed as an example related to the presentation theme and goal. At this time, the large language model can respond to the text presentation diagram parsing instruction, perform demand analysis on the presentation theme and the presentation goal according to the text presentation diagram parsing example, and obtain a text presentation diagram that meets the requirements.

[0043] For example, suppose a certain parsing example is as follows: when the presentation topic is "The Impact and Response Strategies of Global Climate Change", the presentation goal is "Showing the audience the severity of global climate change and introducing several effective response strategies", and the text presentation diagram is "Generate a text containing something"; at this time, the text presentation diagram obtained by performing demand parsing on the presentation topic and the presentation goal according to the aforementioned parsing example can be "Generate a text containing global temperature change trends", "Generate a text containing statistics on extreme weather events", "Generate a text containing climate change response strategies", etc., so as to retrieve text data that matches the aforementioned text presentation diagram from multiple data sources, and then obtain file content data.

[0044] Specifically, the demand parsing process involves the processes of semantic understanding, syntactic analysis and context induction, as well as translating user needs into feature vectors that the model can recognize, thereby ensuring that the model can accurately grasp the user's intentions. Among them, the large language model can first understand the user's input presentation theme and presentation target at the semantic level. By understanding the vocabulary, phrases and context used by the user, the model can infer the core meaning that the user wants to express; then, based on the semantic understanding, the presentation theme and presentation target can be further syntactically analyzed to identify sentence components such as subject, predicate, object, and understand the relationship between the aforementioned sentence components, so as to more accurately grasp the user's intentions; further, by considering the context information of the user input, such as the user's previous input, the context of the current input, and possible subsequent input, by summarizing the context information, the model can more comprehensively understand the user's needs and expectations, and avoid misunderstandings or deviations caused by lack of context; finally, the large language model used can translate the user's needs into feature vectors that the model can recognize. Feature vectors are a mathematical representation used to capture key information of user needs, so that the large language model can perform subsequent generation or processing based on this information.

[0045] Step 103, generating typesetting code according to the file content data and user demand information for the demonstration typesetting intention;

[0046] After obtaining the file content data through the use of a large language model, since the large language model focuses on text generation and understanding and does not directly implement automatic typesetting generation of a presentation file, in some embodiments of the present invention, the large language model can be used to assist in generating typesetting codes for the presentation file, and automatic typesetting of the presentation file can be implemented based on the typesetting codes.

[0047] Optionally, in the presentation file, regarding the layout of the file content data and the format of the slides, a corresponding layout code can be generated for the file content data based on user demand information regarding the presentation layout intention, and then the consistency of the format in the generated PPT and the level of personalization of the generated PPT can be ensured based on the generated layout code.

[0048] Among them, user demand information for presentation layout intentions may include layout information, which can be mainly used to indicate the theme, style and layout of the presentation selected and switched by the user based on the provided user interface, thereby ensuring the personalization level of the subsequently generated PPT.

[0049] In practical applications, the generated typesetting code may refer to LaTeX code. LaTeX Beamer technology is mainly a tool for creating high-quality PPTs. The embodiment of the present invention can generate a PPT with a consistent format and advanced effects by using LaTeX Beamer technology.

[0050] Step 104, rendering according to the typesetting code to obtain the target presentation file.

[0051] The typesetting code can be mainly used to indicate the typesetting layout of text data and visual data in the presentation file template.

[0052] In one embodiment of the present invention, the typesetting code can be called through the large language model, based on the combination of LaTeXBeamer technology and the content generated by the large language model, the text data and visual data in the file content data are correspondingly typeset in the presentation file template to obtain the target presentation file, thereby automatically generating PPT content by utilizing the large language model analysis and various data sources provided by the user, reducing the time for manual processing of text and image typesetting, and making the production of PPT faster and more efficient.

[0053] In an embodiment of the present invention, a large language model is introduced to analyze user needs to identify the user intention for the presentation file to be generated, thereby obtaining file content data based on user demand information for the text presentation diagram, and generating typesetting code based on the file content data and user demand information for the presentation typesetting intention, and then rendering the target presentation file according to the typesetting code, that is, the large language model can be used to improve the ability to understand the input content, and the target presentation file can be automatically generated on the premise of ensuring that the generated target presentation file is accurate, relevant, and meets user expectations, thereby improving the generation efficiency of the presentation file and reducing the production time of the presentation file. Furthermore, the typesetting code generated for the file content data based on the presentation typesetting intention can be rendered to obtain the target presentation file through the aforementioned typesetting code, so that in the case of automatically generating the presentation file, a personalized and uniform typesetting and formatting layout can be achieved, thereby avoiding the problem of inconsistent formats in the generated target presentation file.

[0054] Reference Figure 2 , shows a flowchart of another method for generating a presentation file in an embodiment of the present invention, which may specifically include the following steps:

[0055] Step 201, obtaining file content data based on the text rendering diagram using a large language model;

[0056] In the embodiment of the present invention, the large language model can be responsible for understanding the user's needs. In order to understand the user's demand information, such as Figure 3 As shown, firstly, user demand can be received to obtain user demand information.

[0057] The user requirement information may be used to indicate the user's intention for the presentation file to be generated, and the user's intention may include a text presentation diagram.

[0058] In one embodiment of the present invention, Figure 3 As shown, the user demand information for the text presentation diagram can be parsed by a large language model according to the prompt information, thereby processing the demand, and in the process of demand processing, data from multiple data sources are integrated to obtain file content data.

[0059] Specifically, user demand information for a text presentation diagram may include, but is not limited to, a presentation topic, a presentation goal, and multiple data sources. At this time, the presentation topic and the presentation goal can be parsed through a large language model to obtain a text presentation diagram. Specifically, in response to a text presentation diagram parsing instruction, the presentation topic and the presentation goal are parsed according to a text presentation diagram parsing example to obtain a text presentation diagram. Then, text data that matches the text presentation diagram can be retrieved from multiple data sources as file content data.

[0060] Optionally, the text presentation diagram may include presentation diagrams for the content theme, content structure, text style, etc. of the presentation file. For the recognition of the text presentation diagram, illustratively, the presentation theme and presentation goal can be identified according to the text presentation diagram parsing example to obtain a presentation diagram of the content theme. The presentation theme is usually a general description, while the presentation goal is a specific goal and purpose. Specifically, it can be manifested in that the presentation theme and presentation goal are parsed according to the text presentation diagram parsing example using a large language model to generate related topics, wherein the descriptions of the presentation theme and presentation goal are usually in the form of text strings. The large language model can obtain the parsed text information through word segmentation, part-of-speech tagging, named entity recognition, syntactic analysis and other processing processes, and then the presentation theme is extracted from the aforementioned text information. and the key information of the demonstration target to identify the field or category to which the subject to be generated belongs; the demonstration subject and the demonstration target can also be identified according to the text demonstration diagram parsing example to obtain a demonstration diagram of the content structure, which is specifically manifested as identifying a related subject template based on the key information extracted above according to the text demonstration diagram parsing example, and the subject template is manifested as a structured template, which contains a hierarchical refinement of the generated subject to indicate the specific division of subsequent content chapters; and, the demonstration target can also be identified according to the text demonstration diagram parsing example to obtain a text style demonstration diagram to indicate the language style of the file content data generated later, which can be specifically manifested as identifying the tone, language style, emotional color, etc. that are subsequently filled into the subject template based on the above extraction. This is not limited by the embodiments of the present invention.

[0061] Among them, the data provided by multiple data sources can come from PDF, plain text, reports or SQL data sources input by users, or can be obtained through online plug-ins to obtain the required resources and provided materials, thereby ensuring the diversity of user input. This diversified input method allows users to have higher flexibility when preparing PPT, and can provide the most appropriate information source according to the content requirements of the presentation.

[0062] The generated file content data may include text data for presentation. Specifically, in the process of demand processing, relevant data retrieval, format conversion and other processing may be performed. In the process of data retrieval, data may be integrated from a variety of data sources, such as PDF files, plain text, reports, and SQL databases, that is, the large language model may use OCR (optical character recognition) technology to extract text and image information from PDF files; or the large language model may directly read and analyze the text content of plain text files to extract key information; or the large language model may extract the required data by parsing the format of reports containing structured data; or the large language model may obtain relevant data from the database by executing SQL query statements, and then retrieve text data that is consistent with the text presentation diagram.

[0063] The generated file content data may also include visualization data. Furthermore, if there is a visualization requirement for the text data, the text data may be visualized to obtain the visualization data. Specifically, the visualization requirement may be expressed as a chart generation requirement, and the visualization processing is used to convert the data into charts. After the large language model integrates information from diverse data sources, the data may be converted into various charts through visualization processing, such as performing operations such as text generation into images and text generation into tables.

[0064] As an example, if the text data has an image generation requirement in the visualization requirement, the text data can be converted to obtain an image to obtain visualization data; as another example, if the text data has a table generation requirement in the visualization requirement, the text data can be converted to obtain a table, so as to realize the use of visualization technology to generate corresponding charts for the text that needs to generate charts, and obtain visualization data. Among them, when converting the text data to obtain a chart, the text data can be cleaned first, including removing irrelevant information, processing missing values, standardizing data formats, etc., and then the cleaned text data can be converted into a format suitable for visualization, such as CSV, JSON or DataFrame, etc., and the converted data is used to generate a table using, for example, Excel or a programming library to generate a table, or the converted data is used to generate an image using a programming library, and this is not limited by the embodiments of the present invention.

[0065] Optionally, when the aforementioned conversion generates images and tables, the generated images and / or tables may be enhanced to improve the visual effect of the charts. For texts that require image enhancement, other models such as DALL-E3 may be used to display the content in a high-quality form. This is not limited in the embodiments of the present invention.

[0066] For the identification of various requirements existing in the above-mentioned text data, the text data can be parsed through a large language model, and the requirements can be identified based on whether the text information obtained by parsing contains text features related to the specified requirements. As an example, if the text is parsed to obtain keywords related to image generation, such as generate, create, draw, make, design, build, synthesize, render, generate images, create images, draw images, make images, design images, build images, synthesize images, render images, etc., then the requirements can be classified based on the aforementioned keywords to identify the image generation requirements; as another example, if the text information obtained by parsing contains keywords related to table generation, such as data, statistics, summary, record, numerical value, number, entry, annual data, trend change, etc., then the requirements can be classified based on the aforementioned keywords to identify the table generation requirements.

[0067] Optionally, for the processing of requirements, a specific task description can be generated according to the identified requirements. Specifically, a predefined task template can be used to fill the extracted key information into the template to generate a specific task description, and then the generated task description is output as structured data or text format. The task template can be a predefined structured template or a generated template based on a large language model, which is not limited by the embodiments of the present invention.

[0068] Step 202, based on user demand information for the text presentation diagram, fill the file content data into the presentation file template to obtain presentation file information;

[0069] In one embodiment of the present invention, after obtaining the file content data, a presentation file template can also be selected. The selected template can be a pre-designed template or a dynamically generated template based on the user's specific requirements. The file content data is merged with the presentation file template, and then the file content data is filled into the template to obtain the presentation file information.

[0070] For obtaining presentation file templates, the content type of the presentation file to be generated can be determined mainly based on user demand information for text presentation diagrams, and then the presentation file template that matches the content type can be obtained to adapt to the automatic optimized layout of different content types.

[0071] Optionally, there may be a pre-built template library containing multiple presentation file templates, and the templates in the template library may be classified according to the content type. When storing various presentation file templates in the database, an index may be established based on the content type for storage; when acquiring a presentation text template, the corresponding template classification may be retrieved from the template library according to the identified content type, and then one or more templates may be displayed from the matching template classification for user selection, or a template may be automatically matched. This is not limited in the embodiments of the present invention.

[0072] In practical applications, file content data includes text data and visual data. Text data may include titles, text, etc., and visual data may include lists, images, tables, etc. A presentation file template usually has a filling area for related text content. Specifically, the title in the file content data may be filled into the title area of ​​the template, the text content in the file content data may be filled into the text area of ​​the template, the list content in the file content data may be filled into the list area of ​​the template, and the table content in the file content data may be filled into the table area of ​​the template. In addition, the corresponding style may be applied to the filled content according to the style information of the template, and the embodiment of the present invention does not limit this. In a specific implementation, a presentation file template may have placeholders, and the placeholders may identify the position where data of a corresponding format is inserted. When filling the file content data into the presentation file template, the file content data may be inserted based on the position indicated by the placeholders that identify different types of elements such as text, images, tables, and charts, and the embodiment of the present invention does not limit this.

[0073] Step 203, adjusting the template code of the presentation file template where the text content is located according to the typesetting layout information through the large language model to generate a typesetting code;

[0074] In one embodiment of the present invention, the large language model focuses on text generation and understanding, and does not directly implement automatic typesetting generation of presentation files. In some embodiments of the present invention, such as Figure 3 As shown, a large language model can be used to assist in generating the layout code of a presentation file, so as to realize automatic layout of the presentation file based on the layout code.

[0075] Optionally, the generation of typesetting code may be performed by adjusting the template code of the presentation file template where the file content data is located based on the identified presentation typesetting intent, on the basis of automatically optimizing the layout of the presentation file information according to the corresponding content type, so as to adjust the typesetting layout of the file content.

[0076] Specifically, user demand information can be used to indicate user intention for the presentation file to be generated, and the user intention can include presentation typesetting intention, which can be identified based on a large language model according to the parsed text information; user demand information for presentation typesetting intention can include typesetting layout information, and the typesetting layout information can be mainly used to indicate the theme, style and layout of the presentation selected and switched by the user based on the provided user interface. At this time, based on the user demand information for presentation typesetting intention, the template code can be adjusted to adjust the typesetting layout of the file content, thereby satisfying the user's personalized selection of themes, styles and layouts, which can increase the user's personalized control over the presentation content, and automatically optimize the layout to ensure the best display of the content.

[0077] Exemplarily, the typesetting layout information may include at least one or more of the following information, such as page structure information, style requirement information, and interaction requirement information, among which page structure information may be used to define the hierarchical relationship and structure of the content, style requirement information may reflect the requirements for element positioning and style, and interaction requirement information may reflect the requirements for interaction and responsive design, and is used to define user interaction behavior. Specifically, it may be performed by adjusting the hierarchical relationship code in the template code according to the page structure information; and / or adjusting the appearance layout code in the template code according to the style requirement information; and / or adjusting the interaction code in the template code according to the interaction requirement information to obtain the typesetting code.

[0078] The generated typesetting code may refer to LaTeX code, that is, at this time, LaTeX Beamer technology, which is particularly suitable for generating complex mathematical formulas and charts, can be used to automatically generate corresponding LaTeX code according to the generated visualization content, so as to insert these charts into LaTeX documents, so that PPT slides with professional typesetting and design can be generated later, ensuring that the generated PPT is visually consistent and professional, which is particularly beneficial for users who require strict formatting and high-quality presentations. In practical applications, the large language model can parse the input typesetting layout information and convert the aforementioned information into layout instructions, such as LaTeX parameters, etc., to achieve the generation of LaTeX code.

[0079] Specifically, according to the identified chart type, the model can select a corresponding LaTeX template from a preset LaTeX template library. The template usually contains a series of pre-designed layout framework codes, including page layout, font style, color scheme, etc., to quickly generate a basic structure that meets the user's expectations; then the integrated data can be filled into the selected LaTeX template to generate specific chart codes, thereby realizing the generation of typesetting codes. Exemplarily, the structure of each slide is defined by using \begin{frame} and \end{frame} in LaTeX, and the alignment of elements is defined by controlling columns and rows. This is not limited in the embodiments of the present invention.

[0080] Step 204, in response to the demonstration file generation instruction, the large language model is used to call a preset rendering engine to parse the typesetting code and generate a target demonstration file.

[0081] The large language model focuses on text generation and understanding, and does not directly realize the automatic typesetting generation of the presentation file. In the embodiment of the present invention, it is necessary to use the large language model to assist in generating the typesetting code of the presentation file, and realize the automatic typesetting of the presentation file based on the typesetting code. That is, the typesetting operation mentioned in the above steps only parses the presentation file information according to the typesetting layout information and generates preliminary typesetting codes, the purpose of which is to determine the structure and basic style of the content. In the above typesetting, no presentation file is generated.

[0082] In some embodiments of the present invention, after the typesetting code is generated, since the typesetting code can be mainly used to indicate the typesetting layout of text data and visual data in the presentation file template, the generated typesetting code can be obtained and called at this time, and the target presentation file can be actually generated to apply the structured layout indicated by the typesetting code.

[0083] Specifically, the typesetting code is called, which can be implemented according to the specific needs of the user and the format layout instructions by using LaTeX Beamer technology, combined with the text processed by the large language model and the generated charts.

[0084] In practical applications, large language models can generate LaTeX code, but the rendering process still needs to rely on a dedicated rendering engine or library. The generated typesetting code is compiled by tools such as LaTeX engine and HTML renderer to generate visual output (such as PDF or HTML file). Optionally, LaTeX rendering is usually handled by a dedicated preset rendering engine that can parse typesetting code, such as LaTeX code; after the typesetting code is generated, such as Figure 3As shown, the corresponding typesetting result can be directly generated by parsing the aforementioned typesetting code, that is, the target presentation file can be directly obtained. Optionally, the corresponding typesetting result can be directly generated by calling the LaTeX rendering method using the function call ing function of the large language model, that is, the target presentation file can be obtained. Among them, the function call ing function generally refers to the ability of the large language model to call external functions or APIs to achieve more complex functions. At this time, it can be manifested as filling the generated LaTeX code into the PPT, or using a PPT editor that supports LaTeX rendering to directly display these charts. For example, for the filling of the typesetting code, it can be manifested as using a latex-ppt plug-in, using an image in SVG format, transferring through Word, or using IguanaTex or TeX system, etc., which is not limited by the embodiments of the present invention.

[0085] Exemplarily, the LaTeX rendering engines used may include the XeTeX engine (a TeX engine that supports Unicode and modern font technology), the LuaTeX engine (a TeX engine based on Lua scripts that supports extension and customization functions), the pdfTeX engine (a TeX engine that directly generates PDF files), and the LaTeX2e engine (a standard version of LaTeX that provides rich macro packages and document classes), etc., which is not limited in the embodiments of the present invention.

[0086] In a preferred embodiment of the present invention, during the process of generating a target demonstration file, the current demonstration file of the target demonstration file during the generation process can also be displayed to provide real-time feedback to the user on the generation process of the demonstration text. Specifically, the generation process of the demonstration file can be divided into multiple stages or parts, and each stage generates a part of the content. For example, the title can be generated first, then the introduction can be generated, then the main text can be generated, and finally the conclusion can be generated. After the content is generated in each stage, the generated content can be immediately displayed to the user, that is, it can be displayed to the user in an incremental display manner, so that the user can view the currently generated content in real time and provide feedback.

[0087] Optionally, at this time, a real-time editing function can also be provided to the user, allowing the user to make fine adjustments during the generation process of the presentation file. Specifically, after the content is generated at each stage of the presentation file, an interface for user feedback can be provided, and the user can provide feedback through text input, selection boxes, scoring, etc.; and after the content is generated at each stage of the presentation file, an interface for content editing can be provided, and the user can directly edit the generated text content. Specifically, it can be shown that the front-end interface is designed to display the generated presentation file content in real time, and provide a user feedback and editing interface. In the back-end processing, the presentation file content generated in real time by the large language model can be combined, and by responding to the user's editing operation, the file content data in the current presentation file is adjusted accordingly, thereby enhancing the user experience and ensuring that the final output PPT fully meets the user's expectations and needs. Optionally, in the process of real-time editing, a real-time incremental rendering method can be adopted. When the user modifies a presentation page or an element, such as text, pictures, and charts, the back-end processing can only re-render the part and then merge it with the unmodified part. Specifically, it can be achieved by pre-compilation technology or by using a mathematical formula incremental compilation technology similar to LaTeX, and the embodiment of the present invention is not limited to this.

[0088] In a preferred embodiment of the present invention, after the target presentation file is finally generated and output, Figure 3 As shown, the large language model used can also continue to be learned and optimized based on user feedback on the finished PPT product to improve the ability to meet user needs and the quality of the final product. The specific model feedback iteration process is not limited in this embodiment of the present invention.

[0089] In addition, in the presentation file generation scheme provided by the embodiment of the present invention, optionally, the large language model can be continuously fine-tuned or a more advanced version can be used to enhance its ability to understand professional terms and background knowledge of various industries, thereby improving the relevance and accuracy of the generated PPT and enhancing the understanding ability of the large language model; optionally, a machine learning algorithm can be introduced to analyze the user's past PPT production style and preferences, so that in the future generation process, automated design suggestions that are closer to the personal style can be provided to meet more intelligent personalized production; optionally, more visual material libraries and image processing technologies can be integrated to allow users to easily use high-quality charts and infographics in PPT to integrate richer visual elements; optionally, a built-in content optimization engine can be developed to automatically adjust the content density and depth according to the length of the speech and the specific needs of the audience; optionally, interactive elements such as embeddable questionnaires and real-time data charts can be combined to make the PPT more interactive and attractive to the audience, increase interactivity, and make the system more powerful to meet a wider range of user needs while maintaining user-friendliness and practicality. The embodiments of the present invention do not limit the above aspects.

[0090] It should be noted that the presentation file generation solution provided in the embodiment of the present invention can provide content creators with automated tools to quickly and professionally produce speech manuscripts and supporting materials for video content, thereby improving the work efficiency of content creators and allowing them to focus on content innovation rather than presentation design; it can also realize the automated generation of PPT manuscripts required for marketing and advertising promotion, making them attractive and visually consistent, thereby ensuring that the advertisements and marketing materials have a professional appearance, enhancing the brand image and the influence of the advertisements; it can also be integrated as a user-generated content (UGC) function to provide users with an integrated platform, enabling them to create their own PPTs and convert them into video content, thereby encouraging users to generate content, increasing the diversity of platform content, and attracting more audiences; it can also realize the use of automatic The PPT generation technology provides customized video production services, such as conference recording, educational courses and corporate training, to provide high-value services to increase user stickiness, and can be provided as a value-added service to high-end customer groups; it can also use technology to automatically convert internal company data into intuitive PPT reports for internal meetings or to show performance to investors, so as to improve the efficiency and effectiveness of internal communication, and at the same time show professionalism in external communication; it can also be used for experts who hold speeches and seminars to quickly generate accurate and high-quality speech support materials to support experts in building in-depth content sharing, improve speech effects and professional image; it can also be used to develop special PPT templates and resource libraries for specific topics or industries, such as entertainment, technology, education, etc., to strengthen the resource advantages of the company platform and attract creators and audiences in specific fields. That is, through the generation scheme of the presentation file provided in the embodiment of the present invention, more value-added services can be provided, user stickiness can be increased, brand image can be enhanced, and new revenue streams may be opened up, bringing more interactivity and personalized experience, thereby enhancing competitiveness in the video content service market, and the embodiment of the present invention is not limited to this.

[0091] In an embodiment of the present invention, a large language model is introduced to analyze user needs to identify the user intention for the presentation file to be generated, thereby obtaining file content data based on user demand information for the text presentation diagram, and generating typesetting code based on the file content data and user demand information for the presentation typesetting intention, and then rendering the target presentation file according to the typesetting code, that is, the large language model can be used to improve the ability to understand the input content, and the target presentation file can be automatically generated on the premise of ensuring that the generated target presentation file is accurate, relevant, and meets user expectations, thereby improving the generation efficiency of the presentation file and reducing the production time of the presentation file. Furthermore, the typesetting code generated for the file content data based on the presentation typesetting intention can be rendered to obtain the target presentation file through the aforementioned typesetting code, so that in the case of automatically generating the presentation file, a personalized and uniform typesetting and formatting layout can be achieved, thereby avoiding the problem of inconsistent formats in the generated target presentation file.

[0092] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0093] Reference Figure 4 , shows a structural block diagram of an embodiment of a demonstration file generating device in an embodiment of the present invention, which may specifically include the following modules:

[0094] A user demand information acquisition module 401 is used to acquire user demand information and a large language model; the user demand information is used to indicate the user intention for the presentation file to be generated, and the user intention includes a text presentation diagram and a presentation layout intention;

[0095] A file content identification module 402, configured to obtain file content data according to the large language model and user demand information for the text presentation diagram;

[0096] A typesetting code generating module 403, for generating typesetting codes according to the file content data and user requirement information for the demonstration typesetting intention;

[0097] The demonstration file generating module 404 is used to render the target demonstration file according to the typesetting code.

[0098] In one embodiment of the present invention, the user demand information for the text presentation diagram includes a presentation theme, a presentation target, and multiple data sources; the file content identification module 402 may include the following submodules:

[0099] The text data identification submodule is used to perform demand analysis on the presentation theme and the presentation target through the large language model to obtain a text presentation diagram; and retrieve text data consistent with the text presentation diagram from the multiple data sources to serve as the file content data.

[0100] In one embodiment of the present invention, the text data recognition submodule may include the following units:

[0101] A text data recognition unit is used to obtain prompt information; the prompt information includes a text presentation diagram parsing instruction and a text presentation diagram parsing example; the large language model responds to the text presentation diagram parsing instruction, and the presentation subject and the presentation target are parsed according to the text presentation diagram parsing example to obtain a text presentation diagram.

[0102] In one embodiment of the present invention, the file content identification module 402 may further include the following submodules:

[0103] The visualization data identification submodule is used to perform visualization processing on the text data when there is a visualization requirement for the text data to obtain visualization data as the file content data.

[0104] In one embodiment of the present invention, the visualization processing is used to convert data into a chart; the visualization data identification submodule may include the following units:

[0105] A visualization processing unit is used to convert the text data into an image as the visualization data when the text data has an image generation requirement among the visualization requirements; and / or to convert the text data into a table as the visualization data when the text data has a table generation requirement among the visualization requirements.

[0106] In an embodiment of the present invention, after obtaining the file content data, the device provided by the embodiment of the present invention may further include the following modules:

[0107] The data filling module is used to determine the content type of the presentation file to be generated based on the user demand information for the text presentation diagram; obtain a presentation file template that matches the content type; and merge the file content data into the presentation file template.

[0108] In an embodiment of the present invention, the user requirement information for the demonstration typesetting intention includes typesetting layout information, and the typesetting layout information includes at least one or more of the following: page structure information, style requirement information, and interaction requirement information; the typesetting code generation module 403 may include the following submodules:

[0109] A typesetting code generation submodule is used to obtain the template code of the presentation file template where the file content data is located; through the large language model, adjust the hierarchical relationship code in the template code according to the page structure information; and / or adjust the appearance layout code in the template code according to the style requirement information; and / or adjust the interaction code in the template code according to the interaction requirement information to obtain the typesetting code.

[0110] In one embodiment of the present invention, the presentation file generation module 404 may include the following submodules:

[0111] The demonstration file generation submodule is used to respond to the demonstration file generation instruction, call the preset rendering engine through the large language model to parse the typesetting code, and generate a target demonstration file.

[0112] In an embodiment of the present invention, in the process of generating the target demonstration file, the apparatus provided by the embodiment of the present invention may further include the following modules:

[0113] The text content adjustment module is used to display the current demonstration file of the target demonstration file during the generation process; in response to the user's editing operation, the file content data in the current demonstration file is adjusted accordingly.

[0114] In an embodiment of the present invention, the embodiment of the device for generating a presentation file provided by the embodiment of the present invention analyzes user needs by introducing a large language model to identify the user intention for the presentation file to be generated, thereby obtaining file content data based on user demand information for the text presentation diagram, and generating typesetting code based on the file content data and user demand information for the presentation typesetting intention, and then rendering the target presentation file according to the typesetting code, that is, the large language model can be used to improve the ability to understand the input content, and the target presentation file can be automatically generated on the premise of ensuring that the generated target presentation file is accurate, relevant, and meets the user's expectations, thereby improving the generation efficiency of the presentation file and reducing the production time of the presentation file. Furthermore, the typesetting code generated for the file content data based on the presentation typesetting intention can be rendered to obtain the target presentation file through the aforementioned typesetting code, so that in the case of automatically generating the presentation file, a personalized and uniform typesetting and formatting typesetting layout can be achieved, thereby avoiding the problem of inconsistent formats in the generated target presentation file.

[0115] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0116] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.

[0117] Memory 503, used for storing computer programs;

[0118] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:

[0119] Acquire user demand information and a large language model; the user demand information is used to indicate the user's intention for the presentation file to be generated, and the user's intention includes a text presentation diagram and a presentation layout intention;

[0120] Obtaining file content data according to the large language model and user demand information for the text presentation diagram;

[0121] Generate typesetting code according to the file content data and user demand information for the demonstration typesetting intention;

[0122] The target presentation file is obtained by rendering according to the typesetting code.

[0123] In an embodiment of the present invention, the electronic device provided by the embodiment of the present invention analyzes user needs by introducing a large language model to identify the user intention for the presentation file to be generated, thereby obtaining file content data based on user demand information for the text presentation diagram, and generating typesetting code based on the file content data and user demand information for the presentation typesetting intention, and then rendering the target presentation file according to the typesetting code, that is, the large language model can be used to improve the ability to understand the input content, and the target presentation file can be automatically generated on the premise of ensuring that the generated target presentation file is accurate, relevant, and meets the user's expectations, thereby improving the generation efficiency of the presentation file and reducing the production time of the presentation file. Furthermore, the typesetting code generated for the file content data based on the presentation typesetting intention can be rendered to obtain the target presentation file through the aforementioned typesetting code, so that in the case of automatically generating the presentation file, a personalized and uniform typesetting and formatting layout can be achieved, thereby avoiding the problem of inconsistent formats in the generated target presentation file.

[0124] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0125] The communication interface is used for communication between the above terminal and other devices.

[0126] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0127] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0128] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the method for generating a presentation file described in any of the above embodiments.

[0129] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute the method for generating a presentation file described in any one of the above embodiments.

[0130] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can 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 can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, referred to as DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium, such as a solid state drive (SSD for short).

[0131] It should be noted that, in this article, relational terms such as first and second, etc. are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0132] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for generating a demonstration file, characterized in that: The method comprises: Acquire user demand information and a large language model; the user demand information is used to indicate the user's intention for the presentation file to be generated, and the user's intention includes a text presentation diagram and a presentation layout intention; Obtaining file content data according to the large language model and user demand information for the text presentation diagram; Generate typesetting code according to the file content data and user demand information for the demonstration typesetting intention; The target presentation file is obtained by rendering according to the typesetting code.

2. The method according to claim 1, characterized in that The user demand information for the text presentation scheme includes a presentation theme, a presentation target, and multiple data sources; the file content data is obtained according to the large language model and the user demand information for the text presentation scheme, including: Performing requirement analysis on the demonstration theme and the demonstration target through the large language model to obtain a textual demonstration diagram; Text data that matches the text presentation diagram is retrieved from the multiple data sources to serve as the file content data.

3. The method according to claim 2, characterized in that The step of performing demand analysis on the demonstration theme and the demonstration target by using the large language model to obtain a textual demonstration diagram includes: Obtain prompt information; the prompt information includes a text-to-illustration diagram parsing instruction and a text-to-illustration diagram parsing example; The large language model responds to the text presentation diagram parsing instruction, and the presentation subject and the presentation target are parsed according to the text presentation diagram parsing example to obtain a text presentation diagram.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: If there is a need for visualization of the text data, visualization processing is performed on the text data to obtain visualization data as the file content data.

5. The method according to claim 4, characterized in that The visualization processing is used to convert the data into a chart; if the text data has a visualization requirement, the text data is visualized to obtain visualization data, including: If the text data has an image generation requirement in the visualization requirement, converting the text data into an image to serve as the visualization data; And / or, if the text data has a table generation requirement in the visualization requirement, the text data is converted into a table to serve as the visualization data.

6. The method according to claim 1 or 2, characterized in that: After obtaining the file content data, the method further includes: Determining the content type of the presentation file to be generated based on user demand information for the text presentation diagram; Obtain a presentation file template that matches the content type; Fill the presentation file template with the file content data.

7. The method according to claim 6, characterized in that The user requirement information for the demonstration typesetting intention includes typesetting layout information, and the typesetting layout information includes at least one or more of the following: page structure information, style requirement information, and interaction requirement information; the generating of typesetting code according to the file content data and the user requirement information for the demonstration typesetting intention includes: Obtaining the template code of the presentation file template where the file content data is located; Through the large language model, the hierarchical relationship code in the template code is adjusted according to the page structure information; and / or, the appearance layout code in the template code is adjusted according to the style requirement information; and / or, the interaction code in the template code is adjusted according to the interaction requirement information to obtain the typesetting code.

8. The method according to claim 1, characterized in that The step of rendering a target presentation file according to the typesetting code includes: In response to the demonstration file generation instruction, the large language model calls a preset rendering engine to parse the typesetting code to generate a target demonstration file.

9. The method according to claim 1 or 8, characterized in that: The process of generating the target demonstration file also includes: Display the current demonstration file of the target demonstration file during the generation process; In response to the user's editing operation, the file content data in the current demonstration file is adjusted accordingly.

10. A demonstration file generating device, characterized in that: The device comprises: A user demand information acquisition module, used to acquire user demand information and a large language model; the user demand information is used to indicate the user's intention for the presentation file to be generated, and the user's intention includes a text presentation diagram and a presentation layout intention; A file content recognition module, used for obtaining file content data according to the large language model and user demand information for the text presentation diagram; A typesetting code generation module, used for generating typesetting codes according to the file content data and user demand information for the demonstration typesetting intention; The demonstration file generation module is used to render the target demonstration file according to the typesetting code.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the demonstration file generation method described in any one of claims 1-9 when executing the program stored in the memory.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for generating a demonstration file as described in any one of claims 1 to 9 is implemented.

13. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the method for generating a presentation file as claimed in any one of claims 1 to 9.

Citation Information

Cited By

  • Interaction method and device based on large model, intelligent agent and storage medium

    CN121501956A