Interaction method and device based on large language model, storage medium and electronic device

Through the interaction method based on large language models, the interaction between software development auxiliary applications and large language models is used to solve the problem of repetitive coding work in software development, improve development efficiency and reduce costs, and realize diversified development auxiliary functions. .

CN117289841BActive Publication Date: 2024-09-17RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311588507.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2024-09-17
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

During the software development process, developers need to deal with a large amount of repetitive and tedious coding work, resulting in low development efficiency, and existing programming assistance tools cannot meet diverse needs.

Method used

Using an interaction method based on large language models, through the interaction between software development auxiliary applications and large language models, template libraries and interactive interfaces are provided to implement AI interaction to assist development, such as technical Q&A, system design and demand analysis, to improve development efficiency.

Benefits of technology

It improves the work efficiency of developers, reduces development costs, implements a variety of development auxiliary interactive functions, and reduces duplication of work and error rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117289841B
    Figure CN117289841B
Patent Text Reader

Abstract

The present application discloses an interaction method and device based on a large language model, a storage medium and an electronic device, including: in response to an access request to a software development auxiliary application, outputting a main interface of the software development auxiliary application; the software development auxiliary application is a software development auxiliary application plug-in; the software development auxiliary application interface includes a software development auxiliary template library, a dialogue area and an interaction isolation area; in response to triggering a template in the software development auxiliary template library, according to the development auxiliary request information in the template, outputting AI interaction information corresponding to the development auxiliary request information in the dialogue area; the software development auxiliary template library includes custom development auxiliary templates and / or development auxiliary templates uploaded to a development template collection; in response to an interaction identifier corresponding to the AI ​​interaction information in the dialogue area, outputting the established mapping relationship between the AI ​​interaction information and the interaction identifier in the form of an interaction identifier in the interaction isolation area, thereby improving the work efficiency of developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a computer application technology, and more particularly to an interaction method and device based on a large language model. The present application also relates to a computer storage medium and an electronic device.

[0002] With the continuous development of computer technology and Internet technology, application software carried on electronic devices emerges in an endless stream, which not only meets entertainment needs, but also meets the needs of life, work and other aspects.

[0003] However, the development process of application software includes a series of development work such as software requirement analysis, algorithms for implementing software functions, software architecture design, coding, adjustment, testing, etc. In this process, developers often need to deal with a lot of repetitive and tedious coding work, such as generating comments, writing unit tests, performing code reviews and code optimization, etc. Therefore, a lot of time is needed for research and exploration. Summary of the invention

[0004] The present application provides an interactive method based on a large language model to solve the problem of development efficiency in the prior art.

[0005] The present application provides an interaction method based on a large language model, comprising:

[0006] In response to an access request to a software development auxiliary application, a main interface of the software development auxiliary application is output; the software development auxiliary application is a software development auxiliary application plug-in associated with a software development platform and constructed based on a large language model, and the software development auxiliary application interface is an interactive interface for assisting software development; the software development auxiliary application interface includes a software development auxiliary template library, a dialogue area, and an interactive isolation area;

[0007] In response to triggering a template in the software development auxiliary template library, according to the development auxiliary request information in the template, outputting AI interaction information corresponding to the development auxiliary request information in the dialogue area; the software development auxiliary template library includes the custom development auxiliary template and / or the development auxiliary template uploaded to the development template collection;

[0008] In response to the interaction identifier corresponding to the AI ​​interaction information in the conversation area, the established mapping relationship between the AI ​​interaction information and the interaction identifier is output in the interaction isolation area in the form of the interaction identifier.

[0009] In some embodiments, in response to the access request to the software development assistance application, outputting the main interface of the software development assistance application includes:

[0010] In response to triggering an entry control of the software development assistance application displayed on a display device, sending an access request event;

[0011] Outputting the main page of the software development assistance application according to the access request event, in response to triggering of the entry control of the software development assistance application displayed on the display device, sending the access request event, includes:

[0012] In response to a first operation trigger of a global entry control of the software development assistance application displayed in the display device, the access request event is sent; or, in response to a first operation trigger of a status bar entry control of the software development assistance application in the status bar of the display device, the access request event is sent.

[0013] In some embodiments, it also includes:

[0014] In response to a second operation trigger on the global entry control or the status bar entry control, a processing interface for processing the software development auxiliary application is output.

[0015] In some embodiments, in response to triggering a template in the software development assistance template library, outputting AI interaction information corresponding to the development assistance request information in the dialog area according to the development assistance request information in the template includes:

[0016] In response to triggering the custom development auxiliary template, outputting a template interface;

[0017] In response to the development assistance request information input to the template interface, AI interaction information corresponding to the development assistance request information is output on the software development assistance application main interface.

[0018] In some embodiments, it also includes:

[0019] In response to a request to add a template to the software development auxiliary template library, outputting an interface for adding a template;

[0020] In response to a confirmation operation on a defined template addition in the template addition interface, the template addition is output in the software development auxiliary template library.

[0021] In some embodiments, it also includes:

[0022] In response to a selection operation of a code in the software development platform, outputting a floating menu;

