Hotel package intelligent live broadcast method and device
By obtaining hotel and package information, using large language models to generate live broadcast content, and adjusting the rhythm according to the status of the live broadcast room, it solves the problem that smart live broadcasts cannot automatically adjust, and improves the level of intelligence and audience experience.
Patent Information
- Application Number
- CN202410743866.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Existing smart live broadcast technology cannot automatically adjust the live broadcast content according to the status during the live broadcast process, resulting in unstable content quality and high operating costs.
By obtaining the target hotel information and package information, the large language model is used to generate live broadcast content, and the live broadcast room status information is obtained in real time, and the live broadcast rhythm and content are adjusted according to the status information.
It improves the intelligence of smart live broadcasts, improves audience experience, and reduces operating costs.
Smart Images

Figure CN118338028B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network live broadcast technology, and in particular to a method and device for intelligent live broadcast of hotel packages. Background Art
[0002] With the rapid development of Internet technology, live streaming has become a popular way of information dissemination and social interaction. From entertainment, education to business promotion, live streaming covers all areas of social life. Especially in the tourism and hotel industries, live streaming can showcase the hotel environment and service features, attract potential customers, and increase brand awareness.
[0003] The advancement of live broadcast technology has brought revolutionary changes to the industry. The application of technologies such as high-definition video transmission, real-time interaction, and data analysis has made the live broadcast experience richer and more efficient. At the same time, the integration of technologies such as artificial intelligence and machine learning has made it possible for live broadcasts to be intelligent. Although live broadcasts have brought convenience, there are also some problems, such as the need for a large amount of human resources during the live broadcast process, the unstable quality of live broadcast content, and the pressure of real-time interaction. The emergence of unmanned live broadcast technology can solve these problems. It reduces dependence on manpower through an automated system, ensures the consistency and professionalism of live broadcast content, and also reduces operating costs. However, at present, unmanned live broadcasts, or intelligent live broadcasts, cannot automatically adjust the live broadcast content according to the status during the live broadcast process. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for intelligent live broadcast of a hotel package to solve the problem in the prior art that intelligent live broadcast cannot automatically adjust the live broadcast according to the status during the live broadcast.
[0005] According to a first aspect of an embodiment of the present application, a method for intelligent live broadcasting of a hotel package is provided, including: obtaining target hotel information of a target hotel and package information of a package to be sold, determining a comparison hotel of the target hotel based on the target hotel information, and obtaining comparison hotel information of the comparison hotel; based on the comparison hotel information, generating introduction information of the comparison hotel using a large language model; based on the target hotel information and the introduction information, generating feature information of the target hotel using a large language model; based on the feature information and the package information, generating content information required for live broadcasting using a large language model; dividing the content information according to punctuation marks to obtain multiple live broadcast statements; performing live broadcasting according to the multiple live broadcast statements, and obtaining status information of the live broadcast room in real time, determining a field control action according to the status information, and adjusting the live broadcasting according to the field control action.
[0006] According to a second aspect of an embodiment of the present application, there is provided an intelligent live broadcast device for a hotel package, comprising: an acquisition module, configured to acquire target hotel information of a target hotel and package information of a package to be sold, determine a comparison hotel of the target hotel based on the target hotel information, and acquire comparison hotel information of the comparison hotel; a first generation module, configured to generate profile information of the comparison hotel based on the comparison hotel information using a large language model; a second generation module, configured to generate feature information of the target hotel based on the target hotel information and the profile information using a large language model; a third generation module, configured to generate content information required for live broadcast based on the feature information and the package information using a large language model; a division module, configured to divide the content information according to punctuation marks to obtain multiple live broadcast statements; a field control module, configured to broadcast live according to the multiple live broadcast statements, and acquire status information of the live broadcast room in real time, determine field control actions according to the status information, and adjust the live broadcast according to the field control actions.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0009] Compared with the prior art, the embodiments of the present application have the following beneficial effects: obtaining the target hotel information of the target hotel and the package information of the package to be sold, determining the comparison hotel of the target hotel based on the target hotel information, and obtaining the comparison hotel information of the comparison hotel; generating the introduction information of the comparison hotel based on the comparison hotel information using a large language model; generating the characteristic information of the target hotel based on the target hotel information and the introduction information; generating the content information required for live broadcast using a large language model based on the characteristic information and the package information; dividing the content information according to punctuation marks to obtain multiple live broadcast statements; broadcasting live according to the multiple live broadcast statements, and obtaining the status information of the live broadcast room in real time, determining the field control action based on the status information, and adjusting the live broadcast according to the field control action. The above-mentioned technical means can solve the problem in the prior art that the intelligent live broadcast cannot automatically adjust the live broadcast according to the status during the live broadcast, thereby improving the intelligence level of the intelligent live broadcast and enhancing the audience experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 This is a flowchart of a method for intelligent live broadcasting of a hotel package provided by an embodiment of the present application;
[0012] Figure 2 It is a flowchart of a method for adjusting live broadcast in real time according to live broadcast status provided by an embodiment of the present application;
[0013] Figure 3 This is a schematic diagram of the structure of a hotel package intelligent live broadcast device provided by an embodiment of the present application;
[0014] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0016] A method and device for intelligent live broadcast of hotel packages according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0017] Figure 1 It is a flow chart of a method for intelligent live broadcast of a hotel package provided in an embodiment of the present application. Figure 1 The hotel package intelligent live broadcast method can be executed by a computer or a server, or by software on the computer or the server. Figure 1 As shown, the hotel package intelligent live broadcast method includes:
[0018] S101, obtaining target hotel information of a target hotel and package information of a package to be sold, determining a comparison hotel for the target hotel based on the target hotel information, and obtaining comparison hotel information of the comparison hotel;
[0019] S102, based on the comparison hotel information, using a large language model to generate brief introduction information of the comparison hotel;
[0020] S103, based on the target hotel information and profile information, generate characteristic information of the target hotel using a large language model;
[0021] S104, based on the feature information and the package information, using the large language model to generate content information required for the live broadcast;
[0022] S105, dividing the content information according to punctuation marks to obtain a plurality of live broadcast statements;
[0023] S106, broadcast live according to the multiple live broadcast statements, and obtain the status information of the live broadcast room in real time, determine the field control action according to the status information, and adjust the live broadcast according to the field control action.
[0024] The target hotel information is the information of the target hotel, and the comparison hotel information is the information of the comparison hotel. Both the target hotel information and the comparison hotel information include: name, address, opening time, hotel location, hotel type (vacation, business travel, family travel, etc.), hotel brand and customer review information, etc. The package to be sold is the room package that the target hotel can provide to customers, such as "double bed room for three days and two nights", "family room + three tickets", etc. The package information includes: name, price, area, indoor facilities, orientation and other room information.
[0025] In order to facilitate comparison and highlight the characteristics of the target hotel, hotels of different types and brands near the target hotel can be used as comparison hotels. Generally, there are multiple comparison hotels.
[0026] Large language models are Large Language Models. You can choose any commonly used model, such as the GPT series. The large language model has been trained in advance and can process the comparison hotel information to obtain the introduction information of the comparison hotel; generate the characteristic information of the target hotel by comparing the target hotel information and the introduction information; and generate the content information required for the live broadcast based on the characteristic information and package information. The obtained content information is divided according to punctuation marks. One sentence or multiple sentences can be used as a live broadcast sentence, so that multiple live broadcast sentences are obtained. Live broadcast according to multiple live broadcast sentences, obtain the status information of the live broadcast room in real time during the live broadcast, determine the field control action based on the status information, and adjust the rhythm of the live broadcast according to the field control action.
[0027] According to the embodiment of the present application, a technical solution is provided to obtain the target hotel information of the target hotel and the package information of the package to be sold, determine the comparison hotel of the target hotel based on the target hotel information, and obtain the comparison hotel information of the comparison hotel; based on the comparison hotel information, generate the introduction information of the comparison hotel using a large language model; based on the target hotel information and the introduction information, generate the characteristic information of the target hotel using a large language model; based on the characteristic information and the package information, generate the content information required for the live broadcast using a large language model; divide the content information according to punctuation marks to obtain multiple live broadcast sentences; broadcast live according to the multiple live broadcast sentences, and obtain the status information of the live broadcast room in real time, determine the field control action according to the status information, and adjust the live broadcast according to the field control action. The above-mentioned technical means can solve the problem in the prior art that the intelligent live broadcast cannot automatically adjust the live broadcast according to the status during the live broadcast process, thereby improving the intelligence level of the intelligent live broadcast and enhancing the audience experience.
[0028] Before broadcasting according to multiple live broadcast statements, you can also set the attribute information of the smart anchor and the venue information of the virtual venue for live broadcast; arrange the live broadcast room according to the virtual venue; and control the smart anchor to broadcast according to multiple live broadcast statements in the live broadcast room. The smart anchor is a virtual anchor for live broadcast. The attribute information of the smart anchor includes the gender, age, speaking style, dressing style, etc. of the smart anchor. The venue information includes virtual props, facilities, backgrounds and scenery in the live broadcast room.
[0029] Figure 2 is a flow chart of a method for adjusting live broadcast in real time according to live broadcast status provided by an embodiment of the present application, such as Figure 2 As shown, the method includes:
[0030] Execute the following loop:
[0031] S201, determining whether i is greater than N, where i is the serial number of the live broadcast statement, the initial value of i is 1, and N is the number of the live broadcast statements;
[0032] S202, when i is greater than N, end the live broadcast;
[0033] S203, when i is less than or equal to N, play the i-th live broadcast statement and obtain the status information of the live broadcast room in real time;
[0034] S204, determining a field control action after playing the i-th live broadcast statement according to the state information;
[0035] S205, adjust the live broadcast according to the field control action after playing the i-th live broadcast statement, i+1.
[0036] The content information is divided according to punctuation marks to obtain N live broadcast statements. If i is greater than N, it means that N live broadcast statements have been played, so the live broadcast ends. If i is less than or equal to N, it means that all live broadcast statements have been played, so the smart anchor is controlled to play the i-th live broadcast statement. i+1 is to update i with the value of i+1.
[0037] Furthermore, field control actions are determined based on the status information, including: the status information includes the number of people, the amount of interaction, whether new viewers have entered the live broadcast room within a preset time, questions raised by viewers and points of interest; the following field control actions are determined based on the status information: welcoming new viewers to join the live broadcast room; displaying the packages to be sold and related packages of the packages to be sold through pop-up windows; repeating live broadcast sentences related to questions raised by viewers; determining whether to pause the live broadcast according to the amount of interaction of the audience; if the number of people in the live broadcast room is less than the preset number of people or the amount of interaction is less than the preset amount of interaction, pausing the live broadcast and playing songs; and providing recommended explanations of points of interest based on points of interest mentioned by viewers.
[0038] The packages to be sold are related to the packages to be sold by calculating the similarity between the package information of other packages and the package information to be sold, and taking other packages with similarity greater than a certain value as related packages. The live broadcast sentences related to the calculation query can also be determined by calculating the similarity.
[0039] Field control actions are used to adjust the rhythm of the live broadcast, including the following actions: welcome new viewers to join the live broadcast room, set some welcome actions and have the smart anchor play "Welcome new viewers"; display the packages to be sold and the related packages of the packages to be sold through pop-up windows, and display the packages in pop-up windows at any position of the live broadcast interface; after the audience asks a question, find the most relevant one from N live broadcast sentences, and repeat the live broadcast sentences related to the audience's question; determine whether to pause during the live broadcast based on the audience's interaction volume, and the relationship between the interaction volume and pause can be set in advance; if the number of people in the live broadcast room is less than the preset number of people or the interaction volume is less than the preset interaction volume, the live broadcast can be paused and songs can be played; for the points of interest mentioned by the audience, recommend explanations of the points of interest, and determine the explanation information corresponding to the points of interest from the feature information and package information by calculating the similarity.
[0040] In some embodiments, questions raised by viewers are received during a live broadcast and answered by the audience: a retrieval model is used to determine retrieval results based on the question; a large language model is used to determine whether the retrieval result is an answer to the question, and when the retrieval result is not an answer to the question, the large language model is used to generate multiple sub-searches based on the question; if so, the audience is answered according to the retrieval results; if not, a multi-hop search is performed using the retrieval model according to the multiple sub-searches to obtain multiple sub-search results, and the audience is answered according to the merged multiple sub-search results.
[0041] The retrieval model is built based on calculating similarity. The retrieval data set of the retrieval model includes feature information, package information, and content information. The retrieval result corresponding to the question is determined from the retrieval data set by calculating similarity. The large language model is trained to determine whether the retrieval result is the answer to the question and generate multiple sub-searches based on the question. Sub-search is that the large language model splits the question into multiple questions, and each question is a sub-search. The retrieval model performs a search for each sub-search. Multi-hop search includes multiple searches. After merging multiple sub-search results, it is answered to the audience as an answer.
[0042] For example, if a question is "How much is Link No. 3?", the search model determines that Link No. 3 costs 200 yuan as the search result, and the large language model is used to determine that the search result is the answer to the question, then the answer of 200 yuan is given to the audience. For another example, if a question is "Does the hotel at Link No. 3 cost breakfast?", the search model determines that Link No. 3 costs 200 yuan as the search result, and the large language model is used to determine that the search result is not the answer to the question. The large language model is used to split "Does the hotel at Link No. 3 provide breakfast" into multiple sub-searches. The first sub-search is "What is the name of the hotel at Link No. 3?", such as "Hotel x", and the second sub-search is "Does Hotel x provide breakfast?". This is the so-called "multi-hop" query). Especially in a conversational environment, more contextual information needs to be introduced, which will be more complicated and require more complex processing logic.
[0043] Before using the large language model to generate brief information of the comparative hotels based on the comparative hotel information, the method also includes: performing a first training on the large language model so that the large language model can generate brief information of the hotels based on the known hotel information; performing a second training on the large language model so that the large language model can generate characteristic information of the hotel based on the information of a hotel and the brief information of the comparative hotels; performing a third training on the large language model so that the large language model can generate content information required for live broadcast based on the characteristic information of the hotel and the package information of the package to be sold; performing a fourth training on the large language model so that the large language model can determine whether the search result is an answer to a question, and generate multiple sub-searches based on the question.
[0044] The first training data set is used to perform the first training on the large language model. The first training data set includes information of multiple hotels and profile information of each hotel obtained in advance. The second training data set is used to perform the second training on the large language model. The second training data set includes information of multiple hotels, profile information of each hotel as a comparison hotel, and feature information of each hotel. The third training data set is used to perform the third training on the large language model. The third training data set includes feature information of multiple hotels and package information of packages to be sold, and content information required for live broadcast of packages to be sold in each hotel. The fourth training data set is used to perform the fourth training on the large language model. The fourth training data set includes multiple pairs of data, each pair of data includes a search result and a question and whether the search result can be used as an answer to the question, multiple questions, and multiple sub-searches of each question.
[0045] In the first training, the information of each hotel is used as the input of the large language model to obtain the output corresponding to each hotel, calculate the loss value between the output corresponding to each hotel and the brief information of each hotel, and optimize the large language model according to the loss value. Other training is similar to the first training and will not be repeated here.
[0046] After the first training of the large language model is completed, the second training is performed on the large language model; after the second training of the large language model is completed, the third training is performed on the large language model; after the third training of the large language model is completed, the fourth training is performed on the large language model.
[0047] The second training is based on the first training, the third training is based on the first training and the second training, and the fourth training is based on the first training, the second training and the third training. Therefore, the large language model is subjected to the first training, the second training, the third training and the fourth training in sequence.
[0048] Based on the target hotel information and profile information, a large language model is used to generate characteristic information of the target hotel, including: obtaining the latest news about the target hotel through a search engine; based on the target hotel information, the latest news and profile information, a large language model is used to generate characteristic information of the target hotel.
[0049] Get the latest news about the target hotel online, including real-time, high-frequency news, hot spots of the target hotel, etc. The large language model generates the characteristic information of the target hotel based on the target hotel information, the latest news and the brief information. The latest news serves as the supplementary information of the target hotel.
[0050] Then, the second training data set is used to perform a second training on the large language model. The second training data set includes information and latest news of multiple hotels, profile information of comparative hotels of each hotel, and feature information of each hotel.
[0051] In the second training, the information and latest news of each hotel and the brief introduction information of its comparative hotels are used as the input of the large language model to obtain the corresponding output of each hotel. The loss value between the corresponding output of each hotel and the characteristic information of each hotel is calculated, and the large language model is optimized based on the loss value.
[0052] All the above-mentioned optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, and will not be described one by one here.
[0053] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0054] Figure 3 Schematic diagram of a hotel package intelligent live broadcast device provided by the present application embodiment. Figure 3 As shown, the hotel package intelligent live broadcast device includes:
[0055] The acquisition module 301 is configured to acquire target hotel information of a target hotel and package information of a package to be sold, determine a comparison hotel of the target hotel based on the target hotel information, and acquire comparison hotel information of the comparison hotel;
[0056] The first generating module 302 is configured to generate brief information of the compared hotel based on the compared hotel information by using a large language model;
[0057] The second generating module 303 is configured to generate characteristic information of the target hotel using a large language model based on the target hotel information and the profile information;
[0058] The third generating module 304 is configured to generate content information required for live broadcasting by using a large language model based on the feature information and the package information;
[0059] The division module 305 is configured to divide the content information according to punctuation marks to obtain a plurality of live broadcast statements;
[0060] The field control module 306 is configured to perform live broadcast according to multiple live broadcast statements, obtain status information of the live broadcast room in real time, determine the field control action according to the status information, and adjust the live broadcast according to the field control action.
[0061] According to the embodiment of the present application, a technical solution is provided to obtain the target hotel information of the target hotel and the package information of the package to be sold, determine the comparison hotel of the target hotel based on the target hotel information, and obtain the comparison hotel information of the comparison hotel; based on the comparison hotel information, generate the introduction information of the comparison hotel using a large language model; based on the target hotel information and the introduction information, generate the characteristic information of the target hotel using a large language model; based on the characteristic information and the package information, generate the content information required for the live broadcast using a large language model; divide the content information according to punctuation marks to obtain multiple live broadcast sentences; broadcast live according to the multiple live broadcast sentences, and obtain the status information of the live broadcast room in real time, determine the field control action according to the status information, and adjust the live broadcast according to the field control action. The above-mentioned technical means can solve the problem in the prior art that the intelligent live broadcast cannot automatically adjust the live broadcast according to the status during the live broadcast process, thereby improving the intelligence level of the intelligent live broadcast and enhancing the audience experience.
[0062] In an optional embodiment, the field control module 306 is further configured to set the attribute information of the intelligent anchor and the venue information of the virtual venue for live broadcast; arrange the live broadcast room according to the virtual venue; and control the intelligent anchor to broadcast live in the live broadcast room according to multiple live broadcast statements. The intelligent anchor is a virtual anchor for live broadcast, and the attribute information of the intelligent anchor includes the gender, age, speaking style, dressing style, etc. of the intelligent anchor. The venue information includes virtual props, facilities, backgrounds, and scenery in the live broadcast room.
[0063] In an optional embodiment, the field control module 306 is further configured to execute the following loop: determine whether i is greater than N, where i is the serial number of the live broadcast statement, the initial value of i is 1, and N is the number of live broadcast statements; when i is greater than N, end the live broadcast; when i is less than or equal to N, play the i-th live broadcast statement, and obtain the status information of the live broadcast room in real time; determine the field control action after playing the i-th live broadcast statement based on the status information; adjust the live broadcast according to the field control action after playing the i-th live broadcast statement, i+1.
[0064] In an optional embodiment, the field control module 306 is also configured to provide status information including the number of people, the amount of interaction, whether new viewers have entered the live broadcast room within a preset time, questions raised by viewers, and points of interest; determine the following field control actions based on the status information: welcome new viewers to join the live broadcast room; display the packages to be sold and related packages of the packages to be sold through pop-up windows; repeat live broadcast statements related to questions raised by viewers; determine whether to pause during the live broadcast based on the amount of interaction of the audience; if the number of people in the live broadcast room is less than the preset number of people or the amount of interaction is less than the preset amount of interaction, pause the live broadcast and play songs; and recommend and explain points of interest based on points of interest mentioned by viewers.
[0065] In an optional embodiment, the field control module 306 is also configured to receive questions raised by viewers during the live broadcast and answer them on its own: determine the search results based on the questions using the search model; determine whether the search results are answers to the questions using the large language model, and when the search results are not answers to the questions, generate multiple sub-searches based on the questions using the large language model; if so, answer the viewers according to the search results; if not, perform a multi-hop search using the search model according to the multiple sub-searches to obtain multiple sub-search results, and answer the viewers according to the merged multiple sub-search results.
[0066] In an optional embodiment, the acquisition module 301 is also configured to perform a first training on the large language model so that the large language model can generate hotel profile information based on known hotel information; perform a second training on the large language model so that the large language model can generate characteristic information of a hotel based on the information of a hotel and the profile information of a comparative hotel; perform a third training on the large language model so that the large language model can generate content information required for live broadcast based on the characteristic information of a hotel and the package information of the package to be sold; perform a fourth training on the large language model so that the large language model can determine whether the search result is an answer to a question, and generate multiple sub-searches based on the question.
[0067] After the first training of the large language model is completed, the second training is performed on the large language model; after the second training of the large language model is completed, the third training is performed on the large language model; after the third training of the large language model is completed, the fourth training is performed on the large language model.
[0068] In an optional embodiment, the second generating module 303 is further configured to obtain the latest news about the target hotel through a search engine; and generate characteristic information of the target hotel using a large language model based on the target hotel information, the latest news and the profile information.
[0069] It should be understood that the sequence numbers of the steps in the above embodiments do not imply a sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0070] Figure 4 This is a schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and capable of running on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0071] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , which may include more or fewer components than those shown in the figure, or different components.
[0072] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0073] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, the electronic device 4 is equipped with a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. The memory 402 may also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 402 is used to store computer programs and other programs and data required by the electronic device.
[0074] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned functional units and module divisions are used as examples for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. In the embodiment, each functional unit and module can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0075] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the above-mentioned various method embodiment steps when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0076] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. These modifications or replacements do not essentially deviate the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for intelligent live broadcasting of hotel packages, characterized in that: include: Acquire target hotel information of a target hotel and package information of a package to be sold, determine a comparison hotel of the target hotel based on the target hotel information, and acquire comparison hotel information of the comparison hotel; Based on the comparison hotel information, using a large language model to generate brief introduction information of the comparison hotel; Based on the target hotel information and the profile information, generating characteristic information of the target hotel using the large language model; Based on the feature information and the package information, using the large language model to generate content information required for live broadcast; Dividing the content information according to punctuation marks to obtain a plurality of live broadcast statements; Perform the live broadcast according to the plurality of live broadcast statements, and obtain status information of the live broadcast room in real time, determine a field control action according to the status information, and adjust the live broadcast according to the field control action; Wherein, the live broadcast is performed according to a plurality of live broadcast statements, and the status information of the live broadcast room is obtained in real time, a field control action is determined according to the status information, and the live broadcast is adjusted according to the field control action, including: executing the following loop: judging whether i is greater than N, wherein i is the sequence number of the live broadcast statement, the initial value of i is 1, and N is the number of live broadcast statements; when i is greater than N, the live broadcast is terminated; when i is less than or equal to N, the i-th live broadcast statement is played, and the status information of the live broadcast room is obtained in real time; the field control action after playing the i-th live broadcast statement is determined according to the status information; the live broadcast is adjusted according to the field control action after playing the i-th live broadcast statement, i+1; Wherein, determining the field control action according to the state information includes: the state information includes the number of people, the amount of interaction, whether there are new viewers entering the live broadcast room within a preset time, questions and points of interest raised by the audience; determining the following field control actions according to the state information: welcoming new viewers to join the live broadcast room; displaying the package to be sold and related packages of the package to be sold through a pop-up window; repeating live broadcast sentences related to the questions raised by the audience; judging whether to pause during the live broadcast according to the amount of interaction of the audience; pausing the live broadcast and playing songs when the number of people in the live broadcast room is less than the preset number of people or the amount of interaction is less than the preset amount of interaction; recommending and explaining the points of interest mentioned by the audience; The method further includes: receiving a question raised by an audience during the live broadcast, and answering the question by oneself: determining a search result based on the question using a search model; determining whether the search result is an answer to the question using the large language model, and when the search result is not an answer to the question, generating multiple sub-searches based on the question using the large language model; if yes, answering the audience according to the search result; if not, performing a multi-hop search using a search model according to the multiple sub-searches to obtain multiple sub-search results, and answering the audience according to the merged multiple sub-search results; Among them, before using the large language model to generate the profile information of the comparison hotel based on the comparison hotel information, the method also includes: performing a first training on the large language model so that the large language model can generate the profile information of the hotel based on the known hotel information; performing a second training on the large language model so that the large language model can generate the characteristic information of the hotel based on the information of a hotel and the profile information of the comparison hotel; performing a third training on the large language model so that the large language model can generate the content information required for live broadcast based on the characteristic information of the hotel and the package information of the package to be sold; performing a fourth training on the large language model so that the large language model can determine whether the search result is an answer to a question, and generate multiple sub-searches based on the question.
2. The method according to claim 1, characterized in that: The method further comprises: After completing the first training on the large language model, performing the second training on the large language model; After completing the second training on the large language model, performing the third training on the large language model; After completing the third training on the large language model, the fourth training is performed on the large language model.
3. The method according to claim 1, characterized in that: Based on the target hotel information and the profile information, the large language model is used to generate characteristic information of the target hotel, including: Obtain the latest news about the target hotel through a search engine; Based on the target hotel information, the latest news and the profile information, the large language model is used to generate characteristic information of the target hotel.
4. A hotel package intelligent live broadcast device, characterized in that: include: An acquisition module is configured to acquire target hotel information of a target hotel and package information of a package to be sold, determine a comparison hotel of the target hotel based on the target hotel information, and acquire comparison hotel information of the comparison hotel; A first generating module is configured to generate brief information of the compared hotel based on the compared hotel information by using a large language model; A second generating module is configured to generate characteristic information of the target hotel using the large language model based on the target hotel information and the profile information; A third generating module is configured to generate content information required for live broadcasting by using the large language model based on the feature information and the package information; A division module is configured to divide the content information according to punctuation marks to obtain a plurality of live broadcast statements; A field control module is configured to perform the live broadcast according to the plurality of live broadcast statements, obtain status information of the live broadcast room in real time, determine a field control action according to the status information, and adjust the live broadcast according to the field control action; The field control module is further configured to execute the following loop: determine whether i is greater than N, where i is the sequence number of the live broadcast statement, the initial value of i is 1, and N is the number of live broadcast statements; when i is greater than N, end the live broadcast; when i is less than or equal to N, play the i-th live broadcast statement, and obtain the status information of the live broadcast room in real time; determine the field control action after playing the i-th live broadcast statement according to the status information; adjust the live broadcast according to the field control action after playing the i-th live broadcast statement, i+1; The field control module is also configured that the state information includes the number of people, the amount of interaction, whether there are new viewers entering the live broadcast room within the preset time, questions and points of interest raised by the audience; determine the following field control actions based on the state information: welcome new viewers to join the live broadcast room; display the package to be sold and related packages of the package to be sold through a pop-up window; repeat the live broadcast sentences related to the questions raised by the audience; determine whether to pause during the live broadcast according to the amount of interaction of the audience; if the number of people in the live broadcast room is less than the preset number of people or the amount of interaction is less than the preset amount of interaction, pause the live broadcast and play songs; recommend and explain the points of interest mentioned by the audience; The field control module is also configured to receive questions raised by viewers during the live broadcast and answer them by itself: determine a search result based on the question using a search model; determine whether the search result is an answer to the question using the large language model, and when the search result is not an answer to the question, generate multiple sub-searches based on the question using the large language model; if yes, answer the viewers according to the search result; if not, perform a multi-hop search using the search model according to the multiple sub-searches to obtain multiple sub-search results, and answer the viewers according to the merged multiple sub-search results; The first generation module is also configured to perform a first training on the large language model so that the large language model can generate hotel profile information based on known hotel information; perform a second training on the large language model so that the large language model can generate feature information of a hotel based on information of a hotel and profile information of a comparative hotel; perform a third training on the large language model so that the large language model can generate content information required for live broadcast based on feature information of a hotel and package information of a package to be sold; perform a fourth training on the large language model so that the large language model can determine whether the search result is an answer to a question and generate multiple sub-searches based on the question.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
