Resource processing design method, device and computer equipment based on large language model
By using a large language model to identify mapping resource types in the diagram design interface and calling the corresponding generation application, the problem of cumbersome resource search in the diagram design process is solved, efficient mapping resource acquisition and interaction is achieved, and design efficiency is improved.
Patent Information
- Application Number
- CN202410579100.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-05-11
AI Technical Summary
In the prior art, the drawing design process requires tedious search for design resources without drawing creation tools, resulting in low design drawing production efficiency.
Adopting a resource processing design method based on a large language model, by receiving the mapping resource inquiry information sent by the terminal, determining the resource type and demand parameters, calling the corresponding resource generation application, generating and sending mapping resources to the terminal, realizing intelligent dialogue interface and canvas operation Interaction between interfaces directly obtains and allocates resources.
It improves the production efficiency of graphic design, and uses a large language model to identify resource types and call matching generation application tools to ensure the accuracy and speed of obtaining graphics resources that meet the needs.
Smart Images

Figure CN118154726B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a resource processing design method, apparatus, computer equipment, computer-readable storage medium and computer program product based on a large language model. Background Art
[0002] With the invention of computer technology, graphic design technology has also developed accordingly. Graphic design technology is to design graphics based on graphic creation tools, such as infographics or other types of art graphics.
[0003] However, in the prior art, graphic design is mainly performed based on traditional graphic creation tools. During the graphic design process, it is necessary to perform a lot of tedious design resource searches without using the graphic creation tools, resulting in low efficiency in producing design drawings. Summary of the invention
[0004] Based on this, it is necessary to provide a resource processing design method, device, computer equipment, computer readable storage medium and computer program product based on a large language model to improve mapping efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a resource processing design method based on a large language model, which is applied to a server and includes:
[0006] Receiving mapping resource inquiry information sent by a terminal, the mapping resource inquiry information is input based on an intelligent dialogue interface in a map design interface, the map design interface includes an intelligent dialogue interface and a canvas operation interface;
[0007] Based on the large language model, determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information, call the target resource generation application that matches the cartographic resource type, generate the cartographic resource based on the resource requirement parameters through the target resource generation application, and send the cartographic resource to the terminal;
[0008] So that the terminal displays the drawing resources in the intelligent dialogue interface, and the drawing resources are used to be configured to the corresponding target position of the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
[0009] The present application provides a resource processing design method based on a large language model, which is applied to a terminal, including:
[0010] In response to the mapping resource query information inputted in the intelligent dialogue interface in the map design interface, the mapping resource query information is sent to the server corresponding to the map design interface; so that the server determines the mapping resource type and resource requirement parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, and generates the mapping resource based on the resource requirement parameters through the target resource generation application; the map design interface includes the intelligent dialogue interface and the canvas operation interface;
[0011] The drawing resources returned by the server are displayed in the intelligent dialogue interface. In response to the selection operation in the drawing design interface, the drawing resources corresponding to the selection operation are adjusted to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing.
[0012] In a second aspect, the present application also provides a resource processing design device based on a large language model, which is applied to a server and includes:
[0013] A receiving module, used for receiving mapping resource inquiry information sent by a terminal, wherein the mapping resource inquiry information is input based on an intelligent dialogue interface in a map design interface, wherein the map design interface includes an intelligent dialogue interface and a canvas operation interface;
[0014] A calling module is used to determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information based on the large language model, call the target resource generation application that matches the cartographic resource type, generate the cartographic resource based on the resource requirement parameters through the target resource generation application, and send the cartographic resource to the terminal;
[0015] The design module is used to enable the terminal to display drawing resources in the intelligent dialogue interface. The drawing resources are used to be configured to the corresponding target position of the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
[0016] The present application also provides a resource design processing device based on a large language model, which is applied to a terminal and includes:
[0017] An input module is used to respond to the mapping resource query information input in the intelligent dialogue interface in the map design interface, and send the mapping resource query information to the server corresponding to the map design interface; so that the server determines the mapping resource type and resource demand parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, and generates the mapping resource based on the resource demand parameters through the target resource generation application; the map design interface includes an intelligent dialogue interface and a canvas operation interface;
[0018] The adjustment module is used to display the drawing resources returned by the server in the intelligent dialogue interface. In response to the selection operation in the drawing design interface, the drawing resources corresponding to the selection operation are adjusted to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing.
[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in the above method when executed by a processor.
[0021] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.
[0022] The above-mentioned resource processing design method, device, computer equipment, computer-readable storage medium and computer program product based on the large language model respond to the mapping resource query information input in the intelligent dialogue interface in the map design interface through the terminal, and send the mapping resource query information to the server corresponding to the map design interface; the server receives the mapping resource query information sent by the terminal, determines the mapping resource type and resource demand parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, generates mapping resources based on the resource demand parameters through the target resource generation application, and sends the mapping resources to the terminal; the terminal displays the mapping resources returned by the server in the intelligent dialogue interface, and responds to the selection operation in the map design interface. The mapping resources corresponding to the operation are adjusted to the target position corresponding to the canvas operation interface which is also in the drawing design interface to obtain the corresponding design drawing, which is conducive to directly obtaining the mapping resources in the intelligent dialogue interface in the same interface, and according to the interactive operation between the intelligent dialogue interface and the canvas operation interface in the same interface, the mapping resources in the intelligent dialogue interface are adjusted to the canvas operation interface. In addition, when obtaining mapping resources, the mapping resource type is identified through the large language model, and the corresponding resource generation application tool is determined according to the mapping resource type, which can improve the accuracy of obtaining mapping resources that meet the mapping needs. The interaction between the large language model and various resource generation application tools, as well as the interaction between the intelligent dialogue interface and the canvas operation interface, greatly improves the efficiency of drawing design. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 An application environment diagram of a resource processing design method based on a large language model in one embodiment;
[0025] Figure 2 A schematic diagram of a flow chart of a resource processing design method based on a large language model in one embodiment;
[0026] Figure 3 A flowchart of a resource processing design method based on a large language model in another embodiment;
[0027] Figure 4 A schematic diagram of a design interface in an embodiment;
[0028] Figure 5 is a schematic diagram of a mapping resource in one embodiment;
[0029] Figure 6 A schematic diagram of a process for making an information graph in one embodiment;
[0030] Figure 7 A schematic diagram of a flow chart of layout style generation in one embodiment;
[0031] Figure 8 is a schematic diagram of a questionnaire survey in one embodiment;
[0032] Fig. 9 A schematic diagram showing a comparison of drawing times of different systems in one embodiment;
[0033] Fig.10 A schematic diagram for visualizing the interaction sequence of different systems in one embodiment;
[0034] Fig.11 A schematic diagram of quality assessment of a design drawing of the present application in one embodiment;
[0035] Fig.12 A schematic diagram of comparing image quality evaluations of different systems in one embodiment;
[0036] Fig.13 is a schematic diagram of a cutout function in one embodiment;
[0037] Fig.14 A structural block diagram of a resource processing design device based on a large language model in one embodiment;
[0038] Fig.15 A structural block diagram of a resource processing design device based on a large language model in another embodiment;
[0039] Fig.16 is an internal structure diagram of a computer device in one embodiment;
[0040] Fig.17 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The resource processing design method based on the large language model provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the resource refers to a mapping resource, including but not limited to design elements such as text, pictures and icons. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The server 104 is used to receive the mapping resource query information sent by the terminal, and the mapping resource query information is input based on the intelligent dialogue interface in the map design interface, and the map design interface includes an intelligent dialogue interface and a canvas operation interface; based on the large language model, the mapping resource type and resource requirement parameters corresponding to the mapping resource query information are determined, and the target resource generation application matching the mapping resource type is called, and the mapping resource is generated based on the resource requirement parameters by the target resource generation application, and the mapping resource is sent to the terminal. The terminal 102 is used to display the mapping resource in the intelligent dialogue interface, and the mapping resource is used to be configured to the target position corresponding to the canvas operation interface according to the selection operation to obtain the corresponding design drawing. The terminal 102 is used to respond to the mapping resource query information input in the intelligent dialogue interface in the map design interface, and send the mapping resource query information to the server corresponding to the map design interface. The terminal 102 is used to display the mapping resources returned by the server in the intelligent dialogue interface, and in response to the selection operation in the drawing design interface, the mapping resources corresponding to the selection operation are adjusted to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0043] In an exemplary embodiment, Figure 2 As shown in FIG, a resource processing design method based on a large language model is provided, and the method is applied to Figure 1 The server in the example is used to illustrate, including the following steps S200 to S204. Among them:
[0044] Step S200, receiving mapping resource query information sent by the terminal, the mapping resource query information is input based on the intelligent dialogue interface in the map design interface, and the map design interface includes the intelligent dialogue interface and the canvas operation interface.
[0045] Among them, the mapping resource inquiry information refers to the conversation content about obtaining mapping resources input in the intelligent dialogue interface; the mapping resource inquiry information includes inquiry information of a certain type of resource, such as the conversation content of the first inquiry about the theme image, and also includes inquiry information of repeated inquiries about the same type of resources. For example, when the mapping resource about the theme image is obtained, it is felt that the theme image currently returned in the intelligent dialogue interface does not meet the needs and needs to be re-acquired. However, the theme image is not specified in the conversation content for re-acquiring the resource, and only "re-acquire" is entered. In this case, the mapping resource inquiry information will include the conversation content about obtaining the theme image before "re-acquiring", so that the large language model can recognize the user's intention according to the context of the conversation content.
[0046] The graph design interface is an interface that interacts with the intelligent dialogue interface and the canvas operation interface. Both the intelligent dialogue interface and the canvas operation interface are in the graph design interface, that is, the intelligent dialogue interface and the canvas operation interface are part of the graph design interface. Figure 4 As shown, Figure 4 That is, the graphic design interface. Figure 4 On the left is the intelligent dialogue interface, and on the right is the canvas operation interface; the intelligent dialogue interface and the canvas operation interface can be independent of each other, or they can interact with each other, that is, the intelligent dialogue interface can only perform intelligent dialogue, and the canvas operation interface can only perform image design adjustment. The design adjustment is similar to the canvas operation tool in the prior art, including but not limited to changing the position, size, color, font style, font size and other visual attributes of the design elements in the canvas operation interface. The design elements include but are not limited to text, pictures, icons, etc. The design elements are also mapping resources. You can also drag the mapping resources from the intelligent dialogue interface to the canvas operation interface for design adjustment, thereby realizing the interaction between the intelligent dialogue interface and the canvas operation interface.
[0047] An intelligent dialogue interface refers to an interface for conducting an intelligent dialogue with a virtual robot; user intent can be input in the intelligent dialogue interface so that the terminal responds to the user intent input in the intelligent dialogue interface and sends the user intent to the server. The server recognizes the user intent based on a large language model, generates feedback information, and sends the feedback information to the terminal so that the terminal displays the feedback information in the intelligent dialogue interface; user intent includes but is not limited to mapping resource query information.
[0048] The canvas operation interface refers to the operation interface for designing and adjusting the mapping resources; the position, size, color, font style, font size and other visual attributes of each mapping resource can be modified in the canvas operation interface, and the canvas operation interface includes intelligent tools for designing and adjusting different visual attributes, such as but not limited to image cropping tools; the canvas size of the canvas operation interface can be adjusted, and the adjusted size ratio includes but is not limited to 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, etc. Mapping resources refer to the resources required for making design drawings, including but not limited to text, pictures, icons, and layout styles; text includes but is not limited to the title text and paragraph content text of different levels of the design, pictures include but are not limited to the background picture and theme picture of the design, and layout style refers to the layout type of the design drawing, such as a wavy layout.
[0049] Exemplarily, the intelligent dialogue interface and the canvas operation interface can jointly construct a diagram design interface, in which both intelligent dialogue and diagram design can be performed. The terminal can respond to mapping resource query information input in the intelligent dialogue interface and send the mapping resource query information to the server. The server receives the mapping resource query information sent by the terminal to provide data for subsequent recognition of user intent based on a large language model.
[0050] Exemplarily, other dialogue contents can also be input in the intelligent dialogue interface, which is not limited to sending mapping resource inquiry information. Whether the specific dialogue content is intended to inquire about mapping resources can be identified by the server based on the large language model. When other dialogue contents are input in the intelligent dialogue interface, it can be equivalent to having an intelligent dialogue with the virtual robot. For the dialogue contents input in the intelligent dialogue interface, the server can identify them based on the large language model and generate corresponding feedback information, so that the terminal returns feedback information in the intelligent dialogue interface, realizing the intelligent dialogue between the virtual robot and the user.
[0051] Step S202, based on the large language model, determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information, call the target resource generation application that matches the cartographic resource type, generate cartographic resources based on the resource requirement parameters through the target resource generation application, and send the cartographic resources to the terminal.
[0052] Among them, the large language model is an artificial intelligence model designed to understand and generate human language, also known as a large language model. It is trained on a large amount of text data and can perform a wide range of tasks, including text summarization, translation, sentiment analysis, etc.; large language models include but are not limited to ChatGPT (Chat Generative Pre-trainedTransformer). The mapping resource type refers to the resource type for making design drawings, including but not limited to main title text, theme pictures, background pictures, paragraph title text, paragraph content text, icons, etc.
[0053] Resource requirement parameters refer to the requirement parameters of resources required for making design drawings, such as "a cute cat" converted into a string data type; resource requirement parameters may include resource production requirement parameters and the number of resources returned at a time. Resource production requirement parameters refer to the attribute requirements of resources, such as "a cute cat", and the number of resources returned at a time refers to the number of resources returned to the terminal each time, such as "4". Target resource generation application refers to the application tool for generating mapping resources; different mapping resource types may correspond to one or two or more resource generation applications, and there is no limit on the number of resource generation applications corresponding to various mapping resource types.
[0054] Exemplarily, the server can identify the intent of the mapping resource query information based on the large language model, determine the mapping resource type and resource requirement parameters according to the identified intent, and call the target resource generation application that matches the mapping resource type according to the configuration relationship between the mapping resource type and the resource generation application, wherein for the same mapping resource type, multiple different resource generation applications can be configured, and the configured multiple resource generation applications can all generate mapping resources corresponding to the mapping resource type, and there are differences in the functional characteristics of different resource generation applications. The large language model can determine the resource generation application that best matches the mapping resource type corresponding to the mapping resource query information according to the intent of the mapping resource query information, and use the best matching resource generation application as the target resource generation application, and then call the target resource generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the target resource generation application, generate mapping resources corresponding to the mapping resource type based on the resource requirement command, and send the mapping resources to the terminal for display, thereby realizing the interaction between the large language model and various application tools for generating mapping resources.
[0055] In one embodiment, if the large language model identifies multiple cartographic resource types and resource requirement parameters corresponding to each cartographic resource type from the intent of the cartographic resource query information, the target resource generation application matching each cartographic resource type can be called respectively, and the target resource generation application corresponding to each cartographic resource type can be used to generate cartographic resources corresponding to each cartographic resource type based on the resource requirement parameters corresponding to each cartographic resource type, and the cartographic resources of each cartographic resource type are sent to the terminal, so that the terminal can display the cartographic resources of each cartographic resource type in the intelligent dialogue interface.
[0056] Step S204 is to enable the terminal to display the drawing resources in the intelligent dialogue interface. The drawing resources are used to be configured to the target position corresponding to the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
[0057] Among them, the selection operation refers to the operation performed in the diagram design interface, including click operation and drag-and-drop operation. The target position refers to the corresponding position when the selection operation is terminated. The design diagram refers to the diagram obtained by arranging the mapping resources corresponding to the design under the current selection operation; the content of the design diagram includes but is not limited to pictures, text, icons and other contents; the type of design diagram includes but is not limited to information graphics, and the design diagram can be a variety of other types of art designs. Information graphics are visual expressions that convey information in a visually attractive way by combining text and various graphic elements. Their purpose is to convey information in a clear and concise way.
[0058] Exemplarily, the server returns the mapping resources to the terminal so that the terminal displays the mapping resources in the intelligent dialogue interface, and the intelligent dialogue interface and the canvas operation interface are in the same interface. When designing a diagram in the canvas operation interface, the mapping resources required for the diagram design can be obtained directly in the intelligent dialogue interface. There is no need to search for mapping resources from other places, and the design elements that meet the requirements can be quickly obtained, which effectively improves the mapping efficiency.
[0059] The resource processing design method based on the large language model responds to the mapping resource query information input in the intelligent dialogue interface in the map design interface through the terminal, and sends the mapping resource query information to the server corresponding to the map design interface; the server receives the mapping resource query information sent by the terminal, determines the mapping resource type and resource demand parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, generates mapping resources based on the resource demand parameters through the target resource generation application, and sends the mapping resources to the terminal; the terminal displays the mapping resources returned by the server in the intelligent dialogue interface, responds to the selection operation in the map design interface, and adjusts the mapping resources corresponding to the selection operation to the server also in the map design interface. The corresponding design drawing is obtained at the target position corresponding to the canvas operation interface in the drawing design interface, which is conducive to directly obtaining mapping resources through the intelligent dialogue interface in the same interface, and according to the interactive operations between the intelligent dialogue interface and the canvas operation interface in the same interface, the mapping resources in the intelligent dialogue interface are adjusted to the canvas operation interface. In addition, when obtaining mapping resources, the mapping resource type is identified through the large language model, and the corresponding resource generation application tool is determined according to the mapping resource type, which can improve the accuracy of obtaining mapping resources that meet the mapping needs. The interaction between the large language model and various resource generation application tools, as well as the interaction between the intelligent dialogue interface and the canvas operation interface, greatly improves the production efficiency of map design.
[0060] In some embodiments, in step S202, generating a mapping resource based on a resource requirement parameter by using a target resource generation application includes:
[0061] Step S300: If the target resource generation application is a picture generation application, the picture generation application converts the resource requirement parameters into a resource requirement command of a matching format, and generates a picture based on the resource requirement command.
[0062] Among them, the image generation application refers to an application tool that generates images that meet specified requirements, including but not limited to Stable Diffusion XL 1.0; the image generation application includes but is not limited to the theme image generation application and the background image generation application. The theme image generation application refers to an application tool that generates images that meet specified theme requirements, and the background image generation application refers to an application tool that generates images that meet background requirements. The theme image generation application and the background image generation application can be the same or different. The theme image generation application and the background image generation application can be one, two or more, and there is no limit on the number of application tools; different image generation applications can be configured for different image types in the design drawing. Resource requirement commands refer to commands that can be directly executed by the target resource generation application; for different resource generation applications, when executing the generation of resources corresponding to resource requirement parameters, the resource requirement parameters can be first converted into resource requirement commands that match their own format.
[0063] For example, if the mapping resource type is a theme image, background image, or other image type, the target resource generation application is an image generation application. The image generation application can convert the resource requirement parameters into a resource requirement command of a matching format, and then generate an image that meets the resource requirement command requirements based on the resource requirement command. Different image generation applications can also be configured for images of different semantic types, for example:
[0064] If the mapping resource type is a theme image, the theme image generation application that matches the theme image is used as the target resource generation application, the theme image generation application is called, and the resource requirement parameters are converted into resource requirement commands in a format matching the theme image generation application through the theme image generation application, and the theme image is generated based on the resource requirement commands; if the mapping resource type is a background image, the background image generation application that matches the background image is used as the target resource generation application, the background image generation application is called, and the resource requirement parameters are converted into resource requirement commands in a format matching the background image generation application through the background image generation application, and the background image is generated based on the resource requirement commands.
[0065] A specific example is, if it is "generate a melting iceberg", the large language model may recognize that it is suitable for a background image, and determine that the mapping resource type is a background image, then call the background image generation application, and Stable Diffusion XL1.0 can be used as the background image generation application, based on the background image generation application, the resource requirement parameters of "generate a melting iceberg" are converted into a resource requirement command in a matching format, that is, "{generate a background image of a melting iceberg}", and the background image generation application generates a background image that meets the semantics of "melting iceberg" based on the resource requirement command of "{generate a background image of a melting iceberg}".
[0066] Step S302: If the target resource generation application is a text generation application, the resource requirement parameters are converted into a resource requirement command in a matching format through the text generation application, and text is generated based on the resource requirement command, where the text includes an icon keyword; an icon matching the icon keyword is obtained from a database, or an image generation application is called, and an icon matching the icon keyword is generated based on the icon keyword through the image generation application.
[0067] Among them, the text generation application refers to an application tool that generates text that meets specified requirements, including but not limited to ChatGPT. The text includes but is not limited to the topic title text, paragraph title text, paragraph content text and icon keywords; the text can be integrated in the form of an array, or in other custom forms. For the form of array integration, each entry in the array can include sub-keys such as "topic title", "icon keyword", "paragraph title", "paragraph content", etc., and the text related to the topic (such as "topic title") and the text related to the paragraph (such as "icon keyword", "paragraph title", "paragraph content") can also be separated, and the text can be packaged into a text resource package, and the text resource package can be converted into JSON format or other custom formats. Icon keywords refer to text information that represents icon attribute information; icon keywords can be words or phrases that match the semantics of the topic title or paragraph title, and can be used to retrieve icons that match the semantics of the topic title or paragraph title. Icons include but are not limited to icons related to paragraph titles.
[0068] Exemplarily, if the mapping resource type is a text type such as title text, paragraph content text, etc., then the target resource generation application is a text generation application, and the process of generating text can be implemented through an application tool composed of different components connected in sequence, and the application tool composed of different components connected in sequence can include a text generation component and an icon acquisition component; wherein the text generation component can call the text generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the text generation application, and generate text that meets the requirements of the resource requirement command based on the resource requirement command. The generated text can be integrated in the form of an array to generate a text resource package, which is a structured text resource package. The text resource package can be formatted as a JSON object, so that when the text is subsequently displayed on the intelligent dialogue interface and adjusted to the canvas operation interface, data parsing can be simplified and seamlessly integrated into the canvas operation interface.
[0069] In addition, the generated text includes icon keywords, and an icon acquisition component can be used to acquire icons that semantically match the icon keywords from a database based on the icon keywords. The database includes but is not limited to the Iconify database. In this case, the acquired icons can be in the format of SVG icons, and the process of searching for icons that semantically match the icon keywords from the database is scalable and can be synchronized with database updates or incorporated into additional online icon databases; or, an image generation application can be called through the icon acquisition component, and the icon keyword can be converted into an icon generation command in a matching format based on the image generation application, and an icon that semantically matches the icon keyword can be generated based on the icon generation command.
[0070] A specific example is that if it is "generate text related to the iceberg", the large language model can identify the generated text related to the iceberg content, and can generate a JSON format text resource package related to the iceberg based on the ChatGPT application itself. The text resource package includes but is not limited to the theme text, icon keywords, paragraph title text and paragraph content text related to the iceberg, and calls the Iconify database to search for icons that match the semantics of the icon keywords to obtain icons in SVG format.
[0071] Step S304: if the target resource generation application is a layout style generation application, the resource requirement parameters are converted into resource requirement commands of a matching format by the layout style generation application, and a layout style is generated based on the resource requirement commands.
[0072] The layout style generation application refers to an application tool that generates a layout style that meets specified requirements, including but not limited to GPT-4; different layout styles can correspond to different DSL (domain-specific language) document packages. The generated layout style is a DSL script written according to the DSL document package.
[0073] Exemplarily, if the mapping resource type is a layout style, the target resource generation application is a layout style generation application. The layout style generation application can generate a DSL document package with a hierarchical layout, and write a corresponding DSL script based on the DSL document package. The DSL document package includes content that guides the writing of the DSL script. The hierarchical layout refers to the visual layout of mapping resources such as subject titles, paragraph titles, paragraph contents, icons, subject images, and background images. The DSL adopts a tuple-based hierarchical structure, including but not limited to interface coordinate nodes that represent the hierarchical layout framework and container nodes that encapsulate mapping resources. For different resource requirement commands, the generated interface coordinate nodes and container nodes are different. The layout style generation application can generate multiple different DSL document packages based on the same resource requirement command, and the generated multiple DSL document packages are all layout styles that are consistent with the semantics of the resource requirement command. In more detail, the DSL document package includes layout constraint rules corresponding to each interface coordinate node and each container node, such as "minimizing overlap between different drawing resources (also design elements)", and "only one icon, one paragraph title and one paragraph content element are allowed in a container group (corresponding to container node)", etc. The server can write a corresponding DSL script based on the DSL document package, and the terminal can parse the DSL script into a tree structure, and then render the tree structure into a visual layout displayed in the interface. If there is no drawing resource in the canvas operation interface at this time, the layout areas in the visual layout (that is, the areas set for the corresponding container nodes) are also empty.
[0074] A specific example is, if it is "generate a wavy layout", the large language model can recognize the call to the layout style generation application, and GPT-4 can be used as the layout style generation application. The layout style generation application converts the resource requirement parameters of "generate a wavy layout" into a resource requirement command in a matching format, and based on the resource requirement command, generates a DSL document package that is consistent with the semantics of the resource requirement command, and writes a corresponding DSL script based on the DSL document package. The DSL script is the layout style.
[0075] In the above embodiment, different cartographic resource types are used to call matching target resource generation applications, which is conducive to the targeted generation of cartographic resources that meet user needs, greatly shortening the time for collecting cartographic resources in the map design process, and quickly and accurately generating cartographic resources such as pictures and layout styles that meet user intentions, which is conducive to stimulating user creativity while greatly improving the efficiency of user map design.
[0076] In some embodiments, the resource design processing method based on the large language model is applied to a server and further includes:
[0077] Step S400: receiving a resource modification request sent by a terminal, where the resource modification request is input through an intelligent dialogue interface.
[0078] Step S402, based on the large language model, determine the modified resource identification information and modification standard parameters corresponding to the resource modification request, call the resource modification application, generate updated resources based on the modification standard parameters through the resource modification application, and send the modified resource identification information and updated resources to the terminal.
[0079] Step S404 is to enable the terminal to replace the resource corresponding to the modified resource identification information with the updated resource.
[0080] Among them, resource modification request refers to a request for design adjustment of the drawing resources in the design drawing, which includes request modification dialogue information; request modification dialogue information refers to the user modification intention dialogue information entered in the intelligent dialogue interface. Modification resource identification information refers to information identifying the modified resource; for example, if the style of the theme image is modified, the modification resource identification information is information that can identify the image type (i.e., theme image) of the theme image in the canvas operation interface, the location in the canvas operation interface, and other aspects.
[0081] Modifying standard parameters means modifying required parameters; for example, "change the theme image style to XXX style", then "XXX style of theme image" is the modification standard parameter. In addition, each image returned in the intelligent dialogue interface has a corresponding number, and the number information will also be displayed in the intelligent opposite interface. When you need to modify a specified image (modification is not limited to style modification), you can directly enter "change image 1234 to XXX style", and image 1234 is the image number. Resource modification application refers to the application tool that matches when modifying resources. It may be a text generation application, image generation application, layout generation application or other editing tools. It is determined by the modification intent of the resource modification request, that is, the resource modification application is an application tool that matches the intent of the resource modification request. Updated resources refer to mapping resources that meet the requirements of modifying standard parameters.
[0082] Exemplarily, the conversation content of resource modification can also be input in the intelligent dialogue interface, and the modification of the drawing resources of the design drawing in the canvas operation interface can be realized through the interaction between the large language model and the application tool. The resource modification request sent by the terminal can be received, and the modification resource identification information and modification standard parameters corresponding to the resource modification request can be identified based on the large language model. The resource modification identification information can determine the modification resource type (that is, the type of the modified drawing resource), determine the resource modification application based on the modification resource type, call the resource modification application, and convert the modification standard parameters into a modification standard command in a matching format based on the resource modification application through the resource modification application, generate an updated resource that matches the modification standard command based on the modification standard command, and send the updated resource and the modification resource identification information to the terminal so that the terminal displays the updated resource in the intelligent dialogue interface, and replace the resource corresponding to the modification resource identification information in the canvas operation interface with the updated resource.
[0083] For example, a resource modification request may be "change the theme image style to watercolor style". The large language model can recognize that the style of the theme image is modified, and determine the identification information such as the image number corresponding to the modified resource identification information and the position in the canvas operation interface. It can also use "generate a watercolor-style theme image" as the modification standard parameter, and then call the image modification application that best matches the intention of "generate a watercolor-style theme image". The image operation tool based on the InstructPix2Pix deep learning model can be used as the image modification application. The image modification application can convert the modification standard parameters into a format-matching modification standard command, and generate an updated theme image (i.e., an updated resource) that is semantically consistent with the modification standard command based on the modification standard command. The updated theme image and the modified resource identification information can be sent to the terminal so that the terminal displays the updated theme image in the intelligent dialogue interface, and replaces the original theme image with the updated theme image based on the modified resource identification information.
[0084] In one embodiment, the canvas operation interface is also configured with resource modification tools, such as image cropping tools, text attribute (including but not limited to color, size, etc.) modification tools, etc., and the drawing resources in the design drawing can be adjusted directly by selecting the resource modification tools in the canvas operation interface by clicking the mouse. The adjustment operations include but are not limited to dragging the layout box, adjusting the font size, adjusting the font color, changing the text box mask background color and its transparency, changing the icon color and thickness, etc., that is, the canvas operation interface also has the operation function of the drawing design canvas. In addition to designing and processing the design drawing according to the interaction between the intelligent dialogue interface and the canvas operation interface, the canvas operation interface can also be operated to realize the design processing of the design drawing, thereby enriching the operation function of the drawing design and improving the convenience and flexibility of the drawing design.
[0085] In the above embodiment, through the interaction between the large language model and the resource modification application, update operations such as modification and regeneration of modified resources are realized, which is conducive to quickly and efficiently obtaining the drawing resources required in the current drawing design process, and is conducive to improving the modification operations in the drawing design process. While enriching the operational functions of the drawing design, it also greatly improves the drawing efficiency.
[0086] In an exemplary embodiment, Figure 3 As shown, a resource design processing method based on a large language model is provided, and the method is applied to Figure 1 The terminal in the example is used to illustrate, including the following steps S500 to S502. Among them:
[0087] Step S500, in response to the cartographic resource query information input into the intelligent dialogue interface in the map design interface, the cartographic resource query information is sent to the server corresponding to the map design interface; so that the server determines the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information based on the large language model, calls the target resource generation application that matches the cartographic resource type, and generates the cartographic resource based on the resource requirement parameters through the target resource generation application; the map design interface includes an intelligent dialogue interface and a canvas operation interface.
[0088] Exemplarily, the same map design interface may include an intelligent dialogue interface and a canvas operation interface. The intelligent dialogue interface may be used to conduct intelligent dialogues with a virtual robot, or to directly input information to be searched in the intelligent dialogue interface. The canvas operation interface may be used to conduct map design. During the map design process, mapping resources may be directly obtained through intelligent dialogues in the intelligent dialogue interface, and mapping resources may be adjusted according to the interaction between the intelligent dialogue interface and the canvas operation interface. In order to more quickly obtain mapping resources that meet map design requirements, mapping resource query information may be first input in the intelligent dialogue interface. The terminal responds to the mapping resource query information input in the intelligent dialogue interface. The mapping resource query information is sent to the terminal; so that the terminal recognizes the intent of the mapping resource query information based on the large language model, and determines the mapping resource type and resource requirement parameters based on the recognized intent. Since the same mapping resource type can be configured with multiple resource generation applications that generate resources of the mapping resource type, the large language model can determine the resource generation application that best matches the mapping resource type based on the intent of the mapping resource query information, and use the best matching resource generation application as the target resource generation application, call the target resource generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the target resource generation application, and generate a semantically matching mapping resource based on the resource requirement command.
[0089] In one embodiment, if no graphic design is performed and there is no need to search for drawing resources required for graphic design, it is possible to simply input the conversation content in the intelligent dialogue interface and conduct an intelligent dialogue with the virtual robot. The terminal can respond to the conversation content input in the intelligent dialogue interface and send the conversation content to the server; so that the server recognizes the conversation content based on the large language model, generates feedback information, and sends the feedback information to the terminal; the terminal displays the received feedback information in the intelligent dialogue interface, thereby realizing intelligent dialogue.
[0090] Step S502, displaying the drawing resources returned by the server in the intelligent dialogue interface, and in response to the selection operation in the drawing design, adjusting the drawing resources corresponding to the selection operation to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing.
[0091] Exemplarily, the mapping resource returned by the server can be displayed in the intelligent dialogue interface, and in response to a click operation in the intelligent dialogue interface, the target selection resource corresponding to the click operation is determined, and in response to a drag-and-drop operation in the graphic design interface, the target selection resource is dragged and dropped to the target position corresponding to the canvas operation interface, so as to realize the interaction between the intelligent dialogue interface and the canvas operation interface. For example, if the mapping resource is a theme picture, you can first click and select one of the theme pictures returned in the intelligent dialogue interface with the mouse, and then drag the selected theme picture to the desired location in the canvas operation interface with the mouse. After the selected theme picture is placed in the canvas operation interface, if you still want to adjust the theme picture, you can directly adjust the location, size, etc. of the theme picture in the canvas operation interface.
[0092] For example, in one embodiment, the resource selection information can also be directly input in the intelligent dialogue interface, and the terminal will respond to the resource selection information input in the intelligent dialogue interface and send it to the server; so that the server can identify the intention of the resource selection information based on the large language model, determine the target selection resource identification information based on the identified intention, and return the target selection resource identification information to the terminal; the terminal adjusts the resource corresponding to the target selection resource identification information to the preset position in the canvas operation interface, and obtains the corresponding design drawing, thereby realizing the operation of designing the design drawing in the canvas operation interface without operating the mouse, that is, it can realize the automatic modification operation of the drawing resources in the canvas operation interface. For example, the returned theme picture is currently displayed in the intelligent dialogue interface, and the dialogue content with the intention of "selecting XXX (number) picture" can be input in the terminal, and the terminal sends the dialogue content to the server, so that the server can identify the target selection theme picture identification information corresponding to the dialogue content based on the large language model, and send the identified target selection theme picture identification information to the terminal, so that the terminal adjusts the theme picture corresponding to the target selection theme picture identification information to the preset position.
[0093] The above-mentioned resource design processing method based on the large language model responds to the mapping resource query information input in the intelligent dialogue interface in the map design interface through the terminal, and sends the mapping resource query information to the server corresponding to the map design interface; the server receives the mapping resource query information sent by the terminal, determines the mapping resource type and resource demand parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, generates mapping resources based on the resource demand parameters through the target resource generation application, and sends the mapping resources to the terminal; the terminal displays the mapping resources returned by the server in the intelligent dialogue interface, responds to the selection operation in the map design interface, and adjusts the mapping resources corresponding to the selection operation to the server also in the map design interface. The corresponding design drawing is obtained at the target position corresponding to the canvas operation interface in the drawing design interface, which is conducive to directly obtaining mapping resources through the intelligent dialogue interface in the same interface, and according to the interactive operations between the intelligent dialogue interface and the canvas operation interface in the same interface, the mapping resources in the intelligent dialogue interface are adjusted to the canvas operation interface. In addition, when obtaining mapping resources, the mapping resource type is identified through the large language model, and the corresponding resource generation application tool is determined according to the mapping resource type, which can improve the accuracy of obtaining mapping resources that meet the mapping needs. The interaction between the large language model and various resource generation application tools, as well as the interaction between the intelligent dialogue interface and the canvas operation interface, greatly improves the production efficiency of map design.
[0094] In some embodiments, the selection operation includes a click operation and a drag-and-drop operation; in step S502, in response to the selection operation in the drawing design interface, the drawing resource corresponding to the selection operation is adjusted to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing, including:
[0095] Step S600, in response to a click operation in the intelligent dialogue interface, a target selection resource is determined from the drawing resources, and in response to a drag and drop operation on the target selection resource in the drawing design interface, the target selection resource is dragged and dropped to a corresponding target position in the canvas operation interface to obtain a corresponding design drawing.
[0096] The click operation refers to the click operation performed by the mouse. The drag-and-drop operation refers to the drag operation performed by the mouse. The target selection resource refers to the mapping resource selected by the click operation. The target position refers to the position where the target resource is placed when it is dragged and dropped by the mouse.
[0097] Exemplarily, the intelligent dialogue interface and the canvas operation interface can realize the interaction of mapping resources based on the operation responded by the terminal. When interacting with mapping resources, the terminal can determine the target selection resource based on the click operation of the intelligent dialogue interface, and drag and drop the target selection resource to the corresponding position in the canvas operation interface. After dragging and dropping the target selection resource to the canvas operation interface, it can continue to obtain and re-acquire the same type of mapping resources in the intelligent dialogue interface, or obtain other types of mapping resources, perform a new round of selection operations, and adjust the mapping resources corresponding to the new round of selection operations to the canvas operation interface, and so on, until a design drawing that meets the requirements is obtained. In addition, in the process of making a design drawing, the mapping resources in the design drawing can be flexibly adjusted based on the operation functions configured by the canvas operation interface until the requirements are met, and the design drawing that meets the requirements can also be stored in the end.
[0098] In one embodiment, the picture in the intelligent dialogue interface can be cut out, and the image obtained by cutting out can be dragged to the canvas operation interface. Fig.13 As shown, when the terminal responds to the pause operation on the target image displayed in the intelligent dialogue interface, a cutout function button is displayed above the target image (specifically, as shown in Fig.13 As shown in (a) in the figure), the cutout function button includes but is not limited to a "point" button (which can be called a first form cutout button) for determining a cutout object in the form of a point, a "line" button (which can be called a second form cutout button) for determining a cutout object in the form of a line, a "frame" button (which can be called a third form cutout button) for determining a cutout object in the form of a rectangular frame, a "delete" button (which can be called a delete button) for deleting operations when determining the cutout object (such as operations of the "point" button, the "line" button, and the "frame" button), and an "OK" button (which can be called an OK button) for determining the cutout object; the terminal responds to a click operation of selecting the cutout function button. If the cutout function button is a first form cutout button, it responds to an object designated point corresponding to the click operation on the target image, and determines the target cutout object based on the object designated point, which can be specifically as follows Fig.13 As shown in (b) in the figure, the number of object designation points is not limited; if the cutout function button is a second form cutout button, the corresponding object designation line on the target image is responded to, and the target cutout object is determined based on the object designation line, which can be specifically as follows: Fig.13 As shown in (c) in FIG. 1 ; if the cutout function button is a third form cutout button, then the target frame diagram corresponding to the target image is responded to, and the target cutout object is determined based on the target frame diagram, which can be specifically as follows: Fig.13As shown in (d) in the figure; after responding to the click operation of the OK button, the terminal can respond to the drag and drop operation of the target cutout object, drag and drop the target cutout object from the intelligent dialogue interface to the target position corresponding to the canvas operation interface, and obtain the corresponding design drawing. The OK button must also be set. After the target cutout object is determined, it can directly respond to the drag and drop operation of the target cutout object, drag and drop the target cutout object to the target position corresponding to the canvas operation interface, and obtain the corresponding design drawing. The setting of the OK button can improve the stability of the cutout object.
[0099] In the above embodiment, the interaction between the intelligent dialogue interface and the canvas operation interface is conducive to the efficient production of design drawings based on the rapid acquisition of drawing resources by the intelligent dialogue interface, thereby greatly improving the production efficiency of design drawings.
[0100] In some embodiments, the resource design processing method based on the large language model is applied to a terminal and further includes:
[0101] Step S700, in response to the resource selection information input in the intelligent dialogue interface, the resource selection information is sent to the server, so that the server identifies the target selection resource identification information corresponding to the resource selection information based on the large language model.
[0102] Step S702, receiving the target selection resource identification information sent by the server, and based on the target selection resource identification information, configuring the target selection resource corresponding to the target selection resource identification information at a preset position in the canvas operation interface to obtain a corresponding design drawing.
[0103] Among them, resource selection information refers to the conversation content of selecting a specified mapping resource entered in the intelligent dialogue interface, such as "select XXX (number) picture". The target selection resource identification information refers to the information used to identify the selected mapping resource. The preset position refers to the preset arrangement position; if the design drawing in the canvas operation interface has selected a layout style, and there is an arrangement area in the layout style that matches the type of the target selection resource, then the preset position is the position corresponding to the arrangement area. If the design drawing in the canvas operation interface does not use a layout style, then the preset position is a pre-set fixed default position.
[0104] Exemplarily, in order to further improve the efficiency of mapping and the flexibility of map making, and enrich the map design functions, resource selection information can be directly input in the intelligent dialogue interface, and the terminal can send the resource selection information in response to the input of the intelligent dialogue interface to the server; so that the server can identify the target selection resource identification information corresponding to the resource selection information based on the large language model, and return the target selection resource identification information to the terminal; the terminal can adjust the target selection resource corresponding to the target selection resource identification information to a pre-set fixed default position when the layout style has not been used in the canvas operation interface, and then can also adjust the target selection resource in the canvas operation interface through the mouse; the terminal can also adaptively adjust the target selection resource to a matching layout area if the layout style has been used in the canvas operation interface and the layout area that matches the target selection resource type in the layout style is empty.
[0105] In the above embodiment, by inputting resource selection information in the intelligent dialogue interface, and then realizing the automatic operation of adjusting the target selection resources to the canvas operation interface according to the resource selection information, it is helpful to enrich the functions of making design drawings and improve the flexibility of drawing production.
[0106] In some embodiments, the resource design processing method based on the large language model is applied to a terminal and further includes:
[0107] Step S800: If mapping resources already exist in the canvas operation interface, layout resource query information is input in the intelligent dialogue interface, and the layout resource query information is sent to the server; so that the server determines the layout resource requirement parameters corresponding to the layout resource query information based on the large language model, calls the layout style generation application, and generates a layout style based on the layout resource requirement parameters through the layout style generation application.
[0108] Step S802, displaying the layout style returned by the server in the intelligent dialogue interface, responding to the selection operation in the drawing design interface, and adaptively adjusting the layout of the drawing resources in the canvas operation interface based on the layout style corresponding to the selection operation to obtain a design drawing corresponding to the layout style.
[0109] Among them, layout resource inquiry information refers to the dialogue content entered in the intelligent dialogue interface to obtain the layout style, such as but not limited to "generate a wavy layout" or "generate a layout including a main title, a theme image and three paragraphs". Layout resource requirement parameters refer to the requirement parameters for the content layout style of the design drawing, such as "a wavy layout" converted into a string data type, and adaptive layout adjustment refers to the adaptive adjustment of the drawing resources in the canvas operation interface to the matching arrangement area in the layout style; for example, if the design drawing in the canvas operation interface includes a theme image, and the layout style includes the arrangement area of the theme image, then after responding to the layout style corresponding to the selection operation, the theme image in the canvas operation interface is adaptively adjusted to the arrangement area matching the theme image.
[0110] Exemplarily, in order to enrich the graphics design function, provide users with more reference directions for graphics design, and improve the efficiency of graphics making, the terminal may have existing graphics resources in the canvas operation interface. When the existing graphics resources include but are not limited to at least one of pictures, texts, and icons, the terminal responds to the dialogue content belonging to the layout resource inquiry information input in the intelligent dialogue interface, and sends the dialogue content to the server; so that the server recognizes the intention of the layout resource inquiry information based on the large language model, determines the layout resource requirement parameters based on the recognized intention, and calls the layout style generation application that best matches the recognized intention, converts the layout resource requirement parameters into a layout resource requirement command in a matching format through the layout style generation application, generates a semantically matching layout style based on the layout requirement command, and the generated layout style can be represented by a DSL script written in a predefined DSL document package.
[0111] Furthermore, the server returns the layout style to the terminal. The terminal can parse the layout style belonging to the DSL script into a corresponding tree structure based on the parser, render the tree structure into a corresponding visual layout style, and display the visual layout style to the intelligent dialogue interface. The terminal can respond to the click operation of the intelligent dialogue interface, determine the target layout style corresponding to the click operation, parse the target layout style, obtain the corresponding tree structure, render the tree structure to the canvas operation interface, and adaptively adjust various types of drawing resources in the canvas operation interface to the matching layout area in the rendered layout style to obtain the corresponding design drawing.
[0112] In one embodiment, if the existing drawing resources in the canvas operation interface include local styles, the terminal re-responds to the selection operation of selecting a layout style in the intelligent dialogue interface, and replaces the current layout style in the canvas operation interface with the layout style corresponding to the re-selection operation, and adaptively adjusts the existing drawing resources in the canvas operation interface according to the layout style corresponding to the re-selection operation, thereby effectively shortening the adjustment time of the drawing resources and improving the efficiency of the diagram design.
[0113] For example, Figure 7 As shown, Figure 7 In the intelligent dialogue interface, users can enter layout resource query information such as "Can you design a wavy layout?" The server can identify the layout resource requirement parameters corresponding to the layout resource query information based on the large language model and call the matching layout style generation application (i.e. Figure 7 GPT-4 in the above example) generates layout styles based on layout resource requirement parameters through the layout style generation application (i.e. Figure 7 DSL script in the terminal), and returns the layout style to the terminal, so that the terminal parses the layout style belonging to the DSL script through the parser, obtains the corresponding tree structure, and renders the tree structure into the corresponding visual layout style based on the cartographer (i.e. Figure 7 The layout style for the last step in a flowchart).
[0114] In the above embodiment, when there are already mapping resources in the canvas operation interface, the layout style resources are inquired in the intelligent dialogue interface, and the layout style returned by the server is selected from the intelligent dialogue interface, the selected layout style is applied to the canvas operation interface, and the adaptive layout adjustment of the existing mapping resources in the canvas operation interface in the selected layout style is implemented, thereby providing rich layout styles for the map design and enriching the functions of the map design. The adaptive layout adjustment of the existing mapping resources based on the layout style can effectively shorten the adjustment time of the mapping resources, thereby effectively improving the efficiency of the map design.
[0115] In some embodiments, mapping resource types can be added according to actual requirements, and resource generation applications corresponding to the mapping resource types can be added and configured, so as to achieve more detailed resource collection or generation and improve the accuracy of searching for mapping resources.
[0116] In some embodiments, there is no specific restriction on the large language model, that is, the large language model is not restricted to belong to a specific large language model, and the large language model can be replaced according to actual needs; the functions in the canvas operation interface are not restricted, and the functions in the canvas operation interface can be expanded according to actual needs; the position layout of the intelligent dialogue interface and the canvas operation interface in the graph design interface is not restricted, and the intelligent dialogue interface and the canvas operation interface can be in the same graph design interface.
[0117] In some embodiments, the design of an infographic is described as an example. The system that realizes the interaction between the intelligent dialogue interface and the canvas operation interface with the big language model as the center can be called the GraphiMind system, in which the infographic design interface with the big language model as the center can be as follows: Figure 4 As shown, Figure 4 This is the graph design interface corresponding to the GraphiMind system. Figure 4The upper left corner of the graphic design interface in the figure can be the infographic currently being made. If you want to make a new infographic, you can click "NewCanva" to add a new infographic. The dialogue interface on the left is the intelligent dialogue interface; the right part is the canvas operation interface. It should be noted that the system application of the interaction between the intelligent dialogue interface and the canvas operation interface based on the large language model in this application is not limited to the type of dialogue language. Figure 4 The Chinese dialogue in the above example is only one specific embodiment. You can also use English or other languages for dialogue. Figure 4 Describe it in Figure 4 The mapping resource query information is input into the intelligent dialogue interface shown in the figure. The terminal can respond to the mapping resource query information input into the intelligent dialogue interface and send the mapping resource query information to the server; the server can identify the intent of the mapping resource query information based on the large language model, determine the mapping resource type and resource requirement parameters based on the identified intent, and call the target resource generation application that best matches the mapping resource type, and generate a mapping resource that semantically matches the resource requirement parameters based on the resource requirement parameters through the target resource generation application, and return the mapping resource to the terminal; the terminal displays the mapping resource in the intelligent dialogue interface, and in response to the selection operation of the drawing design interface, adjusts the mapping resource corresponding to the selection operation into the canvas operation interface, and in response to the adjustment operation in the canvas operation interface, adjusts the mapping resource corresponding to the adjustment operation to obtain the design drawing corresponding to the current adjustment; specifically, Figure 4 As shown, Figure 4 In the intelligent dialogue interface, if the dialogue content of "recommend some information about polar bears" is entered, the server can identify the intention of the dialogue content and return the generated information about polar bears to the terminal, so that the terminal can display it in the intelligent dialogue interface, and the displayed content includes the main title text, paragraph title text, paragraph content text and icons suitable for the polar bear theme suitable for the information about polar bears. The terminal can respond to the click operation in the intelligent dialogue interface and the drag-and-drop operation in the drawing design interface, drag and drop the design element (i.e., drawing resource) corresponding to the click operation to the canvas operation interface, and respond to the adjustment operation in the canvas operation interface to obtain the corresponding design drawing. In addition, if other drawing resources are needed, the dialogue content with relevant intentions can be continued to be entered in the intelligent dialogue interface, such as Figure 4 Continue to enter the dialogue content of 'Great! Create some theme pictures' in the intelligent dialogue interface. The server can recognize the dialogue content sent by the terminal based on the large language model, recognize the intention of obtaining theme pictures that match the polar bear theme, call the application related to the theme picture to generate the corresponding theme picture, and return the theme picture to the terminal so that the terminal can display it in the intelligent dialogue interface. Figure 4Similarly, you can click the mouse to select the theme image in the intelligent dialogue interface, and drag the selected theme image to the canvas operation interface for graphic design. Figure 4 As shown, the lower part of the canvas operation interface provides the tools of the traditional canvas operation interface. You can select the corresponding tool to adjust the current design drawing in the canvas operation interface, and so on, until you get a satisfactory infographic.
[0118] In more detail, the process of realizing the interaction between the intelligent dialogue interface and the canvas operation interface with the large language model as the center can be combined with Figure 6 The terminal can respond to the dialogue content input in the intelligent dialogue interface, and the dialogue content can include mapping resource query information. The terminal can send the dialogue content including the mapping resource query information to the server, and the server recognizes the intention of the dialogue content through the large language model, and determines the mapping resource type (corresponding to the mapping resource type) based on the recognized intention. Figure 6 design tasks) and resource requirement parameters, where the types of mapping resources include multiple types, which can be but are not limited to Figure 6 Information collection (which can correspond to text collection), visual element design (which can correspond to icon search), background image design (which can correspond to background image generation), theme image design (which can correspond to theme image generation), layout design (which can correspond to layout style generation), and different mapping resource types can be configured with a variety of application tools that can search or generate resources of this type. The same mapping resource type can also be configured with a variety of application tools that can generate resources of this type. The types of application tools also include but are not limited to Figure 6 GPT-4, WEB, Stable Diffusion, MidJourney shown; the server can call the target resource generation application that best matches the mapping resource type determined under the recognition intent, and generate mapping resources (corresponding to Figure 6 Design resources in ), some types of drawing resources can be Figure 5 As shown, Figure 5 The text and icons, pictures (including theme pictures and background pictures), layout styles and other types of cartographic resources returned in the form of dialogue when obtaining cartographic resources in the intelligent dialogue interface are shown in the figure; further, the server can send the cartographic resources to the terminal, and the terminal can display the cartographic resources in the intelligent dialogue interface, and in response to the selection operation of the drawing design interface, the cartographic resources corresponding to the selection operation are adjusted to the canvas operation interface, and the corresponding design drawing (corresponding to the adjustment operation of the canvas operation interface on the cartographic resources) can be obtained. Figure 6). By using the big language model as the center to realize the interaction between the intelligent dialogue interface and the canvas operation interface, the intelligent dialogue interface provides a fast window for the canvas operation interface to obtain mapping resources. The interaction between the big language model and various application tools provides core support for the acquisition of mapping resources, which is conducive to quickly and accurately obtaining the mapping resources required by users. The diversity of mapping resource styles is conducive to stimulating the creativity of non-art and art professional users, thereby improving the efficiency of making design drawings that satisfy users.
[0119] In some embodiments, in order to evaluate the effectiveness of the present invention, a user study may also be conducted, which may be specifically conducted as follows:
[0120] The experiment consisted of two parts. In the first part, participants were asked to create two infographics using the present invention (the system that uses a large language model as the center to implement the interaction between an intelligent conversation interface and a canvas operation interface can be called GraphiMind) or PowerPoint. In the second part, participants were asked to use the present invention freely, after which we surveyed the participants.
[0121] 1. Research design. Each participant uses only one system, that is, either the system of the present invention or the baseline system. In order to be able to directly compare the differences between using the present invention and using the baseline system on exactly the same design task (corresponding to the type of drawing resources), a between-group design can be used. Considering the widespread popularity of PowerPoint in information and graphic editing and its intuitive and easy-to-use interface, PowerPoint can be selected as the baseline system. It can be considered not to choose professional graphic tools such as Adobe Illustrator, because these products have a high learning curve and may make participants who are novice designers feel overwhelmed. In order to align with the design functions outlined in the present invention, the baseline system group is allowed to use Internet search tools, including Google Images and any other online design resources. The baseline system of "PowerPoint + Internet" can be referred to as PowerPoint in the future.
[0122] 2. Participants. Sixteen participants were recruited through online advertisements posted at local universities, specifically seeking individuals without professional design expertise. Of the 16 participants, 11 self-identified as male, 5 as female, 6 as undergraduates, and 10 as graduate students. Twelve participants (75%) were between the ages of 18 and 24, and 4 were between the ages of 25 and 35. All participants reported little to no experience in graphic design (6 claimed no experience and 10 had little experience). In terms of familiarity with PowerPoint, three participants reported low proficiency, five as moderate, and eight as relatively high.
[0123] 3. Setup and Procedure. 16 participants were randomly assigned to two groups, each including eight participants. Based on the previous research design, one group used only the system of the present invention, while the other group used only the PowerPoint baseline system. The experiment was conducted on an individual basis, one participant at a time. Each participant was assigned a desktop equipped with a 27-inch usable computer device (including a display screen), a mouse, and a keyboard. In the first part of the experiment, the experimental coordinator (one of the authors of the present invention) first introduced the infographic, including showing several examples and explaining the experimental system, one of which was the present invention and the other was PowerPoint. All functions related to the infographic design task were explained and demonstrated (that is, the functions of the resource generation application corresponding to each mapping resource type), and the order was randomized to avoid any implication of the design workflow. Next, the participants were asked to create two infographics. The first theme was "Your Favorite Character" and the second theme was "Ancient Civilizations". These broad themes were selected to allow participants to flexibly use their creativity without being restricted by highly specific or technical topics. For each of the two themes, the experimental coordinator first introduced the scope of the topic and then guided the participants to design their favorite infographic based on the topic at hand. Participants were clearly informed that their screens would be video recorded, and permission was obtained from participants.
[0124] In the second study part, the participants in the PowerPoint group were presented with the invention and the use of the invention system was explained in detail. All participants then took a free-form look at the invention, where they were asked to freely experiment with the system, try out its features, and create a graphic design of their choice (for the PowerPoint group). This part was limited to a maximum of 30 minutes. At the end of this part, participants were asked to fill out a questionnaire asking about their overall impressions of the invention and the creative process. The entire session lasted about an hour and a half.
[0125] 4. Measurement. For the questionnaire in the second part, the Customer Satisfaction Index (CSI) can be used to measure the creativity support of the present invention. The original CSI has six dimensions of creativity support, including exploration, expressiveness, immersion, enjoyment, results worth the effort, and collaboration. Since the present invention is not a collaborative software, the four dimensions of CSI can be used: enjoyment, exploration, expressiveness, and results worth the effort. In addition, we added a question about ease of use and six more questions to investigate the degree of creativity supported by specific functions, including layout (corresponding to layout style), resources (corresponding to mapping resources for pictures or icons), and information (corresponding to mapping resources for text), each with two questions. Finally, we added three open-ended questions aimed at eliciting comprehensive user feedback on the advantages and disadvantages of the present invention, with a particular focus on users' views on the canvas and dialogue interactions. In general, the questionnaire includes 11 Likert scale questions and 3 open-ended questions, which can be specifically as follows: Figure 8 shown.
[0126] V. Analysis. The inventors of the present invention analyzed and coded the videos recorded in the first part of the study, categorizing each interaction related to the creation of infographics into the predefined six design tasks (i.e., the predefined six types of graphics resources). Interactions that did not belong to these six categories were categorized as the "other" category. During the coding process, the two authors sat together and divided the videos into paragraphs. Each paragraph refers to a series of interactions related to the same category. It can be noted that in the PowerPoint group, there are several design categories, such as "key character design" and "visual element design", which may cover a series of interactions from online resource search, uploading to PowerPoint, and design. For each paragraph, its start time, end time, and category were identified and saved. A total of 32 interaction logs were analyzed (2 systems * 8 participants * 2 infographics). A timeline-based visual analysis method can then be used to examine the time cost and time pattern in the interaction logs of the present invention group and the PowerPoint group.
[0127] 6. Results. First, the interaction analysis is presented to compare the way participants used the invention and the PowerPoint group to design infographics; then, the questionnaire results and the analysis of open-ended questions are presented to provide more details about the participants' opinions on usage.
[0128] 1. Interaction analysis. (1) Interaction time. Fig. 9 The average time spent on different operations for both systems is shown. Overall, participants were more likely to use the present invention (i.e. Fig. 9The time required to complete a satisfactory graphic design was shorter (M = 18.26 minutes, SD = 8.86) for the GraphiMind group (M = 33.40 minutes, SD = 12.24). This difference was significant, t(14) = 3.28, p < 0.01. Among the six interaction categories, the present invention saved the most time on information collection. On average, participants spent 2.03 minutes using the present invention to collect information related to the topic, while it took 10.76 minutes (SD = 9.47) for the PowerPoint group, which was also the most time-consuming task among the six tasks in the PowerPoint group. This difference was significant, t(14) = 3.37, p < 0.01. Reductions in time cost were also observed in the design tasks of background design, layout customization, and visual element design, although these differences were not significant. (2) Patterns of design workflow. Fig.10 A sequence of 32 interaction logs is visualized based on the usage of the two systems. Fig.10 PXX refers to actors. For simplicity, the interaction categories of "Key Character Design", "Background Design" and "Visual Element Design" were merged into one meta-category "Resource Design". View Fig.10 When looking at the interaction sequence in the PowerPoint presentation, several insights can be seen: first, the significantly shorter overall time using the invention is evident, and the invention provided a shorter design process for the participants, except for participant P6; second, the workflow of the invention group seemed to be more fluid and sequential compared to the PowerPoint group, i.e., starting with resource or layout design, followed by information gathering, and finally local adjustments, while the PowerPoint group showed a more fragmented process interspersed with frequent local adjustments and information gathering; finally, it can be seen that for almost all participants in the invention group, there was a long use of local adjustments at the end of the session, while in the PowerPoint group, local adjustments were scattered throughout the process. This can be explained by the need to make adjustments after creating or importing design resources in PowerPoint, while in contrast, in the invention, these resources were seamlessly integrated and adapted to the selected layout on the canvas, potentially reducing time and effort.
[0129] 2. Questionnaire. As shown in Figure 11, the analysis of the 11 Likert scale questions showed overall high scores for most items, indicating an overall positive acceptance. It is worth noting that "information collection efficiency" received the highest score (M = 4.75 ± 0.58), which is consistent with the findings of the first part of the study, in which the present invention demonstrated significant advantages in information collection. In contrast, the scores related to layout, namely "layout adjustment" (M = 3.38 ± 0.89) and "layout adaptability" (M = 3.94 ± 1.06), were relatively low. This is also consistent with the observations of the first part of the study, in which users of the present invention spent more time on local adjustments than the PowerPoint group.
[0130] 3. Open-ended questions. Overall, participants felt that the invention made the infographic design process easy and helpful. The following are the main themes extracted from the open-ended question: "Which features in the system do you think are helpful in creating infographics?" The focus here is on identifying and analyzing specific features that users found most beneficial and why they were considered helpful in the infographic creation process.
[0131] (1) Smooth integration between text and canvas. Participants’ responses emphasized that the way the present invention integrates the text conversation interface (corresponding to the intelligent conversation interface) and the graphical operation interface (corresponding to the canvas operation interface) significantly simplifies and streamlines the infographic creation process. P2 emphasized natural interaction, saying, “The interaction method is very convenient, and the switching between the left and right views feels natural.” P6 praised the convenience of the layout design and drag-and-drop function, emphasizing that “the direct drag-and-drop function and the overall adaptation from left to right views make it possible to quickly create infographics.” P11 discussed the user-friendly operation of the elements, saying, “I can easily drag and drop text and images from the chat box, which is cool!”, demonstrating the software’s ability to facilitate a smooth and intuitive design workflow. Among them, P2, P6, and P11 were all participants.
[0132] (2) Easy start of the design process. The present invention provides a clear and easy start for the infographic design process. Users can easily experiment or get new inspiration by simply entering text requests in the present invention. P13 expressed the convenience of using the present invention to start design ideas, "I just need to enter text and see what is returned, and through this, decisions become easier to make." P15 from the PowerPoint group, who also spent the longest time among all participants, discussed the difficulties faced by traditional methods, pointing out that "it (i.e., the present invention) greatly improves the efficiency of searching for information... When I browse the Internet, it is difficult to settle on a specific idea." Among them, P13 and P15 are both participants.
[0133] (3) Effective design resource generation. The present invention excels in accurately generating key visual design resources, such as images, icons, and layouts. For example, P5 emphasized the system's ability to automatically generate layouts that effectively meet design requirements, "Automatically generating layouts and corresponding information is very helpful." P16 emphasized the speed at which the present invention generates visual elements, "It (i.e., the present invention) quickly generates images, icons, and provides relevant visual resources." In addition, participants appreciated the accuracy of the present invention in terms of design resource suggestions. This is particularly evident in the context of theme image generation, as P14 mentioned, "The system can provide accurate suggestions for theme images that are very consistent with my expectations." Among them, P5, P16, and P14 are all participants.
[0134] (4) Easy text information collection. Participants reported that the present invention significantly simplified the process of collecting text information for infographics. Compared with conventional information searches through Google or other websites, the information collection function driven by ChatGPT in the present invention can collect information related to the topic from all sources at one time, which was highly praised by participants. For example, P3 emphasized the efficiency of the content generation tool, "The batch content generation tool helps me quickly obtain reasonable content." In addition, P8 praised the effectiveness of the tool in summarizing text information, "The text information summary is complete and relevant, saving a lot of time in researching materials." Among them, P3 and P8 are both participants.
[0135] (5) Natural conversational interaction. It stands out as an intuitive and natural communication medium that utilizes language, which is essentially the primary way humans interact. This attribute significantly enhances its user-friendliness, especially for beginners. Users can express their design needs in simple conversational language, which is consistent with humans' natural inclination towards verbal communication, thereby reducing the learning curve and cognitive burden compared to traditional graphic design interfaces. Participant feedback emphasized its advantages. P1 noted its ease of use for beginners: "It (i.e., conversational interaction) is friendly to beginners, no need to understand specific tools, easier, content generation," highlighting its accessibility. P16 found it beneficial in terms of creative inspiration: "Conversational interaction provides more inspiration."
[0136] 4. Quality Assessment. To assess the design quality and aesthetics of the infographics, 20 respondents were assigned to rate the infographics from the first part of the study. Each respondent independently rated each design infographic on three statements: (1) well designed; (2) aesthetically pleasing; and (3) graphic and text content compatible with the theme. These statements were used to assess three aspects of infographic quality: design quality, aesthetics, and theme compatibility.
[0137] A 7-point Likert scale can be used, where 1 means strongly disagree and 7 means strongly agree. A total of 32 design results were evaluated, half of which were from the present invention and the other half from PowerPoint. Subsequently, the average score of each design result in the three aspects of design quality, aesthetics, and theme compatibility was calculated.
[0138] The scoring results can be Fig.12 As shown in the figure, in terms of the three evaluation aspects of design quality, aesthetics and theme compatibility, the infographics generated by the present invention received slightly higher average scores than those generated by PowerPoint. The test analysis found that there was no significant statistical difference between the two systems in the evaluation aspects (design quality: p = 0.737; aesthetics: p = 0.285; theme compatibility: p = 0.492), indicating that the performance of the present invention is comparable to that of PowerPoint. Fig.12 In the figure, t-value represents the difference between the graph design effect scores of the two systems. The larger the v-value is, the more obvious the difference in graph design effects between the two systems is. p-value represents the credibility of the difference in graph design effects between the two systems represented by the t-value. The higher the p-value is, the less evidence there is to show that there is a statistically significant difference in the graph design effect scores between the two systems. When p-value<preset value (the preset value can be 0.05), the t-value is considered credible, that is, the difference between the graph design effects of the two systems is credible. Otherwise, it is not credible.
[0139] The above research shows that this application significantly shortens the design process of infographics, simplifies the design process from content collection to fine-grained manipulation of objects, and maintains the quality of design results. While ensuring the design quality, it greatly improves the efficiency of infographic design.
[0140] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0141] Based on the same inventive concept, the embodiment of the present application also provides a large language model-based resource processing design device for implementing the large language model-based resource processing design method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more embodiments of the large language model-based resource processing design device provided below can refer to the limitations of the large language model-based resource processing design method above, and will not be repeated here.
[0142] In an exemplary embodiment, Fig.14 As shown, a resource processing design device based on a large language model is provided, which is applied to a server and includes: a receiving module 1400, a calling module 1402 and a design module 1404, wherein:
[0143] The receiving module 1400 is used to receive mapping resource query information sent by the terminal. The mapping resource query information is input based on the intelligent dialogue interface in the map design interface. The map design interface includes an intelligent dialogue interface and a canvas operation interface.
[0144] Calling module 1402 is used to determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information based on the large language model, call the target resource generation application that matches the cartographic resource type, generate cartographic resources based on the resource requirement parameters through the target resource generation application, and send the cartographic resources to the terminal.
[0145] The design module 1404 is used to enable the terminal to display drawing resources in the intelligent dialogue interface. The drawing resources are used to be configured to the corresponding target position of the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
[0146] In some embodiments, in terms of generating mapping resources based on resource requirement parameters through a target resource generation application, the calling module 1402 is also used to, if the target resource generation application is an image generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the image generation application, and generate an image based on the resource requirement command; if the target resource generation application is a text generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the text generation application, and generate text based on the resource requirement command, wherein the text includes an icon keyword; obtain an icon that matches the icon keyword from a database, or call the image generation application, and generate an icon that matches the icon keyword based on the icon keyword through the image generation application; if the target resource generation application is a layout style generation application, convert the resource requirement parameters into a resource requirement command in a matching format through the layout style generation application, and generate a layout style based on the resource requirement command.
[0147] In some embodiments, a resource processing design device based on a large language model is applied to a server and also includes a modification module 1406, which is used to receive a resource modification request sent by a terminal, and the resource modification request is input through an intelligent dialogue interface; based on the large language model, the modified resource identification information and the modification standard parameters corresponding to the resource modification request are determined, and a resource modification application is called, and an updated resource is generated through the resource modification application based on the modification standard parameters, and the modified resource identification information and the updated resource are sent to the terminal; so that the terminal replaces the resource corresponding to the modified resource identification information with the updated resource.
[0148] In an exemplary embodiment, Fig.15 As shown, a resource processing design device based on a large language model is provided, which is applied to a terminal and includes: an input module 1500 and a setting module 1502, wherein:
[0149] Input module 1500 is used to respond to cartographic resource query information input into the intelligent dialogue interface in the diagram design interface, and send the cartographic resource query information to the server corresponding to the diagram design interface; so that the server determines the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information based on the large language model, calls the target resource generation application that matches the cartographic resource type, and generates cartographic resources based on the resource requirement parameters through the target resource generation application; the diagram design interface includes an intelligent dialogue interface and a canvas operation interface.
[0150] The adjustment module 1502 is used to display the drawing resources returned by the server in the intelligent dialogue interface, and in response to the selection operation in the drawing design interface, adjust the drawing resources corresponding to the selection operation to the corresponding target position in the canvas operation interface to obtain the corresponding design drawing.
[0151] In some embodiments, the selection operation includes a click operation and a drag-and-drop operation; in response to a selection operation in the drawing design interface, the drawing resources corresponding to the selection operation are adjusted to the target position corresponding to the canvas operation interface to obtain the corresponding design drawing. The adjustment module 1502 is also used to respond to a click operation in the intelligent dialogue interface, determine the target selection resource from the drawing resources, and in response to a drag-and-drop operation on the target selection resource in the drawing design interface, drag and drop the target selection resource to the corresponding target position in the canvas operation interface to obtain the corresponding design drawing.
[0152] In some embodiments, the adjustment module 1502 is also used to respond to resource selection information input in the intelligent dialogue interface, send the resource selection information to the server, so that the server can identify the target selection resource identification information corresponding to the resource selection information based on the large language model; receive the target selection resource identification information sent by the server, and based on the target selection resource identification information, configure the target selection resource corresponding to the target selection resource identification information at a preset position in the canvas operation interface to obtain the corresponding design drawing.
[0153] In some embodiments, the adjustment module 1502 is also used to send the layout resource query information to the server if layout resource query information is input in the intelligent dialogue interface when there are already mapping resources in the canvas operation interface; so that the server determines the layout resource requirement parameters corresponding to the layout resource query information based on the large language model, calls the layout style generation application, and generates a layout style based on the layout resource requirement parameters through the layout style generation application; displays the layout style returned by the server in the intelligent dialogue interface, and in response to the selection operation in the drawing design interface, performs adaptive layout adjustment on the mapping resources in the canvas operation interface based on the layout style corresponding to the selection operation, and obtains a design drawing corresponding to the layout style.
[0154] Each module in the above-mentioned resource processing design device based on a large language model can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0155] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.16 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to resource processing design based on a large language model. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource processing design method based on a large language model is implemented.
[0156] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.17 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a resource processing design method based on a large language model is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0157] Those skilled in the art will understand that Fig.16 and Fig.17 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0158] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0159] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0160] In one embodiment, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0161] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0162] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0163] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0164] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource processing design method based on a large language model, characterized in that: Applied to a server, the method comprises: Receiving mapping resource inquiry information sent by a terminal, wherein the mapping resource inquiry information is based on the conversation content inputted through the intelligent dialogue interface in the map design interface, wherein the map design interface includes the intelligent dialogue interface and the canvas operation interface; Based on the large language model, determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information, call the target resource generation application that matches the cartographic resource type, generate the cartographic resource based on the resource requirement parameters through the target resource generation application, and send the cartographic resource to the terminal; the cartographic resource includes pictures, texts and layout styles; the layout style is a domain-specific language script, which is used to perform adaptive layout adjustment on the cartographic resources in the canvas operation interface; So that the terminal displays the drawing resources on the intelligent dialogue interface, and the drawing resources are configured to the target position corresponding to the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
2. The method according to claim 1, characterized in that The generating application through the target resource generates a mapping resource based on the resource requirement parameter, including: If the target resource generation application is a picture generation application, converting the resource requirement parameter into a resource requirement command of a matching format through the picture generation application, and generating a picture based on the resource requirement command; If the target resource generation application is a text generation application, the resource requirement parameter is converted into a resource requirement command in a matching format by the text generation application, and a text is generated based on the resource requirement command, wherein the text includes an icon keyword; an icon matching the icon keyword is obtained from a database, or an image generation application is called, and an icon matching the icon keyword is generated by the image generation application based on the icon keyword; If the target resource generation application is a layout style generation application, the resource requirement parameters are converted into a resource requirement command of a matching format by the layout style generation application, and a layout style is generated based on the resource requirement command.
3. The method according to claim 1, characterized in that: The method further comprises: receiving a resource modification request sent by the terminal, wherein the resource modification request is input through the intelligent dialogue interface; Based on the large language model, determining the modified resource identification information and the modification standard parameters corresponding to the resource modification request, calling a resource modification application, generating an updated resource based on the modification standard parameters by the resource modification application, and sending the modified resource identification information and the updated resource to the terminal; So that the terminal replaces the resource corresponding to the modified resource identification information with the updated resource.
4. A resource processing design method based on a large language model, characterized in that: Applied to a terminal, the method comprises: In response to the mapping resource query information input into the intelligent dialogue interface in the map design interface, the mapping resource query information is sent to the server corresponding to the map design interface, and the mapping resource query information is the conversation content; so that the server determines the mapping resource type and resource demand parameters corresponding to the mapping resource query information based on the large language model, calls the target resource generation application matching the mapping resource type, and generates mapping resources based on the resource demand parameters through the target resource generation application; the map design interface includes the intelligent dialogue interface and the canvas operation interface; the mapping resources include pictures, texts and layout styles; the layout style is a domain-specific language script, which is used to perform adaptive layout adjustment on the mapping resources in the canvas operation interface; The drawing resources returned by the server are displayed on the intelligent dialogue interface, and in response to a selection operation in the drawing design interface, the drawing resources corresponding to the selection operation are adjusted to a target position corresponding to the canvas operation interface to obtain a corresponding design drawing.
5. The method according to claim 4, characterized in that The selection operation includes a click operation and a drag-and-drop operation. In response to the selection operation in the drawing design interface, the drawing resource corresponding to the selection operation is adjusted to a target position corresponding to the canvas operation interface to obtain a corresponding design drawing, including: In response to a click operation in the intelligent dialogue interface, a target selection resource is determined from the drawing resources, and in response to a drag-and-drop operation on the target selection resource in the drawing design interface, the target selection resource is dragged and dropped to a corresponding target position in the canvas operation interface to obtain a corresponding design drawing; The method further comprises: In response to resource selection information inputted in the intelligent dialogue interface, the resource selection information is sent to the server, so that the server identifies target selection resource identification information corresponding to the resource selection information based on the large language model; The target selection resource identification information sent by the server is received, and based on the target selection resource identification information, the target selection resource corresponding to the target selection resource identification information is configured at a preset position in the canvas operation interface to obtain a corresponding design drawing.
6. The method according to claim 4, characterized in that The method further comprises: If a drawing resource already exists in the canvas operation interface, layout resource query information is input in the intelligent dialogue interface, and the layout resource query information is sent to the server; so that the server determines the layout resource requirement parameters corresponding to the layout resource query information based on the large language model, calls a layout style generation application, and generates a layout style based on the layout resource requirement parameters through the layout style generation application; The layout style returned by the server is displayed on the intelligent dialogue interface, and in response to a selection operation in the drawing design interface, the drawing resources in the canvas operation interface are adaptively arranged based on the layout style corresponding to the selection operation to obtain a design drawing corresponding to the layout style.
7. A resource processing design device based on a large language model, characterized in that: Applied to a server, the device comprises: A receiving module, used for receiving mapping resource inquiry information sent by a terminal, wherein the mapping resource inquiry information is a conversation content input based on an intelligent dialogue interface in a map design interface, wherein the map design interface includes the intelligent dialogue interface and a canvas operation interface; A calling module, used to determine the cartographic resource type and resource requirement parameters corresponding to the cartographic resource query information based on a large language model, call a target resource generation application that matches the cartographic resource type, generate a cartographic resource based on the resource requirement parameters through the target resource generation application, and send the cartographic resource to the terminal; the cartographic resource includes pictures, texts and layout styles; the layout style is a domain-specific language script, which is used to perform adaptive layout adjustment on the cartographic resources in the canvas operation interface; The design module is used to enable the terminal to display the drawing resources on the intelligent dialogue interface, and the drawing resources are used to be configured to the target position corresponding to the canvas operation interface according to the selection operation to obtain the corresponding design drawing.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