[0023] In response to triggering the auxiliary control in the floating menu, outputting AI interaction information corresponding to the auxiliary control in the dialogue area in the output software development auxiliary application interface, including:

[0024] When the auxiliary control is triggered as a unit test generation control, unit test information corresponding to the method or class selected from the software development platform code range is output in the dialog area;

[0025] When the auxiliary control is triggered to interpret the code control, the annotation information corresponding to the target code selected from the code range of the software development platform is output in the dialog area;

[0026] When the auxiliary control is triggered as a check control, function adjustment information corresponding to the method or class selected from the software development platform code range is output in the dialog area;

[0027] When the auxiliary control is triggered as a chat control, dialogue information is output in the dialogue area.

[0028] In some embodiments, it also includes:

[0029] In response to the generated annotation information, inserting the annotation information into a position corresponding to the target code selected from the software development platform code range;

[0030] In response to the generated function adjustment information, automatically modifying the method or class selected from the software development platform code range;

[0031] and / or,

[0032] In response to triggering the code requirement function module in the main interface of the software development assistance application, activating the dialogue input area of ​​the main interface of the software development assistance application;

[0033] In response to the development code requirement information input in the dialogue input area, outputting AI interaction information corresponding to the development code requirement information in the dialogue area;

[0034] and / or,

[0035] In response to an upload operation on the custom development auxiliary template, uploading the custom development auxiliary template to the development template set;

[0036] and / or,

[0037] In response to a switching operation on the interaction identifier in the interaction isolation area, the AI ​​interaction information corresponding to the interaction identifier is switched and displayed in the software development auxiliary application interface.

[0038] In some embodiments, at least one of the following interactive operations is also included:

[0039] In response to triggering of a typesetting control in the software development auxiliary application interface, typeset the document information displayed in the dialog area of ​​the software development auxiliary application interface to determine a typeset document; and switch the document information in the dialog area to a display mode of the typeset file;

[0040] In response to triggering an export control in the software development auxiliary application interface, exporting the AI ​​interaction information in the dialogue area to a target location;

[0041] In response to triggering a deletion control in the software development auxiliary application interface, clearing the AI ​​interaction information in the dialogue area;

[0042] In response to triggering a hidden control in the software development auxiliary application interface, hiding the interactive isolation area;

[0043] In response to triggering a dialog control in the software development auxiliary application interface, a newly added dialog area is displayed in the software development auxiliary application interface.

[0044] The present application also provides an interactive device based on a large language model, comprising:

[0045] A first output unit is used to output a main interface of the software development auxiliary application in response to an access request to the software development auxiliary application; the software development auxiliary application is a software development auxiliary application plug-in associated with a software development platform and constructed based on a large language model, and the software development auxiliary application interface is an interactive interface for assisting software development; the software development auxiliary application interface includes a software development auxiliary template library, a dialogue area, and an interactive isolation area;

[0046] A second output unit is configured to, in response to triggering a template in the software development auxiliary template library, output AI interaction information corresponding to the development auxiliary request information in the dialog area according to the development auxiliary request information in the template; the software development auxiliary template library includes the custom development auxiliary template and / or the development auxiliary template uploaded to the development template collection;

[0047] The third output unit is used to respond to the interaction identifier corresponding to the AI ​​interaction information in the conversation area, and output the established mapping relationship between the AI ​​interaction information and the interaction identifier in the form of the interaction identifier in the interaction isolation area.

[0048] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0049] When the program is read and executed by a processor, the interaction method based on the large language model as described above is executed.

[0050] The present application also provides an electronic device, including:

[0051] processor;

[0052] The memory is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, the interaction method based on the large language model as described above is executed.

[0053] Compared with the prior art, this application has the following advantages:

[0054] An interactive method based on a large language model provided in the present application outputs a main interface of a software development auxiliary application on a display carrier by requesting access to the software development auxiliary application. Since the software development auxiliary application is a software development auxiliary application plug-in that is associated with a software development platform and is constructed based on the large language model, developers can implement AI interaction with the large language model based on different templates in a template library provided in the software development auxiliary application, thereby providing different auxiliary functions in the development process based on the software development platform, for example: being able to implement auxiliary functions such as technical question answering, system design, and demand analysis, quickly obtain required development information, improve the work efficiency of developers, and reduce development costs at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a flow chart of an interaction method based on a large language model provided by this application.

[0056] Figure 2 It is a schematic diagram of an embodiment of the main interface of a software development auxiliary application in an interactive method based on a large language model provided by the present application.

[0057] Figure 3 It is a schematic diagram of an implementation example of an entry control in an interaction method based on a large language model provided in the present application.

[0058] Figure 4 It is a schematic diagram of an embodiment of a floating menu in an interaction method based on a large language model provided by the present application.

[0059] Figure 5 It is a schematic diagram of an embodiment of developing a template set in an interaction method based on a large language model provided in the present application.

[0060] Figure 6 It is a structural diagram of an interactive device based on a large language model provided by the present application.

[0061] Figure 7 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0062] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0063] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.

