CN110780861A - Method, system and storage medium for application development based on artificial intelligence - Google Patents

Method, system and storage medium for application development based on artificial intelligence Download PDF

Info

Publication number
CN110780861A
CN110780861A CN201910851877.4A CN201910851877A CN110780861A CN 110780861 A CN110780861 A CN 110780861A CN 201910851877 A CN201910851877 A CN 201910851877A CN 110780861 A CN110780861 A CN 110780861A
Authority
CN
China
Prior art keywords
application
application server
artificial intelligence
session data
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910851877.4A
Other languages
Chinese (zh)
Inventor
黄海
沈仕宗
余松森
黎有
钟亮明
林波
高秀敏
阮小艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Golden Degree Mdt Infotech Ltd
Original Assignee
Guangzhou Golden Degree Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Golden Degree Mdt Infotech Ltd filed Critical Guangzhou Golden Degree Mdt Infotech Ltd
Priority to CN201910851877.4A priority Critical patent/CN110780861A/en
Publication of CN110780861A publication Critical patent/CN110780861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, a system and a storage medium based on artificial intelligence application development, wherein the development method mainly comprises the following steps: a user inputs conversation data through a text box at a client; the cloud platform receives session data input by a user through a text box, submits the session data to the application server, and establishes information communication between the user and the artificial intelligence; after receiving session data sent by a client, an application server enters an AI algorithm model and obtains instruction data through a related algorithm; the application server processes the instruction data and the session data and returns an instruction result; after receiving the instruction result, the client executes the returned instruction result through the local script language and responds to the effect on the cloud platform; the method based on artificial intelligence application development provided by the invention can improve the efficiency of application development, improve the reusability and reduce the application development cost and the maintenance cost.

Description

