Display object generation method and system, electronic equipment and storage medium
Through the collaborative work of the client and the server, the preset knowledge base and Wenshengwen model are used to generate display objects, which solves the problems of low efficiency and high cost of display object generation in the existing technology, and achieves fast and low-cost generation of display objects.
Patent Information
- Application Number
- CN202410773739.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
The display object generation methods in the existing technology are inefficient and costly, cannot quickly adapt to model updates and dynamic changes, and cannot meet the needs for generating a large number of display objects.
Through the collaborative work of the client and the server, the object generation requirement information input by the user is obtained, the matching knowledge text and pictures are obtained based on the preset knowledge base, the structured object description information is generated using the preset text model, and the page data is generated by combining the components. , to achieve rapid display object generation.
It greatly improves the efficiency and speed of display object generation, reduces costs, can quickly respond to user needs, adapts to model updates, and simplifies the page generation process.
Smart Images

Figure CN118733169A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a display object generation method, a display object generation system, an electronic device, a storage medium and a computer program product. Background Art
[0002] During the operation process, display objects of objects such as goods, projects, and activities are used to display information in the form of text and / or images to achieve the purpose of information reach. The traditional display object generation process requires multiple roles to participate in multiple generation links. For example, first, the operator needs to rack his brains to design the copy, and then the designer needs to design the design manuscript corresponding to different information carriers based on the design copy. After that, the R&D personnel need to produce display objects corresponding to different information carriers based on the design manuscript. This traditional display object generation method is inefficient and costly, and cannot meet the needs of generating a large number of display objects. There is also a solution in the prior art that uses a fine-tuned generative model and generates display objects by the generative model obtained by fine-tuning, but it is necessary to comb the model training corpus. Combing model training is expected to take a long time, cannot adapt to the rapid update of the model, cannot meet the dynamically changing display object needs, and is costly.
[0003] It can be seen that the display object generation method in the prior art needs to be improved. Summary of the invention
[0004] The embodiment of the present application provides a display object generation method, which can quickly generate display objects with low cost and high efficiency.
[0005] Correspondingly, the embodiments of the present application also provide a display object generation system, an electronic device, a storage medium and a computer program product to ensure the implementation and application of the above-mentioned display object generation method.
[0006] In order to solve the above problem, the embodiment of the present application discloses a display object generation method, which is applied to a client, and the method includes:
[0007] Obtain object generation requirement information input by the user through the object creation interface;
[0008] Sending the object generation requirement information to a server, wherein the object generation requirement information is used to trigger the server to generate page data matching the object generation requirement information;
[0009] Displaying the page content of the display object to be generated based on the page data;
[0010] In response to a display object generation operation triggered by the page content, a display object is generated.
[0011] The embodiment of the present application also discloses a display object generation method, which is applied to a server, and the method includes:
[0012] Obtain object generation requirement information input by the user;
[0013] Based on a preset knowledge base, obtaining knowledge text and / or knowledge image matching the object generation requirement information;
[0014] Based on the object generation requirement information and the knowledge text, a first preset text-generated text model is called to obtain structured object description information generated by the first preset text-generated text model;
[0015] Based on the structured object description information and / or the knowledge picture combination preset component, page data matching the object generation requirement information is generated, and the page data is used to generate a display object.
[0016] The present application also discloses a method for generating a display object, the method comprising:
[0017] Obtain object generation requirement information input by the user through the object creation interface;
[0018] Based on a preset knowledge base, obtaining knowledge text and / or knowledge image matching the object generation requirement information;
[0019] Based on the object generation requirement information and the knowledge text, a first preset text-generated text model is called to obtain structured object description information generated by the first preset text-generated text model;
[0020] Based on the structured object description information and / or the knowledge picture combination preset component, generate page data matching the object generation requirement information;
[0021] Displaying the page content of the display object to be generated based on the page data;
[0022] In response to a display object generation operation triggered by the page content, a display object is generated.
[0023] The embodiment of the present application discloses a display object generation system, the object generation system includes: a client and a server, wherein:
[0024] The client is used to execute the display object generation method applied to the client described in the embodiment of the present application;
[0025] The server is used to execute the display object generation method applied to the server described in the embodiment of the present application.
[0026] The embodiment of the present application further discloses a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the embodiment of the present application.
[0027] The embodiment of the present application also discloses a computer program product, including a computer program / computer executable instructions, characterized in that when the computer program / computer executable instructions are executed by a processor in an electronic device, the method described in the embodiment of the present application is implemented.
[0028] Compared with the prior art, the embodiments of the present application have the following advantages:
[0029] By obtaining the object generation requirement information input by the user through the object creation interface, the object generation requirement information is sent to the server, triggering the server to generate page data matching the object generation requirement information. Then, the client displays the page content of the display object to be generated based on the page data, and generates the display object in response to the display object generation operation triggered by the page content. In the whole process of display object generation, the user only needs to describe the display object to be generated in brief language. The display object generation system can quickly generate display objects that match the user's needs, changing the previous page generation method from designers racking their brains to write copy, find objects, and design pages to only needing to enter a sentence to intelligently generate display objects, greatly improving the generation efficiency and speed of display objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is one of the step flow charts of the display object generation method disclosed in the embodiment of the present application;
[0031] Figure 2 It is one of the schematic diagrams of the object creation interface in the display object generation method disclosed in the embodiment of the present application;
[0032] Figure 3 This is the second schematic diagram of the object creation interface in the display object generation method disclosed in the embodiment of the present application;
[0033] Figure 4 This is the second step flow chart of the display object generation method disclosed in the embodiment of the present application;
[0034] Figure 5 This is one of the schematic diagrams of the content item editing interface of the display object generation method disclosed in the embodiment of the present application;
[0035] Figure 6 This is the second schematic diagram of the content item editing interface of the display object generation method disclosed in the embodiment of the present application;
[0036] Figure 7 It is a schematic diagram of a picture editing interface of the display object generation method disclosed in the embodiment of the present application;
[0037] Figure 8 This is the third step flow chart of the display object generation method disclosed in the embodiment of the present application;
[0038] Fig. 9 This is the fourth step flow chart of the display object generation method disclosed in the embodiment of the present application;
[0039] Fig.10 It is a workflow diagram of the display object generation system disclosed in the embodiment of the present application;
[0040] Fig.11 It is a schematic diagram of the structure of an exemplary device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0042] The display object generation method disclosed in the embodiment of the present application can be applied to scenarios such as website production and promotional image production. For example, a user needs to generate a function introduction image of a certain platform, or a user needs to generate a website page of a shipping company.
[0043] Taking the display object generation method disclosed in the embodiment of the present application as an example, the user enters a sentence through the client to describe the website page or promotional picture to be generated, and then triggers the display object generation operation. The client will call the display object generation service of the server according to the sentence entered by the user, thereby obtaining page data that matches the generation requirements, and then the client generates the display object according to the page data. Optionally, the display object can be automatically combined based on elements such as text, pictures, components, etc. The page data can be described in a page description language such as JSON. Using the display object generation method disclosed in the embodiment of the present application, display objects such as web pages and pictures can be quickly generated.
[0044] Reference Figure 1 The display object generation method disclosed in the embodiment of the present application is applied to the client, and the method includes: steps 102 to 108.
[0045] Step 102: Obtain object generation requirement information input by the user through the object creation interface.
[0046] The object generation requirement information is used to describe the display object to be generated, so as to guide the large language model to generate the corresponding display object.
[0047] In some optional embodiments, obtaining the object generation requirement information input by the user through the object creation interface includes: obtaining the object description statement input by the user through the object creation interface, and using the object description statement as the object generation requirement information. Figure 2 As shown, a text editing box 210 can be set in the object creation interface of the client, and the user can enter a sentence in the text editing box 210 to describe the display object to be generated. For example, the user can enter, for example, "Help me generate an introduction page about logistics and shipping" in the text editing box. The client obtains the input text "Help me generate an introduction page about logistics and shipping" in the text editing box and uses it as object generation demand information.
[0048] In other optional embodiments, the obtaining of object generation requirement information input by the user through the object creation interface includes: obtaining an object description statement input by the user through the object creation interface; based on user triggering, obtaining content prompt information and / or picture prompt information of the display object selected by the user, wherein the content prompt information includes one or more of the following: application domain, page style, page theme, page tone, functional module, and the picture prompt information includes one or more of the following: inserting reference images, inserting manuscript images; fusing the object description statement and / or the content prompt information and / or the picture prompt information to obtain the object generation requirement information.
[0049] like Figure 3 As shown, a text editing box can be set in the object creation interface of the client, and the user enters a sentence in the text editing box 310 to describe the display object to be generated. At the same time, an AI assistant wake-up entrance 320 is also provided in the object creation interface. After the client detects that the AI assistant wake-up entrance 320 is triggered, the AI assistant page 330 is called out, so that the user can interact with the client through the AI assistant page 330 to select the content prompt information and / or picture prompt information of the display object to be generated. For example, the client can display a list of configuration options for the above-mentioned content prompt information and a list of configuration options for the above-mentioned picture prompt information on the AI assistant page 330. The user selects any one of the options in the configuration option list to enter the content prompt information or picture prompt information corresponding to the option for configuration.
[0050] In some optional embodiments, the application domain includes but is not limited to: logistics, funds, transactions, finance and taxation, etc.; the page theme includes but is not limited to: light colors, dark colors; the page style includes but is not limited to: 3D elements, real scenes, flat; the page tones include but are not limited to: red, orange, yellow, blue and other colors; the functional section is used to describe the functional section to which the display object belongs, and the functional section includes but is not limited to: product / function introduction, core selling points, solutions, process guidance, rights and interests cards, etc. Among them, the application domain is determined according to actual application needs, and the application domain matches the pre-trained generative model used to generate the display object. That is, the pre-trained generative model needs to be fine-tuned based on the data of the application domain.
[0051] Specifically, for example, the client can perform the following human-computer interaction with the user through the object creation interface to obtain the user's object generation demand information: First, the user can enter, for example, "Help me generate an introduction page about logistics and shipping" in the text editing box in the object creation interface; then, the user clicks the AI assistant button set in the object creation interface of the client to trigger the client to display the configuration option list of content prompt information and picture prompt information; by selecting a configuration item in the configuration option list, the user can trigger the client to display the attribute selection interface of the corresponding configuration item, thereby selecting the corresponding attribute value of the content prompt information or picture prompt information. For example, after the user clicks the "application domain" configuration item in the configuration option list of the content prompt information, the client displays the application domain selection interface of the content prompt information "application domain", and the candidate application domains displayed in the application domain selection interface include: logistics, funds, transactions, and finance and taxation; then, the user selects a candidate application domain (such as "logistics") to complete the configuration of the application domain. For another example, the user clicks the "insert reference image" configuration item in the configuration option list of the picture prompt information to complete the configuration of the picture prompt information.
[0052] In some optional embodiments, the object creation interface is further provided with a trigger entry for generating a display object, such as Figure 3 The user triggers the client to create a display object by clicking button 340. After the client detects that button 340 is clicked, it further obtains the object description sentence input in the current object creation interface and the selected content prompt information and picture prompt information, and splices the object description sentence with the content prompt information and picture prompt information currently selected by the user to generate object generation requirement information.
[0053] The object generation demand information can be: "Help me generate an introduction page about logistics and shipping, the application domain is: logistics, the page theme is: light colors, the page style is: real scene, the functional section is: product introduction, insert reference picture".
[0054] In some optional embodiments, the types of the content prompt information and the image prompt information can be pre-set to fixed values, or can be generated using a pre-trained generative model based on the text entered by the user in the text editing box 310. In the embodiment of the present application, there is no restriction on the types of the content prompt information and the image prompt information, and there is no restriction on the specific configuration attributes of each type of the content prompt information and the image prompt information.
[0055] Step 104: Send the object generation requirement information to the server, where the object generation requirement information is used to trigger the server to generate page data matching the object generation requirement information.
[0056] After the client detects that the user triggers the display object generation operation, it further sends the object generation requirement information to the server, triggering the server to generate page data of the display object to be generated based on the object generation requirement information.
[0057] Optionally, the sending of the object generation requirement information to the server includes: in response to the user triggering the display object generation operation through the object creation interface, generating a display object generation request carrying the object generation requirement information; and sending the display object generation request to the server. Figure 3 The button 340 shown in triggers the client to create a display object. After the client detects that the button 340 is clicked, it further obtains the object description sentence input in the current object creation interface and the selected content prompt information and picture prompt information, and splices the object description sentence with the content prompt information and picture prompt information currently selected by the user to generate object generation requirement information. After that, the client encapsulates the object generation requirement information according to the preset protocol, generates a display object generation request, and sends the display object generation request to the server.
[0058] In some optional embodiments, the server generates page data that matches the object generation requirement information, including: the server obtains the object generation requirement information input by the user, and based on a preset knowledge base, obtains the knowledge text and / or knowledge image that matches the object generation requirement information; the server calls a first preset text-generated text model based on the object generation requirement information and the knowledge text, and obtains structured object description information generated by the first preset text-generated text model; the server combines preset components based on the structured object description information and / or the knowledge image to generate page data that matches the object generation requirement information.
[0059] For example, the server can parse the display object generation request sent by the client according to the preset protocol to obtain the object generation requirement information input by the user. After that, the server uses similarity matching combined with artificial intelligence text generation and / or image generation technology based on the object generation requirement information and the preset knowledge base to obtain the knowledge text and knowledge image that match the object generation requirement information. The specific implementation method of the server obtaining the knowledge text and / or knowledge image that matches the object generation requirement information based on the preset knowledge base is described in the relevant description of the embodiment below, which will not be repeated here.
[0060] Afterwards, the server further generates prompt words according to the object description information and the acquired knowledge text, and calls the first preset text-generating text model based on the prompt words to obtain structured object description information generated by the first preset text-generating text model. For the specific implementation method of the server calling the first preset text-generating text model based on the object generation requirement information and the knowledge text to obtain the structured object description information generated by the first preset text-generating text model, please refer to the relevant description in the following embodiments, which will not be repeated here.
[0061] The structured object description information is used to describe the content item floor structure of the display object and the component information of the content items constituting each floor. Optionally, the structured object description information may be JSON structure data.
[0062] Next, the server further generates page data of the display object to be generated, that is, page data matching the object generation requirement information, based on the content item floor structure described by the structured object description information, the component information of the content items constituting each floor, and the knowledge image obtained in the above steps. Optionally, the page data can be a page outline of the low-code platform.
[0063] For the specific implementation method of the server generating page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset component, please refer to the relevant description in the embodiments below and will not be repeated here.
[0064] Step 106: display the page content of the display object to be generated based on the page data.
[0065] The client parses the page data and renders the page according to the page data to display the page content of the display object to be generated.
[0066] In some optional embodiments, after generating the page data matching the object generation requirement information, the server may publish the page data as the page data of the display object to be generated into the display object database, and send a notification message to the client, the notification message is used to indicate that the page data of the display object has been generated. After receiving the notification message, the client may access the display object database, display the page content of the display object to be generated, and perform subsequent processing based on the user operation, for example, displaying the display object, editing the page content of the display object, etc.
[0067] In some other optional embodiments, after generating page data matching the object generation requirement information, the server may push the page data to the client. After receiving the page data, the client may render the page content of the display object to be generated based on the page data, so that the user can perform subsequent operations on the page content of the display object to be generated, such as editing the page content of the display object.
[0068] Optionally, the page data may be a page file used by a low-code development platform. For example, the page file may be a page summary file of a low-code platform, thereby making the display object independent of the platform. Specifically, for example, the page data of the display object may be a page file described in HTML language.
[0069] The client performs page rendering based on the page data to obtain a preview page of the display object. For a specific implementation method, refer to the prior art and will not be described in detail in the embodiments of the present application.
[0070] Step 108: generating a display object in response to a display object generation operation triggered by the page content.
[0071] In some optional embodiments, the user can directly perform display object generation operations such as generating pictures or publishing web pages for the page content currently displayed by the client. The client will generate pictures or web pages, or other forms of display objects according to the currently displayed page content based on the display object generation operations performed by the user.
[0072] Optionally, the generating of the display object in response to the display object generating operation triggered by the page content includes: generating an image entry in response to a user trigger, generating a display object in the form of an image according to the current page content; and / or generating a web page display object in the form of a web page according to the current page content in response to a user triggering a website publishing entry, and publishing the web page address of the display object in the form of a web page.
[0073] For example, a button for generating an image and a button for setting the size of images of different formats can be set on the page content display interface of the client. After the user chooses to generate an image of a certain format and sets the size and other information of the image, a display object in the form of an image is rendered based on the currently displayed page content according to the user's settings. The formats of the generated images include but are not limited to: computer posters and mobile terminal posters.
[0074] For another example, a publish website button can be set in the page content display interface of the client. After the user triggers the publish website button, the client sends a request to the server to publish the current page content as a website page, so as to trigger the server to publish the corresponding website page based on the current page content. The website page is a display object in the form of a web page corresponding to the current page content. The specific implementation method of publishing a website page based on page content refers to the prior art, which will not be repeated in the embodiments of this application.
[0075] Generating display objects in the form of images or web pages helps expand the application scenarios of display objects and improve the utilization rate of display objects.
[0076] In summary, the display object generation method disclosed in the embodiment of the present application obtains the object generation requirement information input by the user through the object creation interface, and then sends the object generation requirement information to the server, triggering the server to generate page data matching the object generation requirement information. Then, the client displays the page content of the display object to be generated based on the page data, and generates the display object in response to the display object generation operation triggered by the page content. In the whole process of display object generation, the user only needs to describe the display object to be generated in brief language. The display object generation system can quickly generate display objects that match the user's needs, changing the previous page generation method from designers racking their brains to write copy, find objects, and design pages to only needing to enter a sentence to intelligently generate display objects, greatly improving the generation efficiency and speed of display objects.
[0077] Further, such as Figure 4 As shown, in some optional embodiments, after displaying the page content of the display object to be generated based on the page data, it also includes: step 107 and step 1071.
[0078] Step 107: In response to the user's editing operation on the page content, update the page content based on the editing operation.
[0079] The editing operation includes one or more of the following: deleting a content item, adding a content item, and modifying content item information.
[0080] Step 1071, display the updated page content.
[0081] In the embodiments of the present application, Figure 5 As shown, the page content is obtained by arranging one or more content items in a floor structure. The user can perform an editing operation on the content items of each floor, such as any one of the content items 502 and 504, or delete the content item. For example, the client sets a content item editing entry and a content item deletion entry for each content item on the page content display page, and the user can delete the content item corresponding to the entry or enter the editing interface of the corresponding content item by triggering the corresponding entry.
[0082] Optionally, the content item information includes but is not limited to one or more of the following: title, content description, and image address. Accordingly, when editing any content item, you can choose to edit the title or content description of the content item, or reselect the image to update the image address. The title and content description of the content item can be generated by artificial intelligence; the reselected image can be obtained by image search, or by artificial intelligence generation. For example, the client can set an editing entry for each content item information in the content item editing interface, such as Figure 6 As shown in the title editing entry 602, the content description editing entry 604, and the picture editing entry 606, the user enters the corresponding content item information editing interface by triggering the editing entry of the content item information.
[0083] In some optional embodiments, the content item information includes: a title, and in response to a user editing operation on the page content, updating the page content based on the editing operation includes one or more of the following methods: in response to a user triggering an intelligent copy generation operation for the title, displaying a title copy replacement configuration interface; obtaining title copy generation prompt information input by the user in the title copy replacement configuration interface; in response to the user triggering a copy replacement operation, calling a copy generation service based on the current copy of the title and the title copy generation prompt information to obtain the title copy generated by the copy generation service; replacing the current copy of the title with the generated title copy to update the page content.
[0084] For example, after the user clicks the title editing button as the title editing entry 602, the client displays the title editing interface, and the user can use the title editing interface to perform operations using artificial intelligence technology to generate title content, including but not limited to the following one or more configuration information: copy polishing, copy translation, copy word range, etc. Further, after the user triggers the title replacement operation (such as the user triggers the button indicating the replacement of the file set in the title editing interface), the client obtains the current copy of the title, the user's configuration information for generating the title copy, and generates prompt information based on the current copy of the title and the configuration information, and then calls the copy generation service based on the generated prompt information, and obtains the title copy generated by the copy generation service. Then, the client uses the title copy generated by the copy generation service to replace the current copy of the title, and refreshes the title of the editing interface that displays the content item, completing the editing operation of the title.
[0085] In some optional embodiments, the content item information includes: content description, and in response to a user editing operation on the page content, updating the page content based on the editing operation includes: in response to the user triggering an intelligent copy generation operation for the content description, displaying a content description copy replacement configuration interface; obtaining content description copy generation prompt information input by the user in the content description copy replacement configuration interface; in response to the user triggering a copy replacement operation, calling a copy generation service based on the current copy of the content description and the content description copy generation prompt information to obtain a generated content description copy; replacing the current copy of the content description with the generated content description copy to update the page content.
[0086] For example, after the user clicks the content description editing button as the content description editing entry 604, the client displays the content description editing interface, and the user can use the content description editing interface to perform the operation of generating the content description using artificial intelligence technology, including but not limited to the following one or more configuration information: copy polishing, copy translation, copy word range, etc. Further, after the user triggers the content description replacement operation (such as the user triggers the button indicating the replacement of the file set in the content description editing interface), the client obtains the current copy of the content description, the user's configuration information for generating the content description copy, and generates prompt information based on the current copy of the content description and the configuration information, and then calls the copy generation service based on the generated prompt information, and obtains the content description copy generated by the copy generation service. Then, the client uses the content description copy generated by the copy generation service to replace the current copy of the content description, and refreshes the content description of the editing interface displaying the content item, completing the editing operation of the content description.
[0087] In some optional embodiments, the content item information includes: pictures, and the response to the user's editing operation on the page content, updating the page content based on the editing operation includes: in response to the user triggering a picture replacement operation for the picture, displaying a picture editing interface; based on the intelligent picture search operation performed by the user on the picture editing interface, obtaining the picture search prompt information input by the user, and calling a preset picture search service based on the picture search prompt information to obtain candidate pictures; or, based on the artificial intelligence picture generation operation performed by the user on the picture editing interface, obtaining the raw picture prompt information input by the user, and calling a preset raw picture service based on the raw picture prompt information to obtain candidate pictures; in response to the user's confirmation selection operation on the candidate picture, replacing the picture with the candidate picture selected by the user to update the page content.
[0088] For example, after the user clicks the picture editing button as the picture editing entrance 606, the client displays the picture editing interface, and the user can use the picture editing interface to perform operations such as searching pictures or generating pictures using artificial intelligence technology, including but not limited to the following one or more configuration information: picture search prompt text, picture acquisition method, etc. Among them, the picture acquisition method is not limited to: intelligent picture search, generating pictures using artificial intelligence technology. Figure 7 As shown, in the picture editing interface, options for different picture acquisition methods can be set, such as the intelligent picture search method selection button 702, the artificial intelligence technology to generate picture method selection button 704, and the picture search prompt text input box 706. The user can select a method for acquiring pictures through the above buttons 702 and 704, and enter the description of the picture to be searched or the picture to be generated in the picture search prompt text input box 706, and then trigger the operation of intelligently acquiring pictures. The client detects the operation of acquiring pictures triggered by the user, and calls the preset picture search service or the preset picture generation service according to the picture acquisition method selected by the user and the description of the picture to be generated or the picture to be searched entered by the user, acquires the picture as a candidate picture, and displays the acquired candidate picture in the picture editing interface. The user can browse the candidate pictures through the picture editing interface and select a candidate picture to replace the currently edited picture. Then, the client uses the candidate picture selected by the user to replace the picture of the content item currently being edited in the preview interface of the exhibition object, and completes the editing operation of the picture.
[0089] In some other optional embodiments, the client can also set a new content item entry in the preview interface of the display object, and the user can enter the content item editing interface by triggering the new content item entry to edit the new content item. The specific method of editing the new content item can refer to the specific implementation method of editing the existing content item, which will not be repeated here.
[0090] After completing the editing of a content item, or after deleting a content item, the client will update the page data of the current page according to the editing result or the deletion result, and re-render the page content based on the updated page data.
[0091] In summary, the display object generation method disclosed in the embodiment of the present application realizes secondary editing of the display object by generating the page content of the display object obtained by arranging the content items using the floor structure, converting the page content into the page summary required by the low-code platform, and helping to further improve the quality of the display object generated based on the page content and meet the personalized needs of users. By combining artificial intelligence copywriting generation and image generation technology, as well as intelligent image search technology, the generated display object is richer in content while matching user needs.
[0092] Based on the above embodiments, the present application also discloses a method for generating a display object, which is applied to a server. Figure 8 As shown, the display object generation method includes: steps 802 to 808.
[0093] Step 802: Obtain object generation requirement information input by the user.
[0094] The specific implementation method of the server obtaining the object generation requirement information input by the user is described above and will not be repeated here.
[0095] Step 804: Based on a preset knowledge base, obtain knowledge text and / or knowledge image that matches the object generation requirement information.
[0096] Among them, the preset knowledge base may include: a text knowledge base and a picture knowledge base, the text knowledge base is used to store text of domain knowledge pre-configured for each application domain, and the picture knowledge base is used to store pictures of domain knowledge pre-configured for each application. Among them, the text in the preset knowledge base can be text manually written by professionals, or it can be text generated by artificial intelligence technology. Similarly, the pictures in the preset knowledge base can be pictures drawn by designers, or they can be pictures generated by artificial intelligence technology. In the embodiments of the present application, there is no restriction on the generation method of the text and pictures in the preset knowledge base.
[0097] In some optional embodiments, the display object generation system includes: a preset component library. The preset component library is used to store components that constitute the display object, and each component corresponds to an application domain. For example, the preset component library may include: components of the freight application domain, components of the financial application domain, components of the insurance application domain, etc.
[0098] Furthermore, there may be multiple components corresponding to each application domain. Each component may include a different number of content areas, and each content area further has the same or different content attributes. Taking the components corresponding to the freight application domain in the preset component library as: component 1, component 2 and component 3 as an example, component 1 may be a component including 2 content areas, and the content areas include illustrations, component 2 may be a component including 3 content areas, and the content areas include iconic icons, and component 3 may be a component including only 1 content area, and the content areas include illustrations and icons. Each floor corresponds to a content item, and a single content item may include one or more content areas.
[0099] The components stored in the preset component library are configured for each application domain. In specific implementation, the application domain to which each component is applicable can be specified to facilitate querying the components of the specified application domain.
[0100] In the embodiments of the present application, there is no limitation on the method of generating the preset component library and the types of components in the preset component library.
[0101] Optionally, the knowledge in the text knowledge base is indexed and stored based on the application domain, which is convenient for subsequent searches of knowledge texts in a specified application domain, for example, stored as key-value pairs of application domain and knowledge text. Similarly, the knowledge in the image knowledge base is indexed and stored based on the application domain, which is convenient for subsequent searches of knowledge images in a specified application domain, for example, stored as key-value pairs of application domain and image.
[0102] In some optional embodiments, the object generation requirement information includes: requirement description text, and the method of obtaining knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base includes: converting the requirement description text into a first vector; based on the first vector and the second vector of each knowledge text in the preset text knowledge base, respectively calculating the first similarity between the requirement description text and each knowledge text, and obtaining the knowledge text matching the object generation requirement information according to the first similarity; and / or, based on the first vector and the third vector of each knowledge image in the preset text image knowledge base, respectively calculating the second similarity between the requirement description text and each image text, and obtaining the knowledge image matching the object generation requirement information according to the second similarity.
[0103] In some embodiments of the present application, in order to improve the retrieval efficiency of the knowledge base, the RAG (Retrieval Augmented Generation) retrieval enhancement generation technology is used to perform knowledge base retrieval. First, the knowledge text and knowledge image are respectively vectorized, and the vector corresponding to each knowledge is indexed to obtain the second vector of each knowledge text in the preset text knowledge base, and the third vector of each knowledge image in the preset image knowledge base. For example, the text is divided into blocks, and these blocks are embedded into the vector and transformer encoder (encoder with transformer structure) model to create a vector representation of each knowledge text. For another example, the image is divided into regions, and these regions are embedded into the vector and transformer encoder model to create a vector representation of each knowledge image.
[0104] When it is necessary to search the preset knowledge base, for example, when querying the knowledge text that matches the demand description text input by the user, it is first necessary to use the encoder model to complete the vectorization of the demand description text to obtain the first vector, and then perform an index search of this query vector to find the most relevant top-k results. In the process of index retrieval, the first similarity between the first vector and the second vector of each knowledge text in the preset text knowledge base is calculated, and then the k1 knowledge texts with the best first similarity are used as the knowledge texts that match the object generation demand information. On the other hand, in the process of index retrieval, the second similarity between the first vector and the third vector of each knowledge picture in the preset picture knowledge base is calculated, and then the k2 pictures with the highest second similarity are used as the knowledge pictures that match the object generation demand information. Among them, k1 is an integer greater than or equal to 1, and k2 is an integer greater than or equal to 0.
[0105] In some embodiments of the present application, the step of acquiring the knowledge text matching the object generation requirement information according to the first similarity includes: in response to the existence of a third similarity, selecting at least one of the knowledge texts corresponding to the third similarity as the knowledge text matching the object generation requirement information, wherein the third similarity is: the first similarity greater than or equal to a first preset threshold; in response to the existence of a fourth similarity, using a second preset text-generating model based on the knowledge text corresponding to the fourth similarity to generate the knowledge text matching the object generation requirement information, wherein the fourth similarity is: the first similarity greater than the second preset threshold and less than the first preset threshold. The second preset threshold is less than the first preset threshold.
[0106] In order to further improve the matching degree between the acquired knowledge and the query knowledge input by the user, thereby improving the matching degree between the generated display object and the user's needs, similarity thresholds are set in some embodiments of the present application, namely, "first preset threshold", "second preset threshold" and "third preset threshold". When acquiring the knowledge text matching the object generation demand information, it is preferred to select a knowledge text from the knowledge texts whose first similarity with the object generation demand information is greater than or equal to the first preset threshold as the knowledge text matching the object generation demand information. If the first similarity between the knowledge text in the preset text knowledge base and the object generation demand information is less than the first preset threshold, artificial intelligence is further used to generate the knowledge text. For example, one or more knowledge texts are selected from the knowledge texts whose first similarity with the object generation demand information is less than the first preset threshold and greater than the second preset threshold as part of the prompt information, and the second preset text generation model is called to generate the knowledge text matching the object generation demand information.
[0107] The first preset threshold and the second preset threshold can be set according to specific application requirements. For example, the first preset threshold can be set to 93%, and the second preset threshold can be set to 80%.
[0108] In some embodiments of the present application, obtaining a knowledge picture matching the object generation requirement information based on the second similarity includes: in response to the existence of a fifth similarity, selecting at least one knowledge picture corresponding to the fifth similarity as the knowledge matching the object generation requirement information, wherein the fifth similarity is: the second similarity greater than or equal to a third preset threshold; in response to the absence of the fifth similarity, generating a knowledge picture matching the object generation requirement information using a preset text graph model based on the object generation requirement information.
[0109] When obtaining a knowledge picture that matches the object generation requirement information, it is preferred to select a knowledge picture from the knowledge pictures whose second similarity with the object generation requirement information is greater than or equal to the third preset threshold as the knowledge picture that matches the object generation requirement information. If the second similarity between the knowledge pictures in the preset picture knowledge base and the object generation requirement information is less than the third preset threshold, artificial intelligence is further used to generate the knowledge picture. For example, the object generation requirement information is used as part of the prompt information, and a preset text-generated graph model is called to generate a knowledge picture that matches the object generation requirement information.
[0110] The third preset threshold and the second preset threshold can be set according to specific application requirements. For example, the third preset threshold can be set to 80%.
[0111] Step 806: Based on the object generation requirement information and the knowledge text, a first preset text-generating text model is called to obtain structured object description information generated by the first preset text-generating text model.
[0112] Next, firstly, based on the object generation requirement information and the matched knowledge text, artificial intelligence technology is used to generate structured object description information of the display object.
[0113] In some optional embodiments, the step of calling a first preset text-generated text model based on the object generation requirement information and the knowledge text to obtain structured object description information generated by the first preset text-generated text model includes: generating prompt words according to a preset template based on the object generation requirement information and the text knowledge, wherein the prompt words include: a protocol of the structured object description information to be generated; calling a first preset text-generated text model based on the prompt words to obtain structured object description information generated by the first preset text-generated text model. The first preset text-generated text model may be a pre-trained generative large language model.
[0114] Taking the object generation requirement information represented as "T1", the matched text knowledge represented as "T2", and the protocol of the structured object description information to be generated as "T3" as an example, the prompt words generated according to the preset template can be expressed as: "You will answer questions based on the following knowledge "T2", my question is "T1", and it is returned in the "T3" format. Among them, the protocol of the structured object description information can adopt a floor structure description, and each floor description displays the structure of a content item of the object. Based on the generated prompt words, the first preset text-generated text model is called, and the first preset text-generated text model can output generated content in the format of "T3". In an embodiment of the present application, the generated content is used as structured object description information.
[0115] Specifically, for example, the protocol can be used to describe the floor structure between the content items included in the structured object description information, the content items included in each floor structure, and the content areas further included in each content item, the title text corresponding to each content area, the content description and other attribute values. Optionally, the protocol of the structured object description information can be expressed in a JSON structure.
[0116] In the embodiments of the present application, content texts related to the display objects are pre-entered into a preset knowledge base, and an external preset knowledge base is used to query the preset knowledge base to obtain knowledge texts. When a display object of a page or image is generated, the knowledge texts obtained by the query are fed into a large model together with the object generation requirement information input by the user. This can return texts that are more in line with user requirements and better meet user needs. There is no need to train a generative model for the application field, which is more efficient and the model can be replaced at any time. It is not only easy to update, but also has high model compatibility.
[0117] Step 808: Based on the structured object description information and / or the knowledge picture combination preset component, generate page data matching the object generation requirement information, and the page data is used to generate a display object.
[0118] Next, the low-code development platform (such as a display object generation system) parses the structured object description information, and assembles and renders the display object according to the structured object description information.
[0119] In some optional embodiments, the structured object description information is used to describe the content item floor structure of the display object, and the preset component based on the structured object description information and / or the knowledge picture combination is used to generate page data matching the object generation requirement information, and the page data is used to generate the display object, including: obtaining the target application domain matching the object generation requirement information; parsing the structured object description information to obtain the number of pictures included in the display object and the content item floor structure matching the display object; obtaining the target component matching the target application domain and the obtained content item floor structure from the preset component; in response to the number of pictures being greater than the number of knowledge pictures, calling the preset text-generated graph model based on the object generation requirement text to obtain the supplementary pictures generated by the preset text-generated graph model; instantiating the target component based on the supplementary pictures, the knowledge pictures and the copy content to generate page data matching the object generation requirement information; in response to the number of pictures being less than or equal to the number of knowledge pictures, instantiating the target component based on the knowledge pictures and the copy content to generate page data matching the object generation requirement information.
[0120] The target application domain may be an application domain selected by the user through the client interface, or may be an application domain matched by the knowledge text obtained after performing a knowledge text query based on the object generation requirement information input by the user.
[0121] By parsing the structured object description information according to the preset protocol, the floor structure including the content items in the display object to be generated can be obtained, and the floor structure includes but is not limited to one or more of the following structural information: the number of content items included, the floor where the content items are located, the location and number of content areas included in the content items, the text in the content area, the number of pictures included in each content item, etc. Among them, the content area is the page area where the text such as the title and content description in the display object is located, and the picture can be an illustration or an icon.
[0122] Next, component matching is performed according to the application domain and the floor structure of the content item. For example, component matching is performed in preset components applicable to the target application domain, and components matching the content items of each floor are obtained according to the number of content areas included in each floor, the number and type of pictures, and other structural information.
[0123] Then, for content items that do not contain images, the obtained components can be instantiated and assembled based on the structured object description information obtained in the above steps to obtain display objects. For example, by parsing the structured object description information, the title text and content description text of each content area of each content item (corresponding to each floor) are obtained, and the text content variables in the corresponding components are formatted based on the obtained text to instantiate the components. Finally, the components corresponding to each content item are assembled according to the floor structure to obtain page data that matches the object generation requirement information.
[0124] On the other hand, for content items containing images, the obtained components can be instantiated and assembled based on the structured object description information and knowledge images obtained in the above steps to obtain display objects. For example, by parsing the structured object description information, the title text and content description text of each content area of each content item (corresponding to each floor) are obtained, and the text content variables in the corresponding components are formatted based on the obtained text, and the illustration variables or illustration variables in the components are formatted based on the obtained knowledge images to instantiate the components. Finally, the components corresponding to each content item are assembled according to the floor structure to obtain page data matching the object generation requirement information.
[0125] In some optional embodiments, if after parsing the structured object description information, it is determined that the number of pictures included in the display object to be generated exceeds the number of knowledge pictures obtained in the above steps, it is necessary to further use artificial intelligence technology to generate supplementary pictures, and instantiate components based on the supplementary pictures and illustration variables or illustration variables in the knowledge picture formatting component. For the specific implementation method of generating supplementary pictures by calling the preset text-generated graph model based on the object generation requirement text, please refer to the prior art, which will not be repeated in the embodiments of this application.
[0126] The page data is a page summary of the low-code platform. The low-code platform can perform page rendering based on the page data to display the page corresponding to the display object to be generated.
[0127] After the server generates the page data, it pushes the page data to the client, so that the client can display the page content of the display object to be generated based on the page data, and generate the display object in response to the display object generation operation triggered by the page content.
[0128] The client can display the page content of the display object to be generated based on the page data, and respond to the display object generation operation triggered by the page content. The specific implementation method of generating the display object refers to the relevant description in the previous embodiment, which will not be repeated here.
[0129] In summary, the display object generation method disclosed in the embodiment of the present application generates object demand information through the object generation demand information input by the user, and obtains the knowledge text and / or knowledge image matching the object generation demand information based on the preset knowledge base. Afterwards, the first preset text-generating model is called based on the object generation demand information and the knowledge text to obtain the structured object description information generated by the first preset text-generating model. Then, based on the structured object description information and / or the knowledge image combination preset components, page data matching the object generation demand information is generated, so that the client generates a display object based on the page data. In the whole process of display object generation, the user only needs to describe the display object to be generated in a brief language. The display object generation system can quickly generate display objects that match the user's needs, which changes the previous page generation method in which designers rack their brains to write copy, find objects, and design pages. Display objects can be intelligently generated by inputting only one sentence, which greatly improves the generation efficiency and speed of display objects.
[0130] Based on the above embodiments, the present application also discloses a method for generating a display object, such as Fig. 9 The method includes: steps 902 to 912.
[0131] Step 902, obtaining object generation requirement information input by the user through the object creation interface;
[0132] Step 904: acquiring knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base;
[0133] Step 906, calling a first preset text-generating text model based on the object generation requirement information and the knowledge text, and obtaining structured object description information generated by the first preset text-generating text model;
[0134] Step 908, based on the structured object description information and / or the knowledge picture combination preset component, generate page data matching the object generation requirement information;
[0135] Step 910, displaying the page content of the display object to be generated based on the page data;
[0136] Step 912: Generate a display object in response to a display object generation operation triggered by the page content.
[0137] The specific implementation methods of the above steps can be found in the relevant descriptions in the previous embodiments, which will not be repeated here.
[0138] In summary, the display object generation method disclosed in the embodiment of the present application obtains the object generation requirement information input by the user through the object creation interface, and then obtains the knowledge text and / or knowledge image matching the object generation requirement information based on the preset knowledge base, and then calls the first preset text-generating model based on the object generation requirement information and the knowledge text to obtain the structured object description information generated by the first preset text-generating model. Finally, based on the structured object description information and / or the knowledge image combination preset components, page data matching the object generation requirement information is generated, and the page content of the display object to be generated is displayed based on the page data. In response to the display object generation operation triggered by the page content, a display object is generated. In the whole process of display object generation, the user only needs to describe the display object to be generated in a short language, and the designer no longer needs to rack his brains to write copy, find objects, and design page generation methods. The display object can be intelligently generated by inputting only one sentence, which greatly improves the generation efficiency and speed of the display object.
[0139] Based on the above embodiment, the present application also discloses a display object generation system for implementing the above display object generation method. The display object generation system includes: a client and a server. Fig.10 The interactive process describes the implementation method of the display object generation system.
[0140] Step 1002: The client obtains object generation requirement information input by the user through the object creation interface.
[0141] Step 1004: The client sends the object generation requirement information to the server.
[0142] Step 1006: The server obtains the object generation requirement information input by the user.
[0143] Step 1008: The server obtains knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base.
[0144] Step 1010: The server calls a first preset text-generating text model based on the object generation requirement information and the knowledge text to obtain structured object description information generated by the first preset text-generating text model.
[0145] Step 1012: The server generates page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset components.
[0146] Step 1014: The client obtains the page data.
[0147] Step 1016: The client displays the page content of the display object to be generated based on the page data.
[0148] Step 1018: The client generates a display object in response to the display object generation operation triggered by the page content.
[0149] The specific implementation methods of the client and the server performing the above steps refer to the relevant description in the previous embodiments, which will not be repeated here.
[0150] In summary, in the display object generation system disclosed in the embodiment of the present application, after the user inputs the object generation requirement information through the client, the server obtains the knowledge text and / or knowledge image matching the object generation requirement information based on the preset knowledge base, and then calls the first preset text-generating model based on the object generation requirement information and the knowledge text to obtain the structured object description information generated by the first preset text-generating model. Then, the server combines the preset components based on the structured object description information and / or the knowledge image to generate page data matching the object generation requirement information. After the client obtains the page data, it generates a display object based on the page data. In the whole process of display object generation, the user only needs to describe the display object to be generated in a short language. The display object generation system can quickly generate display objects that match the user's needs, which changes the previous page generation method in which designers rack their brains to write copy, find objects, and design pages. Display objects can be intelligently generated by inputting only one sentence, which greatly improves the generation efficiency and speed of display objects.
[0151] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0152] Based on the above embodiment, this embodiment further provides a display object generation device, which is applied to a client, and the device includes:
[0153] An object generation requirement information acquisition module is used to acquire object generation requirement information input by a user through an object creation interface;
[0154] An object generation requirement information sending module, used for sending the object generation requirement information to a server, wherein the object generation requirement information is used for triggering the server to generate page data matching the object generation requirement information;
[0155] A page content generation module, used for displaying the page content of the display object to be generated based on the page data;
[0156] The display object generation module is used to generate a display object in response to a display object generation operation triggered by the page content.
[0157] Optionally, obtaining object generation requirement information input by a user through an object creation interface includes:
[0158] An object description statement input by a user through an object creation interface is obtained, and the object description statement is used as object generation requirement information.
[0159] Optionally, obtaining object generation requirement information input by a user through an object creation interface includes:
[0160] Obtain the object description statement input by the user through the object creation interface;
[0161] Based on the user trigger, the content prompt information and / or picture prompt information of the display object selected by the user is obtained, wherein the content prompt information includes one or more of the following: application domain, page style, page theme, page color tone, and functional module; the picture prompt information includes one or more of the following: insert reference picture, insert manuscript picture;
[0162] The object description statement and / or the content prompt information and / or the picture prompt information are integrated to obtain object generation requirement information.
[0163] Optionally, after displaying the page content of the display object to be generated based on the page data, the method further includes:
[0164] In response to a user's editing operation on the page content, updating the page content based on the editing operation, wherein the editing operation includes one or more of the following: deleting a content item, adding a content item, and modifying content item information;
[0165] Display the updated content of the page.
[0166] Optionally, the content item information includes: a title, and the updating of the page content based on the editing operation in response to the user's editing operation on the page content includes one or more of the following methods:
[0167] In response to the user triggering an intelligent copy generation operation for the title, displaying a title copy replacement configuration interface;
[0168] Obtaining title copy generation prompt information input by the user in the title copy replacement configuration interface;
[0169] In response to the user triggering a text replacement operation, based on the current text of the title and the title text generation prompt information, a text generation service is called to obtain the title text generated by the text generation service;
[0170] The page content is updated by replacing the current title copy with the generated title copy.
[0171] Optionally, the content item information includes: content description, and in response to a user's editing operation on the page content, updating the page content based on the editing operation includes:
[0172] In response to the user triggering an intelligent copy generation operation for the content description, displaying a content description copy replacement configuration interface;
[0173] Obtaining content description copy generation prompt information input by the user in the content description copy replacement configuration interface;
[0174] In response to the user triggering a text replacement operation, based on the current text of the content description and the content description text generation prompt information, a text generation service is called to obtain a generated content description text;
[0175] The current text of the content description is replaced by the generated content description text to update the page content.
[0176] Optionally, the content item information includes: a picture, and in response to a user's editing operation on the page content, updating the page content based on the editing operation includes:
[0177] In response to the user triggering a picture replacement operation for the picture, displaying a picture editing interface;
[0178] Based on the intelligent image search operation performed by the user on the image editing interface, image search prompt information input by the user is obtained, and a preset image search service is called based on the image search prompt information to obtain candidate images; or, based on the artificial intelligence image generation operation performed by the user on the image editing interface, raw image prompt information input by the user is obtained, and a preset raw image service is called based on the raw image prompt information to obtain candidate images;
[0179] In response to the user's confirmation selection operation on the candidate image, the image is replaced by the candidate image selected by the user to update the display object.
[0180] Optionally, the generating a display object in response to a display object generating operation triggered by the page content includes:
[0181] In response to a user triggering the generation of an image entry, a display object in the form of an image is generated according to the current page content; and / or,
[0182] In response to a user triggering a publishing website entrance, a display object in the form of a web page is generated according to the current page content, and a web page address of the display object in the form of a web page is published.
[0183] In response to a user triggering a picture generation entry set in the client interface, generating a picture of the display object;
[0184] In response to the user triggering the publishing website entrance set in the client interface, a web page corresponding to the display object is generated, and the address of the web page is published.
[0185] The display object generation device disclosed in the embodiment of the present application is used to implement the above-mentioned display object generation method. The specific implementation of each module of the device refers to the specific implementation of the corresponding steps in the above-mentioned method embodiment, which will not be repeated here.
[0186] In summary, the display object generation device disclosed in the embodiment of the present application obtains the object generation requirement information input by the user through the object creation interface, and then sends the object generation requirement information to the server, triggering the server to generate page data matching the object generation requirement information. Then, the client displays the page content of the display object to be generated based on the page data, and generates the display object in response to the display object generation operation triggered by the page content. In the whole process of display object generation, the user only needs to describe the display object to be generated in a short language. The display object generation system can quickly generate display objects that match the user's needs, changing the previous page generation method from designers racking their brains to write copy, find objects, and design pages to only needing to enter a sentence to intelligently generate display objects, greatly improving the generation efficiency and speed of display objects.
[0187] Based on the above embodiment, this embodiment further provides a display object generation device, which is applied to a server, and the device includes:
[0188] An object generation requirement information acquisition module is used to acquire object generation requirement information input by a user;
[0189] A knowledge matching module, used to obtain knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base;
[0190] An object generation requirement information acquisition module, configured to call a first preset text-generating text model based on the object generation requirement information and the knowledge text, and obtain structured object description information generated by the first preset text-generating text model;
[0191] A display object generation module is used to generate page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset components, and the page data is used to generate a display object.
[0192] Optionally, the generating page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset component includes:
[0193] Acquire the target application domain that matches the object generation requirement information;
[0194] Parsing the structured object description information to obtain the number of pictures included in the display object and the floor structure of content items matched by the display object;
[0195] Acquire a target component that matches the target application domain and the obtained content item floor structure from preset components;
[0196] In response to the number of the pictures being greater than the number of the knowledge pictures, a preset text-generated graph model is called based on the object generation requirement text to obtain a supplementary picture generated by the preset text-generated graph model; the target component is instantiated based on the supplementary picture, the knowledge picture and the text content to generate page data matching the object generation requirement information;
[0197] In response to the number of pictures being less than or equal to the number of knowledge pictures, the target component is instantiated based on the knowledge pictures and the text content, and page data matching the object generation requirement information is generated.
[0198] Optionally, the object generation requirement information includes: requirement description text, and the acquiring of knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base includes:
[0199] Converting the requirement description text into a first vector;
[0200] Based on the first vector and the second vector of each knowledge text in the preset text knowledge base, respectively calculate the first similarity between the requirement description text and each of the knowledge texts, and obtain the knowledge text matching the object generation requirement information according to the first similarity; and / or,
[0201] Based on the first vector and the third vector of each knowledge image in the preset text image knowledge base, the second similarity between the demand description text and each image text is calculated respectively, and the knowledge image matching the object generation demand information is obtained according to the second similarity.
[0202] Optionally, the acquiring, according to the first similarity, a knowledge text matching the object generation requirement information includes:
[0203] In response to the existence of a third similarity, selecting at least one of the knowledge texts corresponding to the third similarity as a knowledge text matching the object generation requirement information, wherein the third similarity is: the first similarity greater than or equal to a first preset threshold;
[0204] In response to the existence of a fourth similarity, a second preset text-generating model is used to generate a knowledge text matching the object generation requirement information based on the knowledge text corresponding to the fourth similarity, wherein the fourth similarity is: the first similarity greater than a second preset threshold and less than the first preset threshold.
[0205] Optionally, acquiring a knowledge picture matching the object generation requirement information according to the second similarity includes:
[0206] In response to the existence of a fifth similarity, selecting at least one knowledge picture corresponding to the fifth similarity as knowledge matching the object generation requirement information, wherein the fifth similarity is: the second similarity greater than or equal to a third preset threshold;
[0207] In response to the absence of the fifth similarity, a knowledge graph matching the object generation requirement information is generated using a preset text graph model based on the object generation requirement information.
[0208] Optionally, the calling a first preset text-generated text model based on the object generation requirement information and the knowledge text to obtain structured object description information generated by the first preset text-generated text model includes:
[0209] Based on the object generation requirement information and the text knowledge, a prompt word is generated according to a preset template, wherein the prompt word includes: a protocol of the structured object description information to be generated;
[0210] A first preset text-generated text model is called based on the prompt word to obtain structured object description information generated by the first preset text-generated text model.
[0211] The display object generation device disclosed in the embodiment of the present application is used to implement the above-mentioned display object generation method. The specific implementation of each module of the device refers to the specific implementation of the corresponding steps in the above-mentioned method embodiment, which will not be repeated here.
[0212] In summary, the display object generation device disclosed in the embodiment of the present application, after obtaining the object generation requirement information input by the user, obtains the knowledge text and / or knowledge image matching the object generation requirement information based on the preset knowledge base, and then calls the first preset text-generating model based on the object generation requirement information and the knowledge text to obtain the structured object description information generated by the first preset text-generating model, and then, based on the structured object description information and / or the knowledge image combination preset components, generates page data matching the object generation requirement information, so that the client generates a display object based on the page data. In the whole process of display object generation, the user only needs to describe the display object to be generated in a short language, and the display object generation system can quickly generate a display object that matches the user's needs, which changes the previous page generation method in which designers rack their brains to write copy, find objects, and design pages. Display objects can be intelligently generated by inputting only one sentence, which greatly improves the generation efficiency and speed of display objects.
[0213] Based on the above embodiments, the present application also discloses a display object generating device, the device comprising:
[0214] An object generation requirement information acquisition module is used to acquire the object generation requirement information input by the user through the object creation interface;
[0215] A knowledge acquisition module, used to acquire knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base;
[0216] A structured object description information generation module, configured to call a first preset text-generating model based on the object generation requirement information and the knowledge text, and obtain structured object description information generated by the first preset text-generating model;
[0217] A page data generation module, used to generate page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset components;
[0218] A page content generation module, used for displaying the page content of the display object to be generated based on the page data;
[0219] The display object generation module is used to generate a display object in response to a display object generation operation triggered by the page content.
[0220] The display object generation device disclosed in the embodiment of the present application is used to implement the above-mentioned display object generation method. The specific implementation of each module of the device refers to the specific implementation of the corresponding steps in the above-mentioned method embodiment, which will not be repeated here.
[0221] In summary, the display object generation device disclosed in the embodiment of the present application obtains the object generation requirement information input by the user through the object creation interface, and then obtains the knowledge text and / or knowledge image matching the object generation requirement information based on the preset knowledge base, and then calls the first preset text-generating model based on the object generation requirement information and the knowledge text to obtain the structured object description information generated by the first preset text-generating model. Finally, based on the structured object description information and / or the knowledge image combination preset components, page data matching the object generation requirement information is generated, and the page content of the display object to be generated is displayed based on the page data. In response to the display object generation operation triggered by the page content, a display object is generated. In the whole process of display object generation, the user only needs to describe the display object to be generated in a short language, and the designer no longer needs to rack his brains to write copy, find objects, and design page generation methods. The display object can be intelligently generated by inputting only one sentence, which greatly improves the generation efficiency and speed of the display object.
[0222] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0223] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the embodiment of the present application.
[0224] The embodiment of the present application also provides an electronic device, comprising: a processor, and a memory connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described in the embodiment of the present application. In the embodiment of the present application, the electronic device includes a server, a terminal device, and other devices.
[0225] The embodiment of the present application also discloses a computer program product, including a computer program / computer executable instructions, characterized in that when the computer program / computer executable instructions are executed by a processor in an electronic device, the method described in the embodiment of the present application is implemented.
[0226] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as a server (cluster), a terminal, etc. Fig.11 An exemplary apparatus 1100 that can be used to implement various embodiments described in this application is schematically shown.
[0227] For one embodiment, Fig.11 An exemplary apparatus 1100 is shown having one or more processors 1102, a control module (chip set) 1104 coupled to at least one of the (one or more) processors 1102, a memory 1106 coupled to the control module 1104, a non-volatile memory (NVM) / storage device 1108 coupled to the control module 1104, one or more input / output devices 1110 coupled to the control module 1104, and a network interface 1112 coupled to the control module 1104.
[0228] The processor 1102 may include one or more single-core or multi-core processors, and the processor 1102 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 1100 can be used as a server, terminal, or other device described in the embodiments of the present application.
[0229] In some embodiments, the apparatus 1100 may include one or more computer-readable media (e.g., memory 1106 or NVM / storage device 1108) having instructions 1114 and one or more processors 1102 combined with the one or more computer-readable media and configured to execute the instructions 1114 to implement a module to perform the actions described in the present disclosure.
[0230] For one embodiment, the control module 1104 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1102 and / or any suitable device or component in communication with the control module 1104 .
[0231] The control module 1104 may include a memory controller module to provide an interface to the memory 1106. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0232] The memory 1106 may be used, for example, to load and store data and / or instructions 1114 for the device 1100. For one embodiment, the memory 1106 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 1106 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0233] For one embodiment, control module 1104 may include one or more input / output controllers to provide an interface to NVM / storage device 1108 and input / output device(s) 1110 .
[0234] For example, NVM / storage 1108 may be used to store data and / or instructions 1114. NVM / storage 1108 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0235] NVM / storage device 1108 may include storage resources that are part of the device on which apparatus 1100 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 1108 may be accessed via (one or more) input / output devices 1110 over a network.
[0236] (One or more) input / output devices 1110 may provide an interface for the apparatus 1100 to communicate with any other appropriate device, and the input / output device 1110 may include a communication component, an audio component, a sensor component, etc. The network interface 1112 may provide an interface for the apparatus 1100 to communicate through one or more networks, and the apparatus 1100 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as Bluetooth, WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0237] For one embodiment, at least one of the processor(s) 1102 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 1104. For one embodiment, at least one of the processor(s) 1102 may be packaged together with the logic of one or more controllers of the control module 1104 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1102 may be integrated on the same die with the logic of one or more controllers of the control module 1104. For one embodiment, at least one of the processor(s) 1102 may be integrated on the same die with the logic of one or more controllers of the control module 1104 to form a system-on-chip (SoC).
[0238] In various embodiments, the device 1100 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 1100 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 1100 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0239] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0240] The embodiment of the present application also provides an electronic device, including: a processor; and a memory, on which executable code is stored, and when the executable code is executed, the processor executes one or more methods as described in the embodiment of the present application. In the embodiment of the present application, the memory can store various data, such as target files, file and application association data, and user behavior data, so as to provide a data basis for various processing.
[0241] The embodiments of the present application also provide one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes one or more methods described in the embodiments of the present application.
[0242] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0243] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0244] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0245] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0246] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0247] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0248] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0249] The above is a detailed introduction to a display object generation method, a display object generation system, an electronic device, a storage medium and a computer program product provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for generating a display object, applied to a client, characterized in that: The method comprises: Obtain object generation requirement information input by the user through the object creation interface; Sending the object generation requirement information to a server, wherein the object generation requirement information is used to trigger the server to generate page data matching the object generation requirement information; Displaying the page content of the display object to be generated based on the page data; In response to a display object generation operation triggered by the page content, a display object is generated.
2. The method according to claim 1, characterized in that The obtaining of object generation requirement information input by the user through the object creation interface includes: An object description statement input by a user through an object creation interface is obtained, and the object description statement is used as object generation requirement information.
3. The method according to claim 1, characterized in that The obtaining of object generation requirement information input by the user through the object creation interface includes: Obtain the object description statement input by the user through the object creation interface; Based on a user trigger, obtaining content prompt information and / or picture prompt information of the display object selected by the user; The object description statement and / or the content prompt information and / or the picture prompt information are integrated to obtain object generation requirement information.
4. The method according to claim 1, characterized in that: After displaying the page content of the display object to be generated based on the page data, the method further includes: In response to a user's editing operation on the page content, updating the page content based on the editing operation, wherein the editing operation includes one or more of the following: deleting a content item, adding a content item, and modifying content item information; Display the updated content of the page.
5. The method according to claim 4, characterized in that The content item information includes: a title, and the updating of the page content based on the editing operation in response to the user's editing operation on the page content includes one or more of the following methods: In response to the user triggering an intelligent copy generation operation for the title, displaying a title copy replacement configuration interface; Obtaining title copy generation prompt information input by the user in the title copy replacement configuration interface; In response to the user triggering a text replacement operation, based on the current text of the title and the title text generation prompt information, a text generation service is called to obtain the title text generated by the text generation service; The page content is updated by replacing the current title copy with the generated title copy.
6. The method according to claim 4, characterized in that The content item information includes: content description, and the response to the user's editing operation on the page content, updating the page content based on the editing operation, includes: In response to the user triggering an intelligent copy generation operation for the content description, displaying a content description copy replacement configuration interface; Obtaining content description copy generation prompt information input by the user in the content description copy replacement configuration interface; In response to the user triggering a text replacement operation, based on the current text of the content description and the content description text generation prompt information, a text generation service is called to obtain a generated content description text; The current text of the content description is replaced by the generated content description text to update the page content.
7. The method according to claim 4, characterized in that The content item information includes: a picture, and in response to a user's editing operation on the page content, updating the page content based on the editing operation includes: In response to the user triggering a picture replacement operation for the picture, displaying a picture editing interface; Based on the intelligent image search operation performed by the user on the image editing interface, image search prompt information input by the user is obtained, and a preset image search service is called based on the image search prompt information to obtain candidate images; or, based on the artificial intelligence image generation operation performed by the user on the image editing interface, raw image prompt information input by the user is obtained, and a preset raw image service is called based on the raw image prompt information to obtain candidate images; In response to the user's confirmation selection operation on the candidate image, the image is replaced by the candidate image selected by the user to update the display object.
8. The method according to claim 1, characterized in that The generating of the display object in response to the display object generating operation triggered by the page content includes: In response to a user triggering the generation of an image entry, a display object in the form of an image is generated according to the current page content; and / or, In response to a user triggering a publishing website entrance, a display object in the form of a web page is generated according to the current page content, and a web page address of the display object in the form of a web page is published.
9. A method for generating a display object, applied to a server, characterized in that: The method comprises: Obtain object generation requirement information input by the user; Based on a preset knowledge base, obtaining knowledge text and / or knowledge image matching the object generation requirement information; Based on the object generation requirement information and the knowledge text, a first preset text-generated text model is called to obtain structured object description information generated by the first preset text-generated text model; Based on the structured object description information and / or the knowledge picture combination preset component, page data matching the object generation requirement information is generated, and the page data is used to generate a display object.
10. The method according to claim 9, characterized in that The step of generating page data matching the object generation requirement information based on the structured object description information and / or the knowledge picture combination preset component includes: Acquire the target application domain that matches the object generation requirement information; Parsing the structured object description information to obtain the number of pictures included in the display object and the floor structure of content items matching the display object; Acquire a target component that matches the target application domain and the obtained content item floor structure from preset components; In response to the number of the pictures being greater than the number of the knowledge pictures, a preset text-generated graph model is called based on the object generation requirement text to obtain a supplementary picture generated by the preset text-generated graph model; the target component is instantiated based on the supplementary picture, the knowledge picture and the text content to generate page data matching the object generation requirement information; In response to the number of pictures being less than or equal to the number of knowledge pictures, the target component is instantiated based on the knowledge pictures and the text content, and page data matching the object generation requirement information is generated.
11. The method according to claim 9, characterized in that The object generation requirement information includes: requirement description text, and the step of obtaining knowledge text and / or knowledge image matching the object generation requirement information based on a preset knowledge base includes: Converting the requirement description text into a first vector; Based on the first vector and the second vector of each knowledge text in the preset text knowledge base, respectively calculate the first similarity between the requirement description text and each of the knowledge texts, and obtain the knowledge text matching the object generation requirement information according to the first similarity; and / or, Based on the first vector and the third vector of each knowledge image in the preset text image knowledge base, the second similarity between the demand description text and each image text is calculated respectively, and the knowledge image matching the object generation demand information is obtained according to the second similarity.
12. The method according to claim 11, characterized in that The acquiring, according to the first similarity, a knowledge text matching the object generation requirement information includes: In response to the existence of a third similarity, selecting at least one of the knowledge texts corresponding to the third similarity as a knowledge text matching the object generation requirement information, wherein the third similarity is: the first similarity greater than or equal to a first preset threshold; In response to the existence of a fourth similarity, a second preset text-generating model is used to generate a knowledge text matching the object generation requirement information based on the knowledge text corresponding to the fourth similarity, wherein the fourth similarity is: the first similarity greater than a second preset threshold and less than the first preset threshold.
13. The method according to claim 11, characterized in that The acquiring, according to the second similarity, a knowledge picture matching the object generation requirement information includes: In response to the existence of a fifth similarity, selecting at least one knowledge picture corresponding to the fifth similarity as knowledge matching the object generation requirement information, wherein the fifth similarity is: the second similarity greater than or equal to a third preset threshold; In response to the absence of the fifth similarity, a knowledge graph matching the object generation requirement information is generated using a preset text graph model based on the object generation requirement information.
14. The method according to claim 9, characterized in that The calling of a first preset text-generated text model based on the object generation requirement information and the knowledge text to obtain structured object description information generated by the first preset text-generated text model includes: Based on the object generation requirement information and the text knowledge, a prompt word is generated according to a preset template, wherein the prompt word includes: a protocol of the structured object description information to be generated; A first preset text-generated text model is called based on the prompt word to obtain structured object description information generated by the first preset text-generated text model.
15. A method for generating a display object, characterized in that: The method comprises: Obtain object generation requirement information input by the user through the object creation interface; Based on a preset knowledge base, obtaining knowledge text and / or knowledge image matching the object generation requirement information; Based on the object generation requirement information and the knowledge text, a first preset text-generated text model is called to obtain structured object description information generated by the first preset text-generated text model; Based on the structured object description information and / or the knowledge picture combination preset component, generate page data matching the object generation requirement information; Displaying the page content of the display object to be generated based on the page data; In response to a display object generation operation triggered by the page content, a display object is generated.
16. A display object generation system, characterized in that: The system comprises: a client and a server, wherein: The client is used to execute the display object generation method according to any one of claims 1 to 8; The server is used to execute the display object generation method according to any one of claims 9 to 14.
17. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 15 when executed by a processor.
19. A computer program product comprising a computer program / computer executable instructions, characterized in that: When the computer program / computer executable instructions are executed by a processor in an electronic device, the method according to any one of claims 1 to 15 is implemented.
Citation Information
Cited By
Functional task processing method and device, electronic equipment and storage medium
CN119621271A
Page building method and device and medium
CN120010827A
A method, apparatus, and medium for page building
CN120010827B
Information processing method and device and electronic equipment
CN120909475A
Display object generation method and system, electronic device, and storage medium
WO2025256319A1