[0064] The above background technology provides a general description of the source of the invention concept of the present application. Combined with the background technology, it can be known that in the process of software development, developers face a large amount of repetitive and tedious coding work, such as generating comments, writing unit tests, performing code reviews and code optimization, etc., which will result in a lot of time spent and development efficiency is not guaranteed. Based on this, programming auxiliary tools are provided in the prior art, but most of them can only provide simple code automatic completion and error prompt functions, and cannot meet the diverse needs in development scenarios. In view of this, the present application combines a large language model to provide an efficient development programming auxiliary tool, which can realize development auxiliary interaction for multiple needs, and provide assistance for improving development efficiency, reducing duplication of work and reducing error rates. An interactive method based on a large language model provided by the present application will be described in detail below.

[0065] like Figure 1 As shown, Figure 1 This is a flow chart of an interaction method based on a large language model provided by the present application. The interaction method may include:

[0066] Step S101: in response to an access request to a software development auxiliary application, outputting a main interface of the software development auxiliary application; the software development auxiliary application is a software development auxiliary application plug-in associated with a software development platform and constructed based on a large language model, and the software development auxiliary application interface is an interactive interface for assisting software development; the software development auxiliary application interface includes a displayed software development auxiliary template library, a dialogue area, and an interactive isolation area;

[0067] Step S102: in response to triggering a template in the software development auxiliary template library, outputting AI interaction information corresponding to the development auxiliary request information in the dialog area according to the development auxiliary request information in the template; the software development auxiliary template library includes the custom development auxiliary template and / or the development auxiliary template uploaded to the development template collection;

[0068] Step S103: In response to the interaction identifier corresponding to the AI ​​interaction information in the conversation area, the established mapping relationship between the AI ​​interaction information and the interaction identifier is output in the interactive isolation area in the form of the interaction identifier.

[0069] Before describing the above steps S101 to S104 one by one, the technical terms involved in this application are explained first.

[0070] In recent years, the field of artificial intelligence (AI) has experienced tremendous growth and changes, and natural language processing (NLP) is one of the areas that has made rapid progress. As an important component of natural language processing, the large language model (LLM) is mainly used to predict the probability distribution of the next word or character in a natural language text. Specifically, the LLM model is a natural language processing model based on deep learning. It can learn the grammar and semantics of natural language, so as to generate human-readable text and realize human-computer interaction.

[0071] Prompt: It can be understood as guiding the large language model to generate relevant natural language text. It can be seen as question information or dialogue information sent to the large language model, or instructions that need to be sent to the large language model, such as: an input text description of the question information, etc.

[0072] The software development auxiliary application can be in the form of a plug-in, which is called by various software development platforms through an API interface to provide software development auxiliary functions for the software development platform during the software development process, which is of course not limited to development auxiliary functions.

[0073] The software development platform may also be referred to as a software development application, which is used for program arrangement and the like.

[0074] like Figure 2 As shown, Figure 2 1 is a schematic diagram of an embodiment of a main interface of a software development auxiliary application in an interaction method based on a large language model provided by the present application; the purpose of step S101 is to output the main interface of the software development auxiliary application through an access request, and the specific implementation process may include:

[0075] Step S101 - 1 : in response to triggering of an entry control of the software development assistance application displayed on a display device, sending an access request event;

[0076] Step S101 - 2 : outputting the main page of the software development assistance application according to the access request event.

[0077] By monitoring the operation events on the display device, it is determined whether the entry control of the software development auxiliary application is triggered, and the software development auxiliary application is called through the corresponding interface (API), so that the software development auxiliary application is output on the display device in the form of a plug-in.

[0078] like Figure 3 As shown, Figure 3 It is a schematic diagram of an embodiment of an entry control in an interaction method based on a large language model provided by the present application, wherein the entry control may be a status bar population control located in the status bar of the display device, a global entry control located in the display screen of the display device, and any one or more combinations of set shortcut keys. The so-called entry control to Anu may be in the form of a floating control, which is designated as the global top layer of the display screen display information, and in response to dragging the floating control, the floating control displayed in any display form may be displayed at any position of the global top layer of the display screen;

[0079] The status bar entry control and the shortcut key can be bound to the output of the software development auxiliary application main interface through custom registration. The status bar is located in the status bar of the display screen of the display device.

[0080] Therefore, the specific implementation process of step S101-1 may include:

[0081] Step S101 - 11 : in response to a first operation trigger on a global entry control of the software development assistance application displayed on the display device, sending the access request event.

[0082] Step S101 - 12 : in response to a first operation triggering a status bar entry control of the software development auxiliary application in the status bar of the display device, sending the access request event.

[0083] In order to facilitate quick and convenient understanding of the functions and status of the software development auxiliary application plug-in, as well as quick exit, it may also include:

[0084] In response to the second operation triggering of the global entry control or the status bar entry control, a processing interface for processing the software development auxiliary application is output. For example: monitoring the right-click triggering event of the global entry control or the status bar entry control, outputting a pop-up interface, the pop-up interface includes any one or more combinations of controls of check update, to be developed, and exit, and in response to the triggering of the control in the pop-up interface, the corresponding function viewing of the software development auxiliary application is realized.