Method, system and storage medium for application development based on artificial intelligence
Technical Field
The invention relates to the technical field of artificial intelligence application, in particular to a method, a system and a storage medium based on artificial intelligence application development.
Background
At present, in the field of software development, artificial intelligence application is slowly activated, and is valued by various large software service providers, and an artificial intelligence-based SAAS platform is also continuously pushed to the market, such as Temple and the like; in order to quickly construct an application based on artificial intelligence, a small software manufacturer tries to select a third-party service provider, but the third-party service provider generally only provides a related calling inlet and a method for extracting information by using a specially provided script language, and a specific business logic needs to be realized by the software manufacturer and issued on a server so as to complete the whole artificial intelligence application development process; however, the development of artificial intelligence application by adopting the above method has low development efficiency, and when the service is required to be upgraded, the service code of a software manufacturer or even the script code of a third-party service provider needs to be adjusted, so that the maintenance cost is high.
It is seen that improvements and enhancements to the prior art are needed.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, an object of the present invention is to provide a method, a system and a storage medium for artificial intelligence application development, wherein the method for artificial intelligence application development can effectively improve the efficiency of application development, improve reusability, and reduce the cost of application development and maintenance.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for application development based on artificial intelligence comprises the following steps:
s100, a user inputs session data through a text box at a client;
s200, the cloud platform receives session data input by a user through a text box, submits the session data to an application server, and establishes information exchange between the user and artificial intelligence;
s300, after receiving session data sent by a client, an application server enters an AI algorithm model and obtains instruction data through a related algorithm;
s400, the application server processes the instruction data and the session data and returns an instruction result;
and S500, after receiving the instruction result, the client executes the returned instruction result through the local script language, and responds to the effect on the cloud platform.
In the method for developing an application based on artificial intelligence, the step S300 specifically includes the steps of:
s301, after receiving session data of a client, an application server enters an AI algorithm model;
s302, the application server reads a component library arranged in a system database, and then the component library and the session data are put into a cosine similarity algorithm;
s303, returning a result set with numbers by a cosine similarity algorithm, and putting the result set with the largest numbers on the top of the result set by a bubble sorting algorithm;
s304, if the number of the results at the top end of the result set is equal to 1, outputting the results as instruction data;
if the number of the results at the top end of the result set is more than 1, entering a probability algorithm, and returning a result closest to the user requirement as instruction data according to certain weight setting;
and if the number of results at the top of the result set is less than 1, outputting a null value.
In the method for developing the application based on the artificial intelligence, the component library comprises a plurality of function components, the function components respectively correspond to an application type and an entry parameter, and the function components comprise an application execution module and an instruction result return module.
In the method for developing an application based on artificial intelligence, the step S400 specifically includes the steps of:
s401, the application server judges the type of the application to be executed by the user according to the instruction data;
s402, the application server extracts entry parameters needed by the application from the session data according to the type of the application to be executed;
s403, the application server analyzes the entry parameters, obtains the function components in the component library, executes the application and returns the instruction result.
In the method for developing an application based on artificial intelligence, the step S300 further includes:
s305, the application server issues a calling interface, and the calling interface is issued by an http protocol or an https protocol.
In the method for developing the application based on the artificial intelligence, the transmission format of the instruction result is json.
The invention also correspondingly provides a system based on the artificial intelligence application development, wherein the system based on the artificial intelligence application development comprises the following components: the system comprises a cloud platform, an application server and a client, wherein the application server is respectively connected with the cloud platform and the client;
the cloud platform is used for receiving session data input by a user at a client through a text box and submitting the session data to an application server, and establishing information exchange between the user and the AI;
the application server is used for entering an AI algorithm model after receiving the session data and obtaining instruction data through a related algorithm;
the application server is used for processing the session data and the instruction data and returning an instruction result.
The invention also provides a storage medium, wherein the storage medium stores a program based on artificial intelligence application development, and the program based on artificial intelligence application development realizes the steps of the method based on artificial intelligence application development when being executed by a processor.
Advantageous effects
Compared with the prior art, the invention provides a method, a system and a storage medium based on artificial intelligence application development, resources are obtained on a cloud platform through AI, the effect to be realized by the application is achieved, the advantages of the accumulated component library are fully exerted, the existing resources are reasonably utilized, and direct or indirect help is provided for developers, so that higher development efficiency is achieved, the development period is shortened, the development and maintenance cost is reduced, and the reusability is improved.
Drawings
FIG. 1 is a logic diagram of a method for artificial intelligence based application development provided by the present invention;
FIG. 2 is a flowchart of step S300 provided by the present invention;
FIG. 3 is a flowchart of step S400 provided by the present invention;
FIG. 4 is a schematic flow chart illustrating the process of obtaining instruction data according to the present invention;
FIG. 5 is a functional block diagram of a system for artificial intelligence application development in accordance with the present invention.
Detailed Description
The invention provides a method, a system and a storage medium based on artificial intelligence application development, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a method for application development based on artificial intelligence, comprising the following steps:
s100, the user inputs conversation data through a text box at the client.
In actual operation, when conversation communication is carried out, various interfaces can be selected, the invention adopts a communication interface of a chat-like tool made by html5, the upper part of the general interface is information communication content between a user and an AI, and the lower part of the general interface is an information input box and a sending button.
S200, the cloud platform receives session data input by a user through a text box, submits the session data to an application server, and establishes information exchange between the user and artificial intelligence;
s300, after receiving session data sent by a client, an application server enters an AI algorithm model and obtains instruction data through a related algorithm;
s400, the application server processes the instruction data and the session data and returns an instruction result;
and S500, after receiving the instruction result, the client executes the returned instruction result through the local script language, and responds to the effect on the cloud platform.
Further, referring to fig. 2 and fig. 4, the step S300 specifically includes the steps of:
s301, after receiving session data of a client, an application server enters an AI algorithm model;
s302, the application server reads a component library arranged in a system database, and then the component library and the session data are put into a cosine similarity algorithm; the arithmetic formula of the cosine similarity algorithm is as follows
Figure BDA0002197224070000051
Wherein A and B are both vectors.
And S303, returning a result set with numbers, such as a (0.8) and b (0.2) … …, by a cosine similarity algorithm, and putting the maximum number at the top of the result set by a bubble sorting algorithm.
S304, if the number of the results at the top end of the result set is equal to 1, outputting the results as instruction data;
if the number of the results at the top end of the result set is more than 1, entering a probability algorithm, and returning a result closest to the user requirement as instruction data according to certain weight setting;
if the number of the results at the top end of the result set is less than 1, outputting a result null value; the application server returns a null value and the client displays "the application cannot be executed".
Further, the component library comprises a plurality of function components, the function components respectively correspond to an application type and an entry parameter, and the function components comprise an application execution module and an instruction result return module.
Taking weather forecast as an example, the application type of the function component is weather forecast, aiming at obtaining the weather condition of a certain city, and the entrance parameter can be set as the name of the city, and is a character string; executing the application through an application execution module, wherein the application execution module refers to a method for executing the application, such as searching the weather condition of the city through network resources; the instruction result returning module is used for returning the result after the application is executed, for example, the instruction result can be a character string of weather information about the city, and is expressed by json data, and the structure is { "return result": result information "," status ": 0", "return type": and "}.
Further, referring to fig. 3, the step S400 specifically includes the steps of:
s401, the application server judges the type of the application to be executed by the user according to the instruction data;
s402, the application server extracts entry parameters needed by the application from the session data according to the type of the application to be executed;
s403, the application server analyzes the entry parameters, obtains the function components in the component library, executes the application and returns the instruction result.
Taking weather forecast as an example, if the application server acquires instruction data of the weather forecast from the session data, the type of the application to be executed is the weather forecast, the entry parameter value is a corresponding city for which the weather forecast needs to be acquired, the application server extracts city information from the session data, acquires a function component capable of realizing the weather forecast from a component library, inputs the entry parameter, executes the application and returns an instruction result; in the actual operation process, the entry parameters are random, so that the entry parameters can be judged in a plurality of combination modes of encoding range, regular expression and dictionary matching, and meanwhile, in order to improve the accuracy, for example, accurate data such as city names, a public dictionary can be directly set, so that the entry parameters can be conveniently analyzed and processed.
Further, referring to fig. 2, the step S300 further includes:
s305, the application server issues a calling interface, and the calling interface is issued by an http or https protocol; and issuing a calling interface to facilitate the use of a third party.
Preferably, the transmission format of the instruction result is json, which is convenient for a third party to use by a user at a mobile phone end.
Referring to fig. 5, the present invention further provides a system based on artificial intelligence application development, wherein the system based on artificial intelligence application development includes: the system comprises a cloud platform, an application server and a client, wherein the application server is respectively connected with the cloud platform and the client;
the cloud platform is used for receiving session data input by a user at a client through a text box and submitting the session data to an application server, and establishing information exchange between the user and the AI;
the application server is used for entering an AI algorithm model after receiving the session data and obtaining instruction data through a related algorithm;
the application server is used for processing the session data and the instruction data and returning an instruction result;
and after receiving the instruction result, the client executes the returned instruction result through the local script language, and has a corresponding effect on the cloud platform.
The invention also provides a storage medium correspondingly, wherein the storage medium stores a program based on artificial intelligence application development, and the program based on artificial intelligence application development realizes the steps of the method based on artificial intelligence application development when being executed by a processor; in the present embodiment, the storage medium may be, but is not limited to, a memory, a magnetic disk, an optical disk, and the like.
In summary, the present invention provides a method, a system and a storage medium for artificial intelligence application development, wherein the method comprises: a user inputs conversation data through a text box at a client; the cloud platform receives session data input by a user through a text box, submits the session data to the application server, and establishes information communication between the user and the artificial intelligence; after receiving session data sent by a client, an application server enters an AI algorithm model and obtains instruction data through a related algorithm; the application server processes the instruction data and the session data and returns an instruction result; after receiving the instruction result, the client executes the returned instruction result through the local script language and responds to the effect on the cloud platform; the invention obtains resources on the cloud platform through AI, achieves the effect to be realized by application, fully exerts the advantages of the accumulated component library, reasonably utilizes the existing resources, provides direct or indirect help for developers, achieves higher development efficiency, reduces development period, reduces development and maintenance cost and improves reusability.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which may be stored in any computer-readable storage medium, and may be executed by related hardware, such as a processor, a controller, and the like.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may be made by those skilled in the art, and all such equivalents and modifications should fall within the scope of the appended claims.

Claims (8)

1. A method for application development based on artificial intelligence is characterized by comprising the following steps:
s100, a user inputs session data through a text box at a client;
s200, the cloud platform receives session data input by a user through a text box, submits the session data to an application server, and establishes information exchange between the user and artificial intelligence;
s300, after receiving session data sent by a client, an application server enters an AI algorithm model and obtains instruction data through a related algorithm;
s400, the application server processes the instruction data and the session data and returns an instruction result;
and S500, after receiving the instruction result, the client executes the returned instruction result through the local script language, and responds to the effect on the cloud platform.
2. The method for application development based on artificial intelligence according to claim 1, wherein the step S300 specifically includes the steps of:
s301, after receiving session data of a client, an application server enters an AI algorithm model;
s302, the application server reads a component library arranged in a system database, and then the component library and the session data are put into a cosine similarity algorithm;
s303, returning a result set with numbers by a cosine similarity algorithm, and putting the result set with the largest numbers on the top of the result set by a bubble sorting algorithm;
s304, if the number of the results at the top end of the result set is equal to 1, outputting the results as instruction data;
if the number of the results at the top end of the result set is more than 1, entering a probability algorithm, and returning a result closest to the user requirement as instruction data according to certain weight setting;
and if the number of results at the top of the result set is less than 1, outputting a null value.
3. The method of claim 2, wherein the component library comprises a plurality of function components, each of the function components corresponds to an application type and an entry parameter, and the function components comprise an application execution module and an instruction result return module.
4. The method for application development based on artificial intelligence according to claim 3, wherein the step S400 specifically comprises the steps of:
s401, the application server judges the type of the application to be executed by the user according to the instruction data;
s402, the application server extracts entry parameters needed by the application from the session data according to the type of the application to be executed;
s403, the application server analyzes the entry parameters, obtains the function components in the component library, executes the application and returns the instruction result.
5. The method for application development based on artificial intelligence according to claim 2, wherein the step S300 further comprises:
s305, the application server issues a calling interface, and the calling interface is issued by an http protocol or an https protocol.
6. The method of claim 1, wherein the command result is transmitted in json.
7. A system for artificial intelligence based application development, the system comprising: the system comprises a cloud platform, an application server and a client, wherein the application server is respectively connected with the cloud platform and the client;
the cloud platform is used for receiving session data input by a user at a client through a text box and submitting the session data to an application server, and establishing information exchange between the user and the AI;
the application server is used for entering an AI algorithm model after receiving the session data and obtaining instruction data through a related algorithm;
the application server is used for processing the session data and the instruction data and returning an instruction result.
8. A storage medium storing a program for artificial intelligence application development, the program for artificial intelligence application development when executed by a processor implementing the steps of the method for artificial intelligence application development according to any one of claims 1 to 6.
CN201910851877.4A 2019-09-10 2019-09-10 Method, system and storage medium for application development based on artificial intelligence Pending CN110780861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910851877.4A CN110780861A (en) 2019-09-10 2019-09-10 Method, system and storage medium for application development based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910851877.4A CN110780861A (en) 2019-09-10 2019-09-10 Method, system and storage medium for application development based on artificial intelligence

Publications (1)

Publication Number Publication Date
CN110780861A true CN110780861A (en) 2020-02-11

Family

ID=69383421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910851877.4A Pending CN110780861A (en) 2019-09-10 2019-09-10 Method, system and storage medium for application development based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN110780861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782184A (en) * 2020-06-30 2020-10-16 北京百度网讯科技有限公司 Apparatus, method, apparatus and medium for performing a customized artificial intelligence production line

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004227405A (en) * 2003-01-24 2004-08-12 Toshiba Corp Web application server, web application server system, application control method and program
WO2015195734A1 (en) * 2014-06-19 2015-12-23 Thomson Licensing Natural language control of a gateway device
CN108628607A (en) * 2018-03-16 2018-10-09 广州市金度信息科技有限公司 A kind of method, system and storage medium based on artificial intelligence assisting software development

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004227405A (en) * 2003-01-24 2004-08-12 Toshiba Corp Web application server, web application server system, application control method and program
WO2015195734A1 (en) * 2014-06-19 2015-12-23 Thomson Licensing Natural language control of a gateway device
CN108628607A (en) * 2018-03-16 2018-10-09 广州市金度信息科技有限公司 A kind of method, system and storage medium based on artificial intelligence assisting software development

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782184A (en) * 2020-06-30 2020-10-16 北京百度网讯科技有限公司 Apparatus, method, apparatus and medium for performing a customized artificial intelligence production line
CN111782184B (en) * 2020-06-30 2022-01-07 北京百度网讯科技有限公司 Apparatus, method, apparatus and medium for performing a customized artificial intelligence production line
US11954011B2 (en) 2020-06-30 2024-04-09 Beijing Baidu Netcom Science And Technology Co., Ltd. Apparatus and method for executing customized artificial intelligence production line

Similar Documents

Publication Publication Date Title
US20220078140A1 (en) Directed acyclic graph based framework for training models
US20210304075A1 (en) Batching techniques for handling unbalanced training data for a chatbot
KR101777392B1 (en) Central server and method for processing of voice of user
KR20210130790A (en) Identification of key-value pairs in documents
US20220230000A1 (en) Multi-factor modelling for natural language processing
CN112970059A (en) Electronic device for processing user words and control method thereof
US20230061999A1 (en) Semantic parser including a coarse semantic parser and a fine semantic parser
CN117296058A (en) Variant Inconsistent Attacks (VIA) as a simple and effective method of combating attacks
CN110780861A (en) Method, system and storage medium for application development based on artificial intelligence
KR102205686B1 (en) Method and apparatus for ranking candiate character and method and device for inputting character
WO2022040547A1 (en) Techniques for providing explanations for text classification
US20230139397A1 (en) Deep learning techniques for extraction of embedded data from documents
US20230317058A1 (en) Spoken language processing method and apparatus, and storage medium
EP4246365A1 (en) Webpage identification method and apparatus, electronic device, and medium
US20220229991A1 (en) Multi-feature balancing for natural language processors
CN112165634B (en) Method for establishing audio classification model and method and device for automatically converting video
CN114490969A (en) Question and answer method and device based on table and electronic equipment
CN114138943A (en) Dialog message generation method and device, electronic equipment and storage medium
CN112765022A (en) Webshell static detection method based on data stream and electronic device
US20240028963A1 (en) Methods and systems for augmentation and feature cache
US20230134149A1 (en) Rule-based techniques for extraction of question and answer pairs from data
CN117493530B (en) Resource demand analysis method, device, electronic equipment and storage medium
US20220262359A1 (en) Electronic device and operation method thereof
US20230161963A1 (en) System and techniques for handling long text for pre-trained language models
CN109460454A (en) The interactive voice intelligent automation searching system and method for industrial supply chain data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211