[0085] like Figure 2As shown, the main interface of the software development assistance application may include: several interactive function areas, such as: a software development assistance template library, an interactive isolation area, a dialogue area for AI dialogue interaction, etc.

[0086] In order to facilitate developers to quickly implement code writing through the software development auxiliary application plug-in, improve development efficiency and reduce development costs, some commonly used instructions (Prompt) can be stored as templates through custom development auxiliary templates, and corresponding development functions can be implemented by clicking on the templates. Therefore, in the step S102, a software development auxiliary template library is output in the software development auxiliary application interface, and the software development auxiliary template library may include custom development auxiliary templates and / or development auxiliary templates uploaded to the development template collection. The development auxiliary template may include: a third-party development auxiliary template, and may also include, in response to an upload operation of the custom development auxiliary template, uploading the custom development auxiliary template to the development template collection.

[0087] like Figure 5 As shown, Figure 5 This is a schematic diagram of an embodiment of a development template set in an interaction method based on a large language model provided by the present application; the so-called development template set can be understood as a development auxiliary applet template that has been developed and uploaded by a third-party developer, and the uploaded templates are concentrated in the development template set. The so-called custom development auxiliary template can be a applet template written by a developer. Figure 2 As shown, the software development auxiliary template library is located at the bottom of the dialogue area of ​​the AI ​​dialogue interaction, and the software development auxiliary template library may include multiple custom development auxiliary templates.

[0088] For the custom development auxiliary template, the process of implementing AI dialogue interaction in step S102 may include:

[0089] Step S102-11: in response to triggering the custom development auxiliary template, outputting a template interface;

[0090] Step S102-12: In response to the development assistance request information input into the template interface, outputting AI interaction information corresponding to the development assistance request information on the software development assistance application main interface.

[0091] The steps S102-11 and S102-12 may be click operations on the custom development assistance template in the software development assistance template library, output the template interface, input the development assistance request information in the template interface and after confirmation, return to the software development assistance application interface, and output the development assistance request information and feedback information corresponding to the development assistance request information, i.e., AI interaction information, in the dialogue area of ​​the software development assistance application interface.

[0092] For the third-party development auxiliary template in the development template set, the process of specifically implementing the AI ​​dialogue interaction in step S102 may include:

[0093] Step S102-21: in response to triggering the development template set, outputting a third-party template interface; wherein the development template set may include multiple third-party templates.

[0094] Step S102-22: In response to the development assistance request information input according to the third-party template in the third-party template interface, the development assistance request information and feedback information corresponding to the development assistance request information, i.e., AI interaction information, are output in the main interface of the software development assistance application.

[0095] Different developers may have different development requirements. To meet the diversified development assistance requirements of developers, templates can be added based on the software development assistance template library, which may include:

[0096] Step S102-a1: in response to a request to add a template to the software development auxiliary template library, output a template adding interface; for example, click on the "+" displayed in the software development auxiliary template library to generate a request to add a template. In response to the request, output the template adding interface.

[0097] Step S102-a2: In response to the confirmation operation of adding a defined template in the adding template interface, the adding template is output in the software development auxiliary template library. For example: in the adding template interface, a custom template can be added by writing an instruction (Prompt), that is, by using ${} in the Prompt, the custom content is written into {}, and after confirmation, the custom template is added first. The added custom template will be displayed in the software development auxiliary template library, and when using the template, the corresponding dialogue interaction function can be realized through the large language model by identifying the variables in {}.

[0098] Of course, the above is the addition of templates by clicking "+" in this embodiment. In some other embodiments, the template can be replaced by modifying the existing templates in the software development auxiliary template library. For example, the modification of the existing template Prompt, that is, modifying the variables in ${} in Prompt, replacing the variables in {} with the target variables, can achieve template reuse and reduce resource waste. It is understandable that in order to improve development efficiency and reduce development costs, the software development auxiliary template library can include multiple different custom Prompts, each Prompt ${} has different variables.

[0099] The purpose of this application is to improve development efficiency, reduce development costs, and achieve assistance between the software development auxiliary application and the software development platform. Figure 4 As shown, Figure 4 is a schematic diagram of an embodiment of a floating menu in an interaction method based on a large language model provided by the present application; in this embodiment, the development information in the software development platform can also be processed accordingly with the aid of the software development auxiliary application, which may specifically include:

[0100] Step S102-b1: in response to the selection operation of the code in the software development platform, outputting a floating menu;

[0101] Step S102-b2: In response to triggering the auxiliary control in the floating menu, outputting AI interaction information corresponding to the auxiliary control in the dialogue area in the output software development auxiliary application interface.

[0102] The step S102-b1 may specifically monitor the selection events of the selection operation, such as the trigger events of the mouse pressing, dragging, and releasing. The mouse trigger event is stored in the form of a sequence, and the sequence features are identified. When a sequence such as "press down, drag, drag, drag, drag, drag...., release" is found, it can be determined to be a selection operation behavior, and a corresponding floating menu will pop up. Of course, it can also be in response to the selection operation of the code in the software development platform, and the right key wakes up the floating menu, that is, the output of the floating menu can be an automatic output in response to the selection operation or a right key trigger. The floating menu includes auxiliary controls for performing corresponding operations on the selected code, such as: unit test generation, code interpretation, performance check, casual chat, etc. The unit test generation can be understood as the generation of unit tests; the code interpretation can be understood as the annotation explanation of the selected code; the performance check can be understood as the ability to evaluate the code's operating efficiency and response speed. Therefore, the specific implementation process of the step S102-b2 may include:

[0103] Step S102-b2-1: When the auxiliary control is triggered as a single test generation control, the unit test information corresponding to the method or class selected in the software development platform code range is output in the dialog area. That is, a method or a class in the code is selected, and the corresponding test class is output in the dialog area by clicking the single test generation control.

[0104] Step S102-b2-2: When the auxiliary control is triggered as an explanation code control, comment information corresponding to the target code selected from the software development platform code range is output in the dialog area; that is, after selecting the code, click the explanation code control, then the software development auxiliary application will automatically infer the working significance of the selected code based on the functional logic, naming and other information of the control, and generate summary information, which is output in the form of comments in the dialog area, and can generate input and output parameter descriptions of the code.

[0105] Step S102-b2-3: When the auxiliary control is triggered as a check control, the function adjustment information corresponding to the method or class selected in the software development platform code range is output in the dialog area; that is, a method or a class in the code is selected, and the control is generated by clicking the single test. The software development auxiliary application will automatically check whether there is any performance optimization part in the selected content.

[0106] Step S102-b2-4: When the auxiliary function control is triggered as a chat control, the dialogue information is output in the dialogue area; that is, a free dialogue is conducted without any context.

[0107] In order to improve the rapid processing of the selected code and improve the development efficiency, the step S102-b2-2 may be executed: in response to the generated annotation information, the annotation information is inserted into the position corresponding to the target code selected in the software development platform code range; or the step S102-b2-3 may be executed: in response to the generated function adjustment information, the method or class selected in the software development platform code range is automatically modified. Thus, the target code selected in the software development platform is automatically optimized.

[0108] In order to achieve the pertinence of development assistance and improve the accuracy of AI interaction information, a code requirement function module can also be output in the software development assistance application interface. In response to the triggering of the code requirement function module, the dialogue input area of ​​the main interface of the software development assistance application is activated; in response to the development code requirement information input in the dialogue input area, the AI ​​interaction information corresponding to the development code requirement information is output in the dialogue area, that is, the dialogue area will form an AI interaction area for code generation, and the code requirement details are carried out based on the development code requirement information until feedback information that meets the development code requirement information is output.

[0109] The goal of step S103 is to output the AI ​​interaction information established in the conversation area for different templates or different needs each time in the form of interaction identifiers in the interaction isolation area. Based on the triggering of the interaction identifier, the conversation area can be switched among multiple different conversation interactions, thereby achieving isolation between the AI ​​interaction information generated by different needs, and then being able to quickly view the AI ​​interaction information corresponding to different needs. Therefore, it can specifically include: in response to the switching operation of the interaction identifier in the interaction isolation area, switching the display of the AI ​​interaction information corresponding to the interaction identifier in the software development auxiliary application interface.

[0110] It is understandable that in this embodiment, a variety of AI interaction information corresponding to different needs can be performed in the dialogue area. In order to achieve interaction isolation, a new dialogue area can be established before each AI interaction, and then the mapping relationship between the established AI interaction information and the interaction identifier is triggered to achieve the switching of the AI ​​interaction information in the dialogue area. The establishment of a new dialogue area can be achieved by clicking a new dialogue control in the main interface of the software development auxiliary application, for example: the "+" control at the bottom of the interaction isolation area.

[0111] In order to improve development efficiency, the software development auxiliary application may also include one or more of the following interactive operation controls, such as: typesetting controls, export controls, clear controls, etc. Then, in order to facilitate the copying of the AI ​​interactive information in the dialogue area to directly meet the requirements of the code format in the software development platform, a typesetting control is also displayed in the software development auxiliary application interface. This embodiment may further include:

[0112] In response to triggering the typesetting control in the software development auxiliary application interface, the document information displayed in the dialog area of ​​the software development auxiliary application interface is typeset to determine the typeset document; the document information in the dialog area is switched to the display mode of the typesetting file; for example, the triggering of the typesetting control can display the code displayed in the dialog area in the markdown original text form. Markdown is a lightweight markup language that is widely used in writing. This embodiment mainly involves the display form of the code markup language.

[0113] In order to improve development efficiency, an export control is also arranged in the software development auxiliary application interface. In this embodiment, it can also include: in response to the triggering of the export control in the software development auxiliary application interface, the AI ​​interaction information in the dialogue area is exported to the target location. The target location can be the location of the target code in the software development auxiliary application interface that needs to be replaced, or the location of the target code that needs to be modified. A delete control can also be arranged in the software development auxiliary application interface, so that the AI ​​interaction information in the dialogue area can be cleared or emptied in response to the triggering of the delete control. A hidden control can also be arranged in the software development auxiliary application interface, so that the interactive isolation area can be hidden in response to the triggering of the hidden control. A dialogue control can also be arranged in the software development auxiliary application interface, and in response to the triggering of the dialogue control, a newly added dialogue area is displayed in the software development auxiliary application interface.

[0114] The above is a description of an embodiment of an interaction method based on a large language model provided in the present application. The interaction method outputs the main interface of the software development auxiliary application on a display carrier by requesting access to the software development auxiliary application. Since the software development auxiliary application is a software development auxiliary application plug-in that is associated with a software development platform and is constructed based on a large language model, developers can interact with the large language model according to different functional modules provided in the software development auxiliary application, thereby providing different auxiliary functions in the development process based on the software development platform, for example: it can realize auxiliary functions such as technical question answering, system design and demand analysis, quickly obtain required development information, improve the work efficiency of developers, and reduce development costs at the same time.

[0115] The above is a specific description of an embodiment of an interaction method based on a large language model provided by the present application. Corresponding to the embodiment of an interaction method based on a large language model provided above, the present application also discloses an embodiment of an interaction device based on a large language model, please refer to Figure 6Since the device embodiment 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. The device embodiment described below is only illustrative.

[0116] like Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of an interactive device based on a large language model provided by the present application, and the interactive device may include:

[0117] The first output unit 601 is used to output the main interface of the software development auxiliary application in response to an access request to the software development auxiliary application; the software development auxiliary application is a software development auxiliary application plug-in associated with the software development platform and constructed based on a large language model, and the software development auxiliary application interface is an interactive interface for assisting software development; the software development auxiliary application interface includes a software development auxiliary template library, a dialogue area, and an interactive isolation area;

[0118] The second output unit 602 is used to respond to the triggering of the template in the software development auxiliary template library, and output the AI ​​interaction information corresponding to the development auxiliary request information in the dialog area according to the development auxiliary request information in the template; the software development auxiliary template library includes the custom development auxiliary template and / or the third-party development auxiliary template uploaded to the development template collection;

[0119] The third output unit 603 is used to respond to the interaction identifier corresponding to the AI ​​interaction information in the conversation area and output the established mapping relationship between the AI ​​interaction information and the interaction identifier in the form of the interaction identifier in the interaction isolation area.

[0120] The first output unit 601 may specifically include: a sending subunit and an output subunit;

[0121] The sending subunit is used to send an access request event in response to triggering the entry control of the software development auxiliary application displayed on the display device;

[0122] The output subunit is used to output the main page of the software development auxiliary application according to the access request event.

[0123] The sending subunit can be specifically used to send the access request event in response to a first operation trigger of a global entry control of the software development assistance application displayed in the display device; or to send the access request event in response to a first operation trigger of a status bar entry control of the software development assistance application in the status bar of the display device.

[0124] In order to facilitate quick and convenient understanding of the functions and status of the software development auxiliary application plug-in, as well as quick exit, it may also include:

[0125] A processing interface output unit is used to output a processing interface for processing the software development auxiliary application in response to a second operation trigger on the global entry control or the status bar entry control.

[0126] For the custom development auxiliary template, the process of specifically implementing the AI ​​dialogue interaction in the second output unit 602 may include: a first output subunit and a second output subunit;

[0127] The first output subunit is used to output a template interface in response to triggering the custom development auxiliary template;

[0128] The second output subunit is used to output AI interaction information corresponding to the development assistance request information on the software development assistance application main interface in response to the development assistance request information input to the template interface.

[0129] Different developers may have different development requirements. To meet the diversified development assistance requirements of developers, templates can be added based on the software development assistance template library, which can specifically include: adding a template interface output unit and adding a template output unit;

[0130] The template adding interface output unit is used to output a template adding interface in response to a request for adding a template to the software development auxiliary template library;

[0131] The template adding output unit is used to output the template adding into the software development auxiliary template library in response to a confirmation operation on the defined template adding interface.

[0132] The purpose of this application is to improve development efficiency, reduce development costs, and achieve assistance between the software development auxiliary application and the software development platform, and may also include: a floating menu output unit and an interactive information output unit;

[0133] The floating menu output unit is used to output a floating menu in response to a selection operation of a code in the software development platform;

[0134] The interaction information output unit is used to output AI interaction information corresponding to the auxiliary control in the dialogue area of ​​the output software development auxiliary application interface in response to triggering the auxiliary control in the floating menu.

[0135] The interactive information output unit may specifically include: a first output subunit, a second output subunit, a third output subunit and a fourth output subunit;

[0136] The first output subunit is used to output unit test information corresponding to the method or class selected from the software development platform code range in the dialog area when the auxiliary control is triggered as a unit test generation control;

[0137] The second output subunit is used to output annotation information corresponding to the target code selected from the software development platform code range in the dialogue area when the auxiliary control is triggered to interpret the code control;

[0138] The third output subunit is used for outputting function adjustment information corresponding to the method or class selected from the software development platform code range in the dialogue area when the auxiliary control is triggered as a check control;

[0139] The fourth output subunit is used to output dialogue information in the dialogue area when the auxiliary control is triggered as a chat control.

[0140] The method may further include: inserting a subunit and modifying a subunit;

[0141] The inserting subunit is used to insert the annotation information into the position corresponding to the target code selected in the software development platform code range in response to the generated annotation information;

[0142] The modification subunit is used to automatically modify the method or class selected from the software development platform code range in response to the generated function adjustment information.

[0143] In order to achieve targeted development assistance and improve the accuracy of AI interaction information, the code requirement function module can also be output in the software development assistance application interface. It can further include: an activation unit and a requirement output unit;

[0144] The activation unit is used to activate the dialogue input area of ​​the main interface of the software development auxiliary application in response to the triggering of the code requirement function module;

[0145] The demand output unit is used to respond to the development code requirement information input in the dialogue input area, and output AI interaction information corresponding to the development code requirement information in the dialogue area, that is, the dialogue area will form an AI interaction area for code generation, and perform code requirement details based on the development code requirement information until feedback information that meets the development code requirement information is output.

[0146] It may further include: an uploading unit, configured to upload the custom development auxiliary template to the development template set in response to an upload operation on the custom development auxiliary template.

[0147] In this embodiment, the AI ​​interaction information established each time for different templates or different needs in the conversation area is output in the interactive isolation area in the form of interaction identifiers. Based on the triggering of the interaction identifier, the conversation area can be switched among multiple different conversation interactions, thereby achieving isolation between the AI ​​interaction information generated by different needs, and then the AI ​​interaction information corresponding to different needs can be quickly viewed. Therefore, it can further include: a switching display unit, which is used to switch and display the AI ​​interaction information corresponding to the interaction identifier in the software development auxiliary application interface in response to the switching operation of the interaction identifier in the interactive isolation area.

[0148] In order to facilitate the copying of the AI ​​interaction information in the dialogue area to directly meet the requirements of the code format in the software development platform, a typesetting control is also displayed in the software development auxiliary application interface. This embodiment may further include: a typesetting unit and a switching display unit;

[0149] The typesetting unit is used to typeset the document information displayed in the dialog area of ​​the software development auxiliary application interface in response to triggering the typesetting control in the software development auxiliary application interface, and determine the typeset document.

[0150] The switching display unit is used to switch the document information in the dialogue area to the display mode of the layout file.

[0151] In order to improve development efficiency, an export control is also arranged in the software development auxiliary application interface. In this embodiment, it can also include: an export unit, which is used to export the AI ​​interaction information in the dialogue area to a target location in response to triggering the export control in the software development auxiliary application interface.

[0152] In order to improve development efficiency, a delete control is arranged in the software development auxiliary application interface. This embodiment may also include: a clearing unit for clearing the AI ​​interaction information in the dialogue area in response to triggering the delete control in the software development auxiliary application interface.

[0153] In order to improve development efficiency, hidden controls may also be arranged in the software development auxiliary application interface. This embodiment may also include: a hiding unit for hiding the interactive isolation area in response to triggering the hidden controls in the software development auxiliary application interface.

[0154] In order to improve development efficiency, a dialog control may be arranged in the software development auxiliary application interface. This embodiment may also include: a new dialog unit for displaying a new dialog area in the software development auxiliary application interface in response to triggering the dialog control in the software development auxiliary application interface.

[0155] The above is a description of an embodiment of an interactive device based on a large language model provided by the present application. For the content of the device embodiment, please refer to the above method embodiment and will not be described in detail here.

[0156] Based on the above, the present application also provides a computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; when the program is read and executed by a processor, it executes the steps involved in the above-mentioned embodiment of the interaction method based on a large language model.

[0157] Based on the above, the present application also provides an electronic device, such as Figure 7 As shown, Figure 7 It is a structural diagram of an electronic device provided by the present application, and the electronic device may include: a processor 701 and a memory 702; the memory 702 is used for a program for processing data generated by a network platform, and when the program is read and executed by the processor, it executes the steps involved in the above-mentioned interaction method based on a large language model.

[0158] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0159] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0160] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0161] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0162] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0163] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. An interactive method based on a large language model, characterized in that: include: In response to a request for access to the software development assistance application, outputting a main interface of the software development assistance application; The software development auxiliary application is a software development auxiliary application plug-in that is built based on a large language model and has an associated relationship with a software development platform, and the software development auxiliary application interface is an interactive interface for assisting software development; The software development auxiliary application interface includes a software development auxiliary template library, a dialogue area and an interactive isolation area; In response to triggering a template in the software development assistance template library, according to the development assistance request information in the template, outputting AI interaction information corresponding to the development assistance request information in the dialogue area; The software development auxiliary template library includes custom development auxiliary templates and / or development auxiliary templates uploaded to the development template collection; In response to the interaction identifier corresponding to the AI ​​interaction information in the conversation area, outputting the established mapping relationship between the AI ​​interaction information and the interaction identifier in the form of the interaction identifier in the interaction isolation area; Wherein, in response to triggering a template in the software development auxiliary template library, outputting AI interaction information corresponding to the development auxiliary request information in the dialog area according to the development auxiliary request information in the template includes: In response to triggering the custom development auxiliary template, outputting a template interface; In response to the development assistance request information input to the template interface, AI interaction information corresponding to the development assistance request information is output on the software development assistance application main interface.

2. The interactive method according to claim 1, characterized in that: The step of outputting the main interface of the software development auxiliary application in response to the access request to the software development auxiliary application comprises: In response to triggering an entry control of the software development assistance application displayed on a display device, sending an access request event; Outputting the main page of the software development assistance application according to the access request event, in response to triggering of the entry control of the software development assistance application displayed on the display device, sending the access request event, includes: In response to a first operation trigger of a global entry control of the software development assistance application displayed in the display device, the access request event is sent; or, in response to a first operation trigger of a status bar entry control of the software development assistance application in the status bar of the display device, the access request event is sent.

3. The interactive method according to claim 2, characterized in that: Also includes: In response to a second operation trigger on the global entry control or the status bar entry control, a processing interface for processing the software development auxiliary application is output.

4. The interactive method according to claim 1, characterized in that: Also includes: In response to a request to add a template to the software development auxiliary template library, outputting an interface for adding a template; In response to a confirmation operation on a defined template addition in the template addition interface, the template addition is output in the software development auxiliary template library.

5. The interactive method according to claim 1, characterized in that: Also includes: In response to a selection operation of a code in the software development platform, outputting a floating menu; In response to triggering the auxiliary control in the floating menu, outputting AI interaction information corresponding to the auxiliary control in the dialogue area in the output software development auxiliary application interface, including: When the auxiliary control is triggered as a unit test generation control, unit test information corresponding to the method or class selected from the software development platform code range is output in the dialog area; When the auxiliary control is triggered to interpret the code control, the annotation information corresponding to the target code selected from the code range of the software development platform is output in the dialog area; When the auxiliary control is triggered as a check control, function adjustment information corresponding to the method or class selected from the software development platform code range is output in the dialog area; When the auxiliary control is triggered as a chat control, dialogue information is output in the dialogue area.

6. The interactive method according to claim 5, characterized in that: Also includes: In response to the generated annotation information, inserting the annotation information into a position corresponding to the target code selected from the software development platform code range; In response to the generated function adjustment information, automatically modifying the method or class selected from the software development platform code range; and / or, In response to triggering the code requirement function module in the main interface of the software development assistance application, activating the dialogue input area of ​​the main interface of the software development assistance application; In response to the development code requirement information input in the dialogue input area, outputting AI interaction information corresponding to the development code requirement information in the dialogue area; and / or, In response to an upload operation on the custom development auxiliary template, uploading the custom development auxiliary template to the development template set; and / or, In response to a switching operation on the interaction identifier in the interaction isolation area, the AI ​​interaction information corresponding to the interaction identifier is switched and displayed in the software development auxiliary application interface.

7. The interactive method according to claim 1, characterized in that: It also includes at least one of the following interactive operations: In response to triggering a typesetting control in the software development auxiliary application interface, typeset the document information displayed in the dialog area of ​​the software development auxiliary application interface to determine a typeset document; Switching the document information in the dialog area to the display mode of the layout file; In response to triggering an export control in the software development auxiliary application interface, exporting the AI ​​interaction information in the dialogue area to a target location; In response to triggering a deletion control in the software development auxiliary application interface, clearing the AI ​​interaction information in the dialogue area; In response to triggering a hidden control in the software development auxiliary application interface, hiding the interactive isolation area; In response to triggering a dialog control in the software development auxiliary application interface, a newly added dialog area is displayed in the software development auxiliary application interface.

8. An interactive device based on a large language model, characterized in that: include: A first output unit, configured to output a main interface of the software development auxiliary application in response to an access request to the software development auxiliary application; The software development auxiliary application is a software development auxiliary application plug-in that is built based on a large language model and has an associated relationship with a software development platform, and the software development auxiliary application interface is an interactive interface for assisting software development; The software development auxiliary application interface includes a software development auxiliary template library, a dialogue area and an interactive isolation area; A second output unit, configured to, in response to triggering a template in the software development assistance template library, output AI interaction information corresponding to the development assistance request information in the dialog area according to the development assistance request information in the template; The software development auxiliary template library includes custom development auxiliary templates and / or development auxiliary templates uploaded to the development template collection; including: in response to triggering the custom development auxiliary template, outputting a template interface; in response to the development auxiliary request information input to the template interface, outputting AI interaction information corresponding to the development auxiliary request information on the main interface of the software development auxiliary application; The third output unit is used to respond to the interaction identifier corresponding to the AI ​​interaction information in the conversation area, and output the established mapping relationship between the AI ​​interaction information and the interaction identifier in the form of the interaction identifier in the interaction isolation area.

9. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed by a processor, the program executes the interaction method based on a large language model as described in any one of claims 1 to 7.

10. An electronic device comprising: processor; A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the interaction method based on a large language model as described in any one of claims 1 to 7 is executed.