Electronic device, and question and answer provision method of electronic device

The electronic device processes multi-modal input data to generate responses in various formats, addressing the limitation of text-only outputs by indexing and matching content types, thereby enhancing user interaction and response comprehensiveness.

WO2024196048A1PCT designated stage expired Publication Date: 2024-09-26SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/002868
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2024-03-06
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Current voice assistant technologies can only provide responses in text form, limiting the ability to deliver answers in multiple formats, such as images or videos, despite processing multi-modal input data like images, videos, and tables.

Method used

An electronic device with a processor and memory that indexes and generates candidate queries and responses from various content types, allowing for the selection and matching of content to provide responses in multiple formats, including images and videos, by analyzing and processing input data containing text, images, tables, audio, and video.

Benefits of technology

Enables the electronic device to provide comprehensive and intuitive responses to user inquiries by matching queries with relevant content from diverse data sources, enhancing user understanding and interaction with voice assistant services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024002868_26092024_PF_FP
    Figure KR2024002868_26092024_PF_FP
Patent Text Reader

Abstract

An electronic device according to various embodiments of the present document may comprise a memory and a processor operatively connected to the memory. The memory can be executed by means of at least one processor and, during the execution, the electronic device can acquire at least one piece of input data including a plurality of pieces of content and determine the type of each of the plurality of pieces of content included in the acquired input data. The processor can store instructions for indexing each type of content, generating a candidate query corresponding to the content, selecting at least one piece of content corresponding to the candidate query from among the plurality of pieces of content and determining same as a candidate response, and matching the candidate query with the candidate response and storing same. Other various embodiments are possible.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic devices and methods for providing inquiries and answers about electronic devices

[0001] This document relates to an electronic device, and for example, to a method for providing a question response by an electronic device that can extract and provide a response to a user's question from input data.

[0002] As voice assistant technology, which provides various services based on user voice input, becomes more commercialized, voice assistant functions are now available on electronic devices such as mobile terminals. These devices can provide voice assistant functions based on embedded engines or external server engines. Voice assistants on electronic devices (or external servers) can automatically recognize various input data, such as text, images, and videos, using artificial intelligence (AI) technology. They can then respond to user requests by providing information related to the input data or providing intelligent services that provide related services.

[0003] Open Domain QA, an example of an intelligent service provided by voice assistants, handles a wide range of user queries. It retrieves information from internal databases or the internet to provide tailored responses. Device QA can search for and provide answers to queries related to a specific device through references such as manuals. Device QA can utilize machine reading comprehension (MRC) to provide answers to user queries.

[0004] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above is applicable as prior art related to the present disclosure.

[0005] QA provided by voice assistants can provide responses in text format based on textual information in the input data. For example, when crawling a portable document format (PDF) file as input data, a voice assistant can only extract text that can be processed by the natural language processing engine. This means that even if the input data is multimodal data containing various types of content, such as images, videos, and tables, the voice assistant's output can only be provided in text.

[0006] An electronic device according to this disclosure (or specification, invention) may include a memory and at least one processor operatively connected to the memory.

[0007] According to one embodiment, the memory may store instructions that are executable by at least one processor and, when executed, cause the electronic device to obtain at least one input data including a plurality of contents and to determine a type of each of the plurality of contents included in the obtained input data.

[0008] According to one embodiment, the memory may store instructions that cause the electronic device to index each type of content, generate a candidate query corresponding to the content, select at least one content corresponding to the candidate query from among the plurality of contents and determine it as a candidate response, and match and store the candidate query and the candidate response.

[0009] A method for providing a question-answering function of an electronic device according to the present document may include an operation of acquiring at least one input data including a plurality of contents, an operation of determining a type of each of the plurality of contents included in the acquired input data, an operation of indexing each type of content, an operation of generating a candidate query corresponding to the content, an operation of selecting at least one content corresponding to the candidate query among the plurality of contents and determining it as a candidate response, and an operation of matching and storing the candidate query and the candidate response.

[0010] The electronic device and the method for providing a question response of the electronic device according to various embodiments of this document can generate data distributed in various modal forms in a query form that can be supported, and can provide a response to a user's question in various modal forms such as text, images, and videos.

[0011] FIG. 1 is a block diagram of an electronic device within a network environment, according to one embodiment.

[0012] FIG. 2 is a block diagram illustrating an integrated intelligence system according to one embodiment.

[0013] FIG. 3 is a diagram showing a form in which relationship information between concepts and actions is stored in a database according to one embodiment.

[0014] FIG. 4 illustrates one page of input data according to one embodiment.

[0015] Figure 5 is a block diagram of an electronic device according to one embodiment.

[0016] FIG. 6 is a software block diagram for QA processing of an electronic device according to one embodiment.

[0017] FIGS. 7A and 7B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0018] FIGS. 8A and 8B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0019] FIGS. 9A and 9B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0020] FIGS. 10A, 10B, and 10C illustrate a method for providing a question response of an electronic device according to one embodiment.

[0021] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein. In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components. Furthermore, in the drawings and related descriptions, descriptions of well-known functions and configurations may be omitted for clarity and conciseness.

[0022] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to one embodiment. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).

[0023] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0024] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.

[0025] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).

[0026] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).

[0027] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0028] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.

[0029] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.

[0030] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).

[0031] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0032] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0033] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0034] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0035] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0036] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0037] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0038] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).

[0039] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.

[0040] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

[0041] In one embodiment, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.

[0042] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).

[0043] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0044] FIG. 2 is a block diagram illustrating an integrated intelligence system according to various embodiments.

[0045] Referring to FIG. 2, according to one embodiment, the integrated intelligence system may include an electronic device (210) (e.g., electronic device (101) of FIG. 1), an intelligent server (230) (e.g., server (108) of FIG. 1), and a service server (250) (e.g., server (108) of FIG. 1).

[0046] According to one embodiment, the electronic device (210) may be a terminal device (or electronic device) that can connect to the Internet, for example, a mobile phone, a smart phone, a personal digital assistant (PDA), a laptop computer, a TV, white goods, a wearable device, an HMD, or a smart speaker.

[0047] According to the illustrated embodiment, the electronic device (210) may include a communication interface (213) (e.g., the interface (177) of FIG. 1), a microphone (212) (e.g., the input module (150) of FIG. 1), a speaker (216) (e.g., the audio output module (155) of FIG. 1), a display module (211) (e.g., the display module (160) of FIG. 1), a memory (215) (e.g., the memory (130) of FIG. 1), or a processor (214) (e.g., the processor (120) of FIG. 1). The components listed above may be operatively or electrically connected to each other. The electronic device (210) may include at least some of the configurations and / or functions of the electronic device (101) of FIG. 1.

[0048] In one embodiment, the communication interface (213) may be configured to connect to an external device and transmit and receive data. In one embodiment, the microphone (212) may receive sound (e.g., user speech) and convert it into an electrical signal. In one embodiment, the speaker (216) may output the electrical signal as sound (e.g., voice).

[0049] In one embodiment, the display module (211) may be configured to display an image or video. In one embodiment, the display module (211) may also display a graphical user interface (GUI) of a running app (or application program). In one embodiment, the display module (211) may receive a touch input via a touch sensor. For example, the display module (211) may receive a text input via a touch sensor in an on-screen keyboard area displayed within the display module (211).

[0050] According to one embodiment, the memory (215) may store a client module (218), a software development kit (SDK) (217), and a plurality of apps (219a, 219b). The client module (218) and the SDK (217) may constitute a framework (or solution program) for performing general-purpose functions. In addition, the client module (218) or the SDK (217) may constitute a framework for processing user input (e.g., voice input, text input, touch input).

[0051] According to one embodiment, the plurality of apps (219a, 219b) stored in the memory (215) may be programs for performing a specified function. According to one embodiment, the plurality of apps may include a first app (219a) and a second app (219b). According to one embodiment, each of the plurality of apps (219a, 219b) may include a plurality of operations for performing a specified function. For example, the apps (219a, 219b) may include an alarm app, a message app, and / or a schedule app. According to one embodiment, the plurality of apps (219a, 219b) may be executed by the processor (214) to sequentially execute at least some of the plurality of operations.

[0052] According to one embodiment, the processor (214) can control the overall operation of the electronic device (210). For example, the processor (214) can be electrically connected to a communication interface (213), a microphone (212), a speaker (216), and a display module (211) to perform a specified operation.

[0053] According to one embodiment, the processor (214) may also execute a program stored in the memory (215) to perform a designated function. For example, the processor (214) may execute at least one of the client module (218) or the SDK (217) to perform the following operations for processing user input. The processor (214) may control the operations of a plurality of apps (219a, 219b), for example, through the SDK (217). The following operations described as operations of the client module (218) or the SDK (217) may be operations executed by the processor (214).

[0054] According to one embodiment, the client module (218) can receive user input. For example, the client module (218) can receive a voice signal corresponding to a user utterance detected through the microphone (212). Alternatively, the client module (218) can receive a touch input detected through the display module (211). Alternatively, the client module (218) can receive a text input detected through a keyboard or a visual keyboard. In addition, the client module (218) can receive various forms of user input detected through an input module included in the electronic device (210) or an input module connected to the electronic device (210). The client module (218) can transmit the received user input to the intelligent server (230). The client module (218) can transmit status information of the electronic device (210) together with the received user input to the intelligent server (230). The status information can be, for example, execution status information of an app.

[0055] In one embodiment, the client module (218) may receive a result corresponding to the received user input. For example, the client module (218) may receive a result corresponding to the received user input if the intelligent server (230) can produce a result corresponding to the received user input. The client module (218) may display the received result on the display module (211). Additionally, the client module (218) may output the received result as audio through the speaker (216).

[0056] According to one embodiment, the client module (218) can receive a plan corresponding to the received user input. The client module (218) can display the results of executing multiple operations of the app according to the plan on the display module (211). For example, the client module (218) can sequentially display the results of executing multiple operations on the display module (211) and output audio through the speaker (216). The electronic device (210) can, for another example, display only some results of executing multiple operations (e.g., the result of the last operation) on the display module (211) and output audio through the speaker (216).

[0057] In one embodiment, the client module (218) may receive a request from the intelligent server (230) to obtain information necessary to produce a result corresponding to the voice input. In one embodiment, the client module (218) may transmit the necessary information to the intelligent server (230) in response to the request.

[0058] According to one embodiment, the client module (218) may transmit result information of executing multiple operations according to a plan to the intelligent server (230). The intelligent server (230) may use the result information to confirm that the received user input has been processed correctly.

[0059] In one embodiment, the client module (218) may include a voice recognition module. In one embodiment, the client module (218) may recognize voice inputs that perform limited functions through the voice recognition module. For example, the client module (218) may execute an intelligent app that processes voice inputs to perform organic actions based on a specified input (e.g., "Wake up!").

[0060] According to one embodiment, the intelligent server (230) can receive information related to a user voice input from an electronic device (210) via a communication network. According to one embodiment, the intelligent server (230) can convert data related to the received voice input into text data. According to one embodiment, the intelligent server (230) can generate a plan for performing a task corresponding to the user voice input based on the text data.

[0061] In one embodiment, the plan may be generated by an artificial intelligence (AI) system. The AI ​​system may be a rule-based system, a neural network-based system (e.g., a feedforward neural network (FNN) or a recurrent neural network (RNN)), or a combination of the above or another AI system. In one embodiment, the plan may be selected from a set of predefined plans or may be generated in real time in response to a user request. For example, the AI ​​system may select at least one plan from a plurality of predefined plans.

[0062] According to one embodiment, the intelligent server (230) may transmit the results according to the generated plan to the electronic device (210), or transmit the generated plan to the electronic device (210). According to one embodiment, the electronic device (210) may display the results according to the plan on the display module (211). According to one embodiment, the electronic device (210) may display the results of executing an operation according to the plan on the display module (211).

[0063] According to one embodiment, the intelligent server (230) may include a front end (231), a natural language platform (232), a capsule database (238), an execution engine (233), an end user interface (234), a management platform (235), a big data platform (236), or an analytic platform (237).

[0064] According to one embodiment, the front end (231) can receive user input from the electronic device (210). The front end (231) can transmit a response corresponding to the user input.

[0065] According to one embodiment, the natural language platform (232) may include an automatic speech recognition module (ASR module) (232a), a natural language understanding module (NLU module) (232b), a planner module (232c), a natural language generator module (NLG module) (232d), or a text to speech module (TTS module) (232e).

[0066] According to one embodiment, the automatic speech recognition module (232a) can convert voice input received from the electronic device (210) into text data. According to one embodiment, the natural language understanding module (232b) can use the text data of the voice input to determine the user's intent. For example, the natural language understanding module (232b) can perform syntactic analysis or semantic analysis on user input in the form of text data to determine the user's intent. According to one embodiment, the natural language understanding module (232b) can use linguistic features (e.g., grammatical elements) of morphemes or phrases to determine the meaning of words extracted from the voice input, and can match the meaning of the determined words to the intent to determine the user's intent. The natural language understanding module (223b) can obtain intent information corresponding to the user's utterance. The intent information can be information indicating the user's intent determined by interpreting text data. The intent information can include information indicating an action or function that the user intends to execute using the device.

[0067] According to one embodiment, the planner module (232c) can generate a plan using the intent and parameters determined by the natural language understanding module (232b). According to one embodiment, the planner module (232c) can determine a plurality of domains necessary to perform a task based on the determined intent. The planner module (232c) can determine a plurality of operations included in each of the plurality of domains determined based on the intent. According to one embodiment, the planner module (232c) can determine parameters necessary to execute the determined plurality of operations or result values ​​output by the execution of the plurality of operations. The parameters and the result values ​​can be defined as concepts of a specified format (or class). Accordingly, the plan can include a plurality of operations and a plurality of concepts determined by the user's intent. The planner module (232c) can determine the relationships between the plurality of operations and the plurality of concepts in a stepwise (or hierarchical) manner. For example, the planner module (232c) can determine the execution order of a plurality of actions based on the user's intention based on a plurality of concepts. In other words, the planner module (232c) can determine the execution order of a plurality of actions based on parameters required for the execution of the plurality of actions and results output by the execution of the plurality of actions. Accordingly, the planner module (232c) can generate a plan including association information (e.g., ontology) between the plurality of actions and the plurality of concepts. The planner module (232c) can generate the plan using information stored in a capsule database that stores a set of relationships between concepts and actions.

[0068] According to one embodiment, the natural language generation module (232d) can convert specified information into text format. The information converted into text format may be in the form of natural language speech. According to one embodiment, the text-to-speech module (232e) can convert text-to-speech information into speech information.

[0069] According to one embodiment, some or all of the functions of the natural language platform (232) may also be implemented in the electronic device (210).

[0070] The capsule database can store information about the relationships between multiple concepts and actions corresponding to multiple domains. According to one embodiment, the capsule can include multiple action objects (or action information) and concept objects (or concept information) included in the plan. According to one embodiment, the capsule database can store multiple capsules in the form of a concept action network (CAN). According to one embodiment, the multiple capsules can be stored in a function registry included in the capsule database.

[0071] The capsule database may include a strategy registry that stores strategy information necessary for determining a plan corresponding to a user input. The strategy information may include reference information for determining a single plan when there are multiple plans corresponding to the user input. According to one embodiment, the capsule database may include a follow-up registry that stores information on follow-up actions for suggesting follow-up actions to a user in a given situation. The follow-up actions may include, for example, follow-up utterances. According to one embodiment, the capsule database may include a layout registry that stores layout information of information output through the electronic device (210). According to one embodiment, the capsule database may include a vocabulary registry that stores vocabulary information included in the capsule information. According to one embodiment, the capsule database may include a dialog registry that stores information on dialogue (or interaction) with the user. The capsule database may update stored objects through a developer tool. The developer tool may include, for example, a function editor for updating action objects or concept objects. The developer tool may include a vocabulary editor for updating vocabulary. The developer tool may include a strategy editor for creating and registering strategies that determine plans. The developer tool may include a dialog editor for creating conversations with users.The developer tool may include a follow-up editor that activates follow-up goals and allows editing of follow-up utterances that provide hints. The follow-up goals may be determined based on the currently set goals, user preferences, or environmental conditions. In one embodiment, the capsule database may also be implemented within the electronic device (210).

[0072] In one embodiment, the execution engine (233) can use the generated plan to produce a result. The end user interface (234) can transmit the produced result to the electronic device (210). Accordingly, the electronic device (210) can receive the result and provide the received result to the user. In one embodiment, the management platform (235) can manage information used in the intelligent server (230). In one embodiment, the big data platform (236) can collect user data. In one embodiment, the analysis platform (237) can manage the quality of service (QoS) of the intelligent server (230). For example, the analysis platform (237) can manage the components and processing speed (or efficiency) of the intelligent server (230).

[0073] According to one embodiment, the service server (250) can provide a service (e.g., food ordering or hotel reservation) specified to the electronic device (210). According to one embodiment, the service server (250) can be a server operated by a third party. According to one embodiment, the service server (250) can provide information for generating a plan corresponding to the received voice input to the intelligent server (230). The provided information can be stored in a capsule database. In addition, the service server (250) can provide result information according to the plan to the intelligent server (230). The service server (250) can include a plurality of service providers (e.g., CP Service A (251), CP Service B (252), CP Service C (253)), and each of the service providers (251, 252, 253) can provide a function for a domain associated with each capsule stored in the capsule database (238) of the intelligent server (230).

[0074] In the integrated intelligence system described above, the electronic device (210) can provide various intelligent services to the user in response to user input. The user input may include, for example, input via a physical button, touch input, or voice input.

[0075] According to one embodiment, the electronic device (210) may provide a voice recognition service through an intelligent app (or voice recognition app) stored within the device. In this case, for example, the electronic device (210) may recognize a user utterance or voice input received through the microphone (212) and provide the user with a service corresponding to the recognized voice input.

[0076] According to one embodiment, the electronic device (210) may perform a designated operation based on the received voice input, either alone or together with the intelligent server (230) and / or the service server (250). For example, the electronic device (210) may execute an app corresponding to the received voice input and perform a designated operation through the executed app.

[0077] According to one embodiment, when an electronic device (210) provides a service together with an intelligent server (230) and / or a service server (250), the electronic device (210) may detect a user's speech using the microphone (212) and generate a signal (or voice data) corresponding to the detected user's speech. The electronic device (210) may transmit the voice data to the intelligent server (230) via a network (240) using a communication interface (213).

[0078] In one embodiment, an intelligent server (230) may generate a plan for performing a task corresponding to a voice input received from an electronic device (210), or a result of performing an operation according to the plan, in response to the voice input. The plan may include, for example, a plurality of operations for performing a task corresponding to a user's voice input, and a plurality of concepts related to the plurality of operations. The concept may define parameters input to the execution of the plurality of operations, or result values ​​output by the execution of the plurality of operations. The plan may include association information between the plurality of operations and the plurality of concepts.

[0079] According to one embodiment, the electronic device (210) can receive the response using the communication interface (213). The electronic device (210) can output a voice signal generated within the electronic device (210) to the outside using the speaker (216), or can output an image generated within the electronic device (210) to the outside using the display module (211).

[0080] Although FIG. 2 describes an example in which voice recognition of user input received from an electronic device (210), natural language understanding and generation, and calculation of results using a plan are performed on an intelligent server (230), the various embodiments of the present document are not limited thereto. For example, at least some components of the intelligent server (230) (e.g., natural language platform (232), execution engine (233), capsule database (238)) may be embedded in the electronic device (210) (or the electronic device (101) of FIG. 1), so that the operations may be performed by the electronic device (210).

[0081] FIG. 3 is a diagram showing a form in which relationship information between concepts and actions is stored in a database according to various embodiments.

[0082] According to one embodiment, a capsule database (e.g., capsule database (238) of FIG. 2) of an intelligent server (e.g., intelligent server (230) of FIG. 2) may store capsules in the form of a CAN (concept action network) (300). The capsule database may store operations for processing tasks corresponding to a user's voice input and parameters necessary for the operations in the form of a CAN (concept action network).

[0083] According to one embodiment, the capsule database may store a plurality of capsules (capsule (A) (310), capsule (B) (320)) corresponding to each of a plurality of domains (e.g., applications). According to one embodiment, one capsule (e.g., capsule (A) (310)) may correspond to one domain (e.g., location (geo), application). In addition, one capsule may correspond to at least one service provider (e.g., CP 1 (331) or CP 2 (332)) for performing a function for a domain related to the capsule. According to one embodiment, one capsule may include at least one operation (350) and at least one concept (360) for performing a specified function.

[0084] In one embodiment, a natural language platform (e.g., the natural language platform (232) of FIG. 2) can generate a plan for performing a task corresponding to a received speech input using capsules stored in a capsule database. For example, a planner module of the natural language platform (e.g., the planner module (232c) of FIG. 2) can generate a plan using capsules stored in a capsule database. For example, a plan can be generated using actions (311, 313) and concepts (312, 314) of capsule A (310) and actions (321) and concepts (322) of capsule B (320).

[0085] FIG. 4 illustrates one page of input data according to one embodiment.

[0086] In one embodiment, the input data that is the subject of the user's query response may be multi-modal data containing various types of content. For example, the content type of the input data may include, but is not limited to, text, tables, images, video, or audio.

[0087] Figure 4 illustrates a page from a manual file for a specific device, which is an example of input data, providing information related to Internet menu settings. This input data can be utilized in Device QA, a service that provides information related to the device.

[0088] Referring to FIG. 4, the input data (400) may include a bookmark setting icon (410) and text information (415), a refresh icon (420) and text information (425), a page movement icon (430) and text information (435), a home page movement icon (440) and text information (445), a bookmark list check icon (450) and text information (455), a tab management icon (460) and text information (465), and a more options icon (470) and text information (475). When extracting each content from the input data, each icon (410, 420, 430, 440, 450, 460, 470) may be extracted as image content, and each text information (415, 425, 435, 445, 455, 465, 475) may be extracted as text content.

[0089] According to one embodiment, a QA service provided by an electronic device (e.g., the electronic device (101) of FIG. 1, the electronic device (210) of FIG. 2)) may respond to a user's query by providing text information of input data in text form. For example, when crawling a PDF file as input data, the electronic device may extract only text that can be processed in natural language. In this case, for a user's query such as "How do I bookmark?", the electronic device may respond with text information such as "Add current web page to bookmarks" (415). However, since the actual user's query may be intended to ask which icon to touch to set a bookmark, responding with only text information as above may not be appropriate for the user's intent. Alternatively, one could consider converting the bookmark setting icon (410) into text content to respond to the user, but converting the bookmark setting icon (410) into text content may not be easy.

[0090] Hereinafter, through FIGS. 4 to 10, various embodiments for generating a query form that can support data distributed in various modal forms and comparing the generated queries to provide a response in the form of various modal forms (e.g., image, audio, video) as well as text for a user's query will be described.

[0091] Figure 5 is a block diagram of an electronic device according to one embodiment.

[0092] Referring to FIG. 5, the electronic device (500) may include a processor (510), a memory (520), a communication module (530), a display (540), and a microphone (550). In various embodiments of the present document, some of the illustrated components may be omitted or replaced. The electronic device (500) may include at least some of the components and / or functions of the electronic device (101) of FIG. 1 and / or the electronic device (210) of FIG. 2. At least some of the components of the illustrated (or not illustrated) electronic device (500) may be operatively, functionally, and / or electrically connected to each other.

[0093] According to one embodiment, the display (540) can display various images provided from the processor (510). For example, the display (540) can be implemented as any one of a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, a micro electro mechanical systems (MEMS) display, or an electronic paper display, but is not limited thereto. The display (540) can be configured as a touch screen that detects a touch and / or proximity touch (or hovering) input using a part of a user's body (e.g., a finger) or an input device (e.g., a stylus pen). The display (540) can include at least some of the configurations and / or functions of the display module (160) of FIG. 1 and / or the display module (211) of FIG. 2.

[0094] In one embodiment, when a voice assistant is executed by the processor (510), the display (540) may display various screens provided by the voice assistant. In one embodiment, the voice assistant may be configured as a conversational user interface (UI).

[0095] In one embodiment, the microphone (550) can capture external sounds, such as a user's voice, and convert them into a voice signal, which is digital data. In one embodiment, the electronic device (500) may include a microphone in a part of the housing (not shown), or may receive a voice signal captured from an external microphone connected wired or wirelessly. For example, when a voice assistant is executed, the microphone (550) can capture the user's speech for question and answer (e.g., Device QA) and provide it to the processor (510).

[0096] According to one embodiment, the communication module (530) may support wireless communication with an external device using cellular wireless communication (e.g., 4G LTE, 5G NR) and / or short-range wireless communication (e.g., Wi-Fi). For example, the electronic device (500) may use the communication module (530) to communicate with an external server providing a voice assistant function via a network. The communication module (530) may include at least some of the configurations and / or functions of the communication module (190) of FIG. 1 and / or the communication interface (213) of FIG. 2.

[0097] According to one embodiment, the memory (520) may temporarily or permanently store various data, including volatile memory and non-volatile memory. The memory (520) may include at least a portion of the configuration and / or function of the memory (130) of FIG. 1 and / or the memory (215) of FIG. 2, and may store the program (140) of FIG. 1. The memory (520) may store various applications (e.g., the first app (219a) and the second app (219b) of FIG. 2) and program modules supporting intelligent services (e.g., the client module (218) of FIG. 2).

[0098] According to one embodiment, the memory (520) may store various instructions that may be performed by the processor (510). Such instructions may include control commands such as arithmetic and logical operations, data movement, and / or input / output that may be recognized by the processor (510).

[0099] According to one embodiment, the processor (510) may be configured as one or more processors capable of performing calculations or data processing related to control and / or communication of each component of the electronic device (500). The processor (510) may include at least some of the configurations and / or functions of the processor (120) of FIG. 1 and / or the processor (214) of FIG. 2.

[0100] According to one embodiment, there is no limitation to the computational and data processing functions that the processor (510) can implement on the electronic device (500). However, this document will describe various embodiments that analyze input data to generate candidate queries and candidate responses and provide appropriate responses in response to user utterances when providing a question-and-answer service using a voice assistant. The operations of the processor (510) described below can be performed by loading instructions stored in the memory (520).

[0101] In this document, the description that a processor (510) can perform a certain operation (or function, work, task) may be interpreted to mean substantially the same as that an instruction (or command, computer program) that causes an electronic device (500) (or processor (510)) to perform the corresponding operation is stored in a memory (520) (e.g., non-volatile memory, storage). In addition, the description that a processor (510) can perform a certain operation may be interpreted to mean substantially the same as that at least one processor (510) can perform the corresponding operation.

[0102] In one embodiment, the processor (510) may execute a voice assistant application that provides intelligent services. For example, the voice assistant may be configured as a conversational user interface (UI), and text information corresponding to the user's utterances and responses provided by the voice assistant may be provided through the conversational UI.

[0103] Hereinafter, the operation of an electronic device (500) analyzing input data to generate candidate queries and candidate responses when providing a question-and-answer service, which is a function of a voice assistant, will be described. While each operation may be described as being performed by the electronic device (500) below, at least some of the operations may be performed by an external server, and the electronic device (500) may operate in a manner in which the results are received from the external server.

[0104] According to one embodiment, the processor (510) may obtain input data to be analyzed. For example, the input data may be in the form of a file such as a document, or may be data from various sources such as a web page on the Internet, video, or audio streaming.

[0105] In one embodiment, the input data may be multimodal data containing content of various types (or modalities). For example, the input data may contain various types of content, such as text, tables, images, audio, and video.

[0106] According to one embodiment, the processor (510) can analyze input data and classify each content included in the input data by type. The processor (510) can store each type of classified content as text information. For example, the processor (510) can analyze image content of the input data using an optical character recognition (OCR) module and output interpreted text information and metadata (e.g., location, size). In addition, the processor (510) can analyze audio and / or video content of the data using an automatic speech recognition (ASR) module and output converted text and metadata (e.g., start time, end time, length).

[0107] According to one embodiment, the processor (510) may index each type of content of the input data. For example, the processor (510) may assign an index to each of the text content, image content, and table content included in the input data.

[0108] According to one embodiment, the processor (510) may generate at least one candidate query corresponding to each indexed content of the input data. For example, the processor (510) may generate a possible query (e.g., "Tell me how to bookmark") from text (e.g., "bookmark") extracted from the input data. The processor (510) may index and store the generated candidate queries. For example, referring to the Internet menu setting page of FIG. 4, the title of the corresponding page, which is image data, is "Internet Menu," and the text "Bookmark" may be extracted from the image data. The electronic device (500) may generate candidate queries "How to bookmark," "How do I bookmark?", and "I want to bookmark a web page" from the extracted text "Bookmark," and may assign the same index (e.g., 43) as the content that forms the basis of the candidate queries.

[0109] In one embodiment, the processor (510) may select at least one content corresponding to a candidate query from among multiple contents and determine it as a candidate response. The processor (510) may match and store generated candidate queries and contents assigned the same index. For example, the processor may match and store image content containing a bookmark button assigned the same index with the candidate query "How to bookmark."

[0110] According to one embodiment, the processor (510) can determine candidate responses corresponding to a candidate query using various types of content. Previously, responses were limited to text format, making it difficult for users to understand responses provided by extracting only specific text portions from image content. Since the processor (510) can match various types of content to candidate responses corresponding to a candidate query, it can provide responses using content types other than text, such as image content.

[0111] According to one embodiment, the processor (510) may assign a ranking (or priority) to the selected plurality of contents when selecting multiple contents and determining them as candidate responses. The answer to a specific query may not be located in a single piece of data, but may be provided through various media such as a specific web page, a document-based manual, a wiki, a snippet of a search result, video streaming, or audio streaming. In other words, the answer may be located only in a specific piece of data, or the answer may be located in multiple locations depending on the nature of the query. The electronic device (500) may determine the ranking of the answer based on the query of each indexed content. The electronic device (500) may index and process information from various data (or media) based on the query, and even if the required information is located in various pieces of data, it may provide a response regardless of the type of content being output, because the information is indexed based on an answerable query.

[0112] In one embodiment, when the input data is video or audio streaming data, the processor (510) may determine a time interval containing content corresponding to a candidate query as a candidate response. For example, if the answer is contained in a specific portion of a video caption, the corresponding location may be marked to form a response in the form of a uniform resource locator (URL) + time interval.

[0113] According to one embodiment, the electronic device (500) may receive a user's query through at least one input device. For example, the electronic device (500) may receive a user's query through a user's touch input on the display (540) and / or a voice input using a microphone (550). When a user's query is received, the processor (510) may select a candidate query corresponding to the user's query, and select at least one of the candidate responses stored to match the selected candidate query and provide the selected candidate response to the user.

[0114] According to one embodiment, the processor (510) may determine a plurality of queries from a received user query, determine a plurality of candidate responses matching each of the plurality of queries, and generate a response to be provided to the user by combining the determined plurality of candidate responses. According to one embodiment, when determining a first query and a second query from a user query, the processor (510) may determine a first type of candidate response corresponding to the first query and a second type of candidate response corresponding to the second query.

[0115] Generally, when information from two or more modalities must be combined to answer a question, the processing process can become relatively complex. For example, methods such as image-to-text or text-to-image can be used, but these pose significant limitations on the search space, a fundamental problem in QA. Furthermore, comparing data with the original modal may not be practical. Therefore, when a complex query is present, the electronic device (500) can decompose the query into a single, short-form query and compare the query with the content. In this case, data from other types of content can also be compared based on the query, reducing the search space.

[0116] For example, if a user's query is "Which has a wider screen, S21 or S22?", screen size information of S21 and screen size information of S22 may be required. In this case, screen size information of S21 may be identified from text content, and screen size information of S22 may be identified from table content. The processor (510) may extract a response corresponding to the query from the two identified contents.

[0117] In one embodiment, the processor (510) can generate a new candidate query by combining two or more queries and assign a new index to the generated new query. For example, a new query can be generated by combining two queries, such as "Which one has a wider screen, S21 or S22?", and the query and the generated response can be matched and stored.

[0118] According to one embodiment, if the input data is internal data stored in the memory (520), the processor (510) may set a higher weight to the content included in the internal data than to the content of data acquired externally via the communication module (530). For example, the electronic device (500) may store personalized information such as text messages, contacts, and memos. The processor (510) may perform learning by assigning a higher weight to content including personalized information stored internally in the electronic device (500) than to content retrieved externally (e.g., from the Internet).

[0119] Instructions for performing the operations of the electronic device (500) (or processor (510)) described above may be stored on a computer-readable recording medium. The recording medium may be tangible and non-transitory. The recording medium may store one or more computer programs including the instructions.

[0120] FIG. 6 is a software block diagram for QA processing of an electronic device according to one embodiment.

[0121] FIG. 6 illustrates each module that constitutes a voice assistant engine that can be implemented in an electronic device (e.g., electronic device (500) of FIG. 5) or an external server.

[0122] In one embodiment, the voice assistant engine can analyze input data containing various types of content. For example, the types of input data may include, but are not limited to, text (612), images (614), video (616), and audio (618).

[0123] According to one embodiment, the OCR module (620) and the ASR module (630) can analyze input data and output various types of content of the input data as text information. OCR (optical character recognition) analyzes an image containing characters written or printed by a person and converts it into a machine-readable text format. For example, OCR may include processes such as preprocessing - pattern matching - feature extraction - postprocessing for image data. The OCR module (620) can analyze the image content of the input data and output interpreted text information and metadata (e.g., location, size).

[0124] In one embodiment, automatic speech recognition (ASR) may refer to interpreting spoken language spoken by a person and converting the content into text. For example, ASR may include processes such as speech preprocessing, pattern processing, and language model-based language processing. The ASR module (630) may analyze the audio and / or video content of input data and output converted text and metadata (e.g., start time, end time, length).

[0125] According to one embodiment, the query generation module (640) may perform an operation of generating various queries from input data. The query generation module (640) may receive text content (612) of the input data, text converted from image content (614) by the OCR module (620), and / or text recognized by the ASR module (630). According to one embodiment, the query generation module (640) may generate at least one query that can be presented from the input text information based on the input text information. For example, in the Internet menu setting page of FIG. 4, the module may recognize text such as “Add current web page to bookmarks,” infer a query based on the text, and generate a query such as “How do I set a bookmark?” as a query for the input data. The query generation module (640) may index the generated query and store it as an indexed query (652).

[0126] In one embodiment, a multimodal retriever (662), a multimodal ranker (664), and a multimodal reader (666) can implement the function of machine reading comprehension (MRC). In one embodiment, the multimodal retriever (662) can find content that can answer a query among various contents. The multimodal ranker (664) can rearrange documents among the found contents according to their relevance to the answer. The multimodal reader (666) can find the answer within the rearranged documents.

[0127] In one embodiment, the response generation module (668) can generate responses of various modalities (or types). The response generation module (668) can assign each generated response an index identical to the corresponding query, thereby matching and storing the generated response as an indexed response (654).

[0128] According to one embodiment, the response generated by the response generation module (668) may include at least one of extracted text content (672), cropped image content (674), trimmed video content (676), and trimmed audio content (678) extracted from the input data.

[0129] According to one embodiment, the electronic device may generate a query for input data including content of various modalities (e.g., text, image, audio, video), rank content of various modalities based on the generated query, and output a response including content of various modalities.

[0130] In one embodiment, the electronic device may assign a ranking to each response based on the query for each index content. In one embodiment, the electronic device may assign a ranking based on the similarity of the query and response when matching the query and response.

[0131] Hereinafter, various embodiments in which an electronic device (e.g., the electronic device (500) of FIG. 5) processes a question and answer in response to a user's speech will be described with reference to FIGS. 7 to 10. The illustrated operations are described below as being performed by the electronic device (e.g., the electronic device (500) of FIG. 5), but at least some of the illustrated operations may be performed by an external server connected to the electronic device.

[0132] FIGS. 7A and 7B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0133] FIG. 7a illustrates an example in which an electronic device or external server providing a voice assistant service responds to a user's inquiry with text content obtained from a manual document including an Internet menu setting page (400) of FIG. 4.

[0134] In one embodiment, at operation 712, the user may activate the voice assistant function of the electronic device and input something such as “how do I set a bookmark?”

[0135] According to one embodiment, in operation 714, a user utterance classifier of an electronic device (or an external server) can confirm that the input user utterance belongs to the device QA category, and analyze the Internet menu setting page, which is input data, to confirm the generated question and response.

[0136] According to one embodiment, in operation 716, the electronic device may analyze the user's utterance "how to set a bookmark" using machine reading comprehension (MRC) and determine "how to set a bookmark" as a matching query.

[0137] According to one embodiment, in operation 718, the electronic device may determine "Add current webpage to bookmarks" as a response matching the query "How to set a bookmark." For example, the text content obtained in FIG. 4 includes "Add current webpage to bookmarks" and "Check bookmark list" that contain "bookmark," and "Add current webpage to bookmarks" may be ranked higher than the query "How to set a bookmark." The electronic device may output the response with the highest ranking among the responses matching the query.

[0138] In one embodiment, at operation 720, the electronic device may output text information, such as "Add current web page to bookmarks," in response to the user's utterance. For example, the electronic device may output the text on a display (e.g., display (540) of FIG. 5 ) or output the text as audio through a speaker (e.g., speaker (216) of FIG. 2 ).

[0139] In this way, if only text information is provided in response to the user's utterance, it may not be an intuitive response to the user's intention of setting a bookmark.

[0140] FIG. 7b illustrates an example in which an electronic device or external server providing a voice assistant service responds to a user's inquiry with an Internet menu setting page (400) of FIG. 4 among the manual documents that are image contents.

[0141] In the following examples, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0142] According to one embodiment, operations 732 to 748 may be understood to be performed in a processor (e.g., processor (510) of FIG. 5) of an electronic device (e.g., electronic device (500) of FIG. 5).

[0143] In one embodiment, at operation 732, the user may activate the voice assistant function of the electronic device and input something like "how do I set a bookmark?"

[0144] According to one embodiment, in operation 734, a user utterance classifier of an electronic device (or an external server) can confirm that the input user utterance belongs to the device QA category, and analyze the Internet menu setting page, which is input data, to confirm the generated question and response.

[0145] In one embodiment, the electronic device (or external server) can pre-generate various queries and at least one response matching the query from input data before the user utters the query.

[0146] According to one embodiment, at operation 736, the electronic device may analyze the user's utterance "how to set a bookmark" using machine reading comprehension (MRC) and determine "how to set a bookmark" as a matching query.

[0147] According to one embodiment, in operation 738, the modal separation module may classify each content included in the input data according to the type of content (e.g., image, table, text). For example, an optical character recognition (OCR) module (e.g., OCR module (620) of FIG. 6) of an electronic device (or an external server) may recognize various types of content included in a document based on the content used for learning through a classifier within the OCR module, and may distinguish each type of content according to the type of content.

[0148] In one embodiment, at operation 740, the index generator module may assign an index to each acquired content. For example, a bookmark image (e.g., bookmarkimage.jpg) may be assigned an index of 43.

[0149] According to one embodiment, in operation 742, the query generator module may generate various queries from each indexed content. According to one embodiment, the query generator module of the electronic device (e.g., the query generator module (640) of FIG. 6) may generate possible queries (e.g., "Tell me how to bookmark") from text extracted from input data, such as a title (e.g., "bookmark"). The query generator module may index and store the generated queries. According to one embodiment, referring to the Internet menu setting page of FIG. 4, the title of the corresponding page, which is image data, is "Internet Menu," and the text "bookmark" may be extracted from the image data. The electronic device may generate candidate queries, such as "How to bookmark," "How do I bookmark?", and "I want to bookmark a web page," from the extracted text, "bookmark," and may assign the same index (e.g., 43) as the content on which the candidate queries are based.

[0150] In one embodiment, at operation 744, the index matching module can match and store generated candidate queries and contents assigned the same index. In one embodiment, a multi-modal retriever of the electronic device (e.g., multi-modal retriever (662) of FIG. 6) can narrow down a set of search candidates for matching queries in input data. The generation of such candidate queries can be configured prior to the user's utterance based on the input data, and in another embodiment, the candidate queries can be generated by searching documents acquired through an external database or the Internet at the time of operation of the voice assistant based on the user's utterance input.

[0151] According to one embodiment, a multi-modal ranker (e.g., multi-modal ranker (664) of FIG. 6) may rank a candidate query and a plurality of responses matching the candidate query, and rearrange the order in which the responses are output based on the ranking.

[0152] In one embodiment, operations 738 to 744 may be performed in advance by analyzing input data prior to receiving the user's speech.

[0153] According to one embodiment, in operation 746, the electronic device may determine the image content "bookmarkimage.jpg" as a response matching the query "how to set a bookmark." According to one embodiment, the multi-modal reader may determine an index of a response corresponding to the query, and the response generation module may extract and output a response based on the determined index. For example, among the contents included in the input data, among the contents indexed for the candidate query "how to set a bookmark," the highest ranking may be assigned to "bookmarkimage.jpg," and the electronic device may determine the highest-ranking "bookmarkimage.jpg" as the response.

[0154] According to one embodiment, in operation 748, the electronic device may output image information, “bookmarkimage.jpg,” through the display as a response to the user utterance. For example, the electronic device may output the entire page (400) of FIG. 4 determined as a response to the display (e.g., the display (540) of FIG. 5).

[0155] The operation illustrated in Fig. 7b, unlike the operation illustrated in Fig. 7a, provides a response with image information rather than text information, thereby providing a voice assistant service that matches the user's intention.

[0156] FIGS. 8A and 8B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0157] FIG. 8A illustrates an example in which an electronic device or an external server providing a voice assistant service responds to a user's query by using a content of one type (e.g., text) acquired from one input data. S21 and S22 described below may be model names of electronic devices (e.g., smartphones), and the screen sizes of S21 and S22 may be different. The input data acquired from the electronic device may be a manual file of the electronic device, and in the manual file, information about the screen size of S21 may be provided as text information, or information about the screen size of S22 may not be provided or may be provided only in another type (e.g., table).

[0158] According to one embodiment, at operation 812, the user may activate the voice assistant function of the electronic device and input something like, “Which one has a wider screen, S21 or S22?”

[0159] According to one embodiment, in operation 814, a user utterance classifier of the electronic device (or external server) can determine that the input user utterance belongs to the device QA category.

[0160] According to one embodiment, in operation 816, the electronic device may analyze the user's utterance "Which one has a wider screen, S21 or S22?" using machine reading comprehension (MRC) and identify a corresponding query.

[0161] According to one embodiment, at operation 818, the electronic device may search for content related to the query "Which one, S21 or S22, has a wider screen?" in the input data. The electronic device may identify text information related to the screen size of S21, such as "The screen size of S21 is 6.2 inches" in the input data, but may not identify text content related to the screen size of S22 in the same input data. Accordingly, the electronic device may determine that it is impossible to respond to the user's query, and may generate a response with information indicating that it is impossible to respond, such as "I cannot respond."

[0162] In one embodiment, at operation 820, the electronic device may output “unable to respond” in response to the user utterance, indicating that it is unable to respond.

[0163] In the embodiment of Fig. 8a, if the user's query is a complex query requiring results from different modalities, there may be a problem in providing an accurate answer because different types (or modalities) of content cannot be utilized. As in this example, when different types of content exist, it is possible to determine multiple queries and responses by converting the content types into the same type, such as image to text or text to image. However, this method may not be easy to implement due to the significant limitations on the search space, which is a fundamental problem in QA.

[0164] FIG. 8b illustrates an example of an electronic device or external server providing a voice assistant service responding to a user's inquiry using various types of content.

[0165] In the following examples, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0166] According to one embodiment, operations 832 to 848 may be understood to be performed in a processor (e.g., processor (510) of FIG. 5) of an electronic device (e.g., electronic device (500) of FIG. 5).

[0167] According to one embodiment, at operation 832, the user may activate the voice assistant function of the electronic device and input something like, “Which one has a wider screen, S21 or S22?”

[0168] According to one embodiment, in operation 834, a user utterance classifier of the electronic device (or external server) can determine that the input user utterance belongs to the device QA category.

[0169] According to one embodiment, in operation 836, the electronic device may analyze the user's utterance "Which one has a wider screen, S21 or S22?" using machine reading comprehension (MRC) and identify a corresponding query.

[0170] In one embodiment, device QA may provide relevant information from various media, such as specific web pages, document-based manuals, wikis, snippets of search results, video streaming, and audio streaming. In device QA, only certain input data (or media) may have the content required to respond, or, depending on the nature of the query, multiple contents may be required to respond. For example, the query "Which one has a wider screen, S21 or S22?" requires information about the screen size of S21 and the screen size of S22, each of which may be contained in different types (or modal) of content.

[0171] According to one embodiment, in operation 838, the modal separation module may classify each content included in the input data according to the type of content (e.g., image, table, text). For example, text information such as "the screen size of S21 is 6.2 inches" may be obtained from a manual file, and table content S22_table including screen size information of S22 may be obtained. According to another embodiment, the electronic device may obtain text content including screen size information of S21 and table content including screen size information of S22 from different data, respectively.

[0172] In one embodiment, at operation 840, the index generator module may assign an index to each acquired content. For example, the index generator module may assign an index of 12 to the acquired text content "S21's screen size is 6.2 inches" and an index of 16 to the acquired table content S22_table.

[0173] According to one embodiment, in operation 842, the query generator module can generate various queries from each indexed content. For example, the query generator module can generate a candidate query "Tell me the screen size of S21" from the acquired text content "The screen size of S21 is 6.2 inches" and assign an index of 12, which is the same as the content. In addition, the candidate query "Tell me the screen size of S22" can be generated from the table content S22_table and assign an index of 16, which is the same as the content. The query generator module can combine the candidate queries "Tell me the screen size of S21" and "Tell me the screen size of S22" generated from multiple contents into a single candidate query and assign a new index (e.g., 44).

[0174] According to one embodiment, at operation 844, the index matching module may match generated candidate queries and content assigned the same index (e.g., 12, 16) and store them in memory (e.g., memory (520) of FIG. 5).

[0175] In one embodiment, operations 838 to 844 may be performed in advance by analyzing input data prior to receiving the user's speech.

[0176] According to one embodiment, at operation 846, the electronic device may generate a response matching the query "Which one, S21 or S22, has a wider screen?", which is text content "S21 is 0.1 inches wider." For example, the electronic device may check the short-form queries "Tell me the screen size of S21" and "Tell me the screen size of S22" that match the complex-form query, check the responses "S21 has a screen size of 6.2 inches" and S22_table that match the indexes of the two generated queries, and generate the final response "S21 is 0.1 inches wider" from the two checked responses.

[0177] According to one embodiment, at operation 848, the electronic device may output text information, “S21 is 0.1 inches wider,” through a display (e.g., display (540) of FIG. 5) in response to the user utterance.

[0178] The operation illustrated in Fig. 8b, unlike the operation illustrated in Fig. 8a, can generate a response corresponding to a complex query by combining two different types of content to generate a response.

[0179] FIGS. 9A and 9B illustrate a method for providing a question response of an electronic device according to one embodiment.

[0180] Figure 9a illustrates an example in which an electronic device or external server providing a voice assistant service responds to a user's query using only data containing general facts, such as Internet searches.

[0181] In one embodiment, at operation 912, the user may activate the voice assistant function of the electronic device and input something like, “Tell me the contact information for restaurant X.”

[0182] According to one embodiment, in operation 914, a user utterance classifier of the electronic device (or external server) can determine that the input user utterance belongs to the QA category.

[0183] According to one embodiment, at operation 916, the electronic device may analyze the user's utterance "Tell me the contact information of restaurant X" using machine reading comprehension (MRC) and determine "contact information of restaurant X" as the matching query.

[0184] In one embodiment, at operation 918, the electronic device may identify "Restaurant X Seoul Branch" as a response matching the query "Restaurant X Contact". For example, the electronic device may check the contact information of Restaurant X on the Internet and identify the contact information of one of the identified Restaurants X, the Seoul Branch.

[0185] According to one embodiment, at operation 920, the electronic device may output text information, “Restaurant X Seoul branch 111-1111,” in response to the user utterance.

[0186] Likewise, even if a real user wants to know the contact information of another branch of Restaurant X, relying only on publicly available information, such as Internet searches, in response to the user's utterance may provide results different from the user's intent.

[0187] FIG. 9b illustrates an example in which an electronic device or an external server providing a voice assistant service responds to a user's inquiry using data including personalized information of the user of the electronic device.

[0188] In the following examples, the operations may be performed sequentially, but are not necessarily sequential. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0189] According to one embodiment, operations 932 to 948 may be understood to be performed in a processor (e.g., processor (510) of FIG. 5) of an electronic device (e.g., electronic device (500) of FIG. 5).

[0190] In one embodiment, at operation 932, the user may activate the voice assistant function of the electronic device and input something like, “Tell me the contact information for restaurant X.”

[0191] According to one embodiment, in operation 934, the user utterance classifier of the electronic device (or external server) can determine that the input user utterance belongs to the QA category.

[0192] According to one embodiment, at operation 936, the electronic device may analyze the user's utterance "Tell me the contact information of restaurant X" using machine reading comprehension (MRC) and identify the corresponding query as "contact information of restaurant X."

[0193] In one embodiment, the electronic device can store personalized information such as text messages, contacts, and notes. For example, in the case of a query such as “restaurant X contacts” as in this example, when searching for contacts for restaurant X on the Internet, contacts from multiple branches can be retrieved. In this case, if the electronic device utilizes the user’s personalized information, it can extract a response that is more in line with the user’s intent, and to do this, it must be able to prioritize processing the personalized information.

[0194] In one embodiment, the electronic device may perform learning by giving a higher weight to content stored internally in the electronic device than to content retrieved externally (e.g., from the Internet).

[0195] According to one embodiment, in operation 938, the modal separation module may classify each content included in the input data according to the type of content (e.g., image, table, text). For example, the modal separation module may identify a receipt image of restaurant X, which is an image content stored in the memory of the electronic device, and contact information of restaurant X in a contact application.

[0196] According to one embodiment, in operation 940, the index generator module may assign an index to each acquired content. For example, the index generator module may assign an index 52 to an acquired image content, such as a receipt image of restaurant X, and may assign an index 53 to the contact information of restaurant X acquired from a contact application. According to one embodiment, the index generator module may assign a different index and a lower weight to content acquired through an external search, such as the Internet, rather than internal information of the electronic device.

[0197] In one embodiment, at operation 942, a query generator module may generate corresponding queries from the indexed content. For example, the query generator module may generate candidate queries such as "Tell me the contact information of restaurant X" and "Tell me the payment amount of restaurant X" in response to an image content, which is an image of a receipt image of restaurant X. The query generator module may assign the same index (e.g., 53, 52) as the content to each generated candidate query.

[0198] According to one embodiment, in operation 944, the index matching module may match generated candidate queries and contents assigned the same index and store the matched candidate queries and contents in a memory (e.g., memory 520 of FIG. 5). In this case, responses including contact information of multiple locations may be matched for one query, “Tell me the contact information of restaurant X,” and among these, contents acquired based on internal information of the electronic device may be given a high ranking, while contents acquired based on information retrieved externally may be given a low ranking.

[0199] In one embodiment, operations 938 to 944 may be performed in advance by analyzing input data prior to receiving the user's speech.

[0200] According to one embodiment, at operation 946, the electronic device may generate text content, “Restaurant X Sincheon Branch 222-2222,” as a response matching the query “Tell me the contact information for Restaurant X.” For example, the electronic device may extract contact information as text through OCR from image content matching the query and provide it.

[0201] According to one embodiment, in operation 948, the electronic device may output text information, “Restaurant X Sincheon Branch 222-2222,” through a display (e.g., display (540) of FIG. 5) in response to the user utterance.

[0202] The operation illustrated in Fig. 9b, unlike the operation illustrated in Fig. 9a, can provide a more accurate response to the user's query intent by extracting a response corresponding to the query using personalized information.

[0203] FIGS. 10A, 10B, and 10C illustrate a method for providing a question response of an electronic device according to one embodiment.

[0204] According to one embodiment, as illustrated in FIGS. 10A, 10B, and 10C, the electronic device may provide a voice assistant as a conversational UI.

[0205] In one embodiment, depending on when the electronic device (or external server) processes the input data that is the target for finding a response to a query, the method can be categorized into a method that utilizes pre-entered data and a method that searches for data entered in real time. Furthermore, the method for obtaining data can be categorized into a method that obtains data through a search based on a user request and a method that relies on data directly provided by the user.

[0206] According to one embodiment, when a user selects input data as a target of a query response, such as a specific file, or selects a specific web page, the electronic device (or external server) may analyze and provide information necessary for a query response from the input data after the selection of the input data.

[0207] FIG. 10A illustrates a screen of a voice assistant provided on an electronic device when a user selects a specific file and the electronic device provides a response corresponding to the user's query within that file.

[0208] According to one embodiment, when the voice assistant function of the electronic device is activated, the electronic device may display a phrase (1010) requesting activation of the voice assistant and / or user speech.

[0209] In one embodiment, a user may input a phrase (1012) indicating that the input data is to be uploaded as a file, either by voice or keyboard input, and upload the file (e.g., manual.pdf). In this case, the electronic device may display a phrase indicating that the file is being uploaded and a display object (1014).

[0210] According to one embodiment, a user may input a query phrase (e.g., "The oil pressure warning light is on, what should I do?") (1016) via voice utterance or keyboard input.

[0211] In one embodiment, the electronic device may analyze input data in response to a user's query. For example, the electronic device may extract a response corresponding to the query, such as text containing keywords included in the query (e.g., "oil pressure warning light," "warning light," "on") from an uploaded file, text and / or image information recorded on a page containing such text, and so on. In this case, the electronic device may display a phrase (1018) indicating that a response is being generated.

[0212] In one embodiment, the electronic device may provide the extracted response via a voice assistant. For example, the electronic device may provide a response (1020) in text format (e.g., "If there is an engine oil leak, please stop driving and refill the engine oil") on a conversational UI.

[0213] FIG. 10b illustrates a screen of a voice assistant provided on an electronic device when a user selects a specific file and the electronic device provides a response corresponding to the user's query within that file.

[0214] In one embodiment, a user may input a phrase (1030) indicating that the input data is to be uploaded as a file, either by voice or keyboard input, and upload the file (e.g., manual.pdf). In this case, the electronic device may display a phrase indicating that the file is being uploaded and a display object (1032).

[0215] According to one embodiment, the user may input a query phrase (e.g., tell me the car specs) (1034) through voice utterance or keyboard input.

[0216] In one embodiment, the electronic device may analyze input data in response to a user's query. For example, the electronic device may extract a response corresponding to the query, such as text containing keywords (e.g., "car" or "spec") included in the query from an uploaded file, text and / or image information recorded on the page containing the text, etc. In this case, the electronic device may display a phrase (1036) indicating that a response is being generated.

[0217] In one embodiment, the electronic device may provide the extracted response via a voice assistant. For example, the electronic device may provide image content (1038) containing a page corresponding to the user's query on an interactive UI.

[0218] FIG. 10c illustrates a screen of a voice assistant provided on an electronic device when a user selects a specific URL and the electronic device provides a response corresponding to the user's query within the web page of that URL.

[0219] In one embodiment, when a user directly selects input data, the user can select the input data via a URL without uploading a specific file.

[0220] In one embodiment, a user may input a phrase (1050) indicating the selection of a specific URL as input data via voice utterance or keyboard input, and input the URL (1052). Here, the URL may be the address of a video streaming site.

[0221] In one embodiment, a user may input a query phrase (e.g., “How much salt should I put in my cooking?”) (1054) via voice utterance or keyboard input.

[0222] In one embodiment, the electronic device may analyze input data in response to a user's query. For example, the electronic device may access a URL, analyze text and / or images contained within a video using an OCR module, or extract text from audio information using an ASR module. The electronic device may display a phrase (1056) indicating that a response is being generated.

[0223] In one embodiment, the electronic device may identify a section of the video content of the URL where a response corresponding to the user's query can be confirmed, and display a phrase (1058) indicating the section. Furthermore, the electronic device may display a captured screen (1060) of the section on the voice assistant.

[0224] In one embodiment, if the user does not specify input data, the system can identify and retrieve data from specific search engines and content providers that may be triggered by other user-entered content, such as conversations with other users. Furthermore, when determining which external service to retrieve data from, the system can reflect the user's preferences based on the user's history. Furthermore, when a user uploads a file, the system can respond to the user's query without re-uploading indexed content after the upload.

[0225] An electronic device according to various embodiments of the present document may include a memory and at least one processor operatively connected to the memory.

[0226] According to one embodiment, the memory may store instructions that are executable by at least one processor and, when executed, cause the electronic device to obtain at least one input data including a plurality of contents and to determine a type of each of the plurality of contents included in the obtained input data.

[0227] According to one embodiment, the memory may store instructions that cause the electronic device to index each type of content, generate a candidate query corresponding to the content, select at least one content corresponding to the candidate query from among the plurality of contents and determine it as a candidate response, and match and store the candidate query and the candidate response.

[0228] According to one embodiment, the electronic device may further include at least one input device.

[0229] According to one embodiment, the memory may store instructions that cause the electronic device to receive a user's query through the input device, select a candidate query corresponding to the user's query, and select at least one of the candidate responses stored to match the selected candidate query and provide the selected candidate response to the user.

[0230] According to one embodiment, the electronic device may further include a display.

[0231] According to one embodiment, the memory may store instructions that cause the electronic device to provide a user's inquiry and a response using an interactive user interface (UI) displayed on the display.

[0232] According to one embodiment, the memory may store instructions that cause the electronic device to assign the same index as the candidate query to the content determined by the candidate response.

[0233] According to one embodiment, the type of the content may include at least one of text, table, image, or audio.

[0234] According to one embodiment, the memory may store instructions that cause the electronic device to determine a plurality of queries from the received user query, determine a plurality of candidate responses matching each of the plurality of queries, and generate a response to be provided to the user by combining the determined plurality of candidate responses.

[0235] According to one embodiment, the memory may store instructions that cause the electronic device to determine a first type of candidate response corresponding to the first query and a second type of candidate response corresponding to the second query when determining a first query and a second query from the received user query.

[0236] According to one embodiment, the memory may store instructions that cause the electronic device to generate a new query by combining the plurality of queries and to assign an index to the generated new query.

[0237] According to one embodiment, the memory may store instructions that cause the electronic device to determine a ranking of the selected at least one content when the at least one content is selected and determined as a candidate response.

[0238] According to one embodiment, the input data may be data stored in the memory or obtained externally through the communication module.

[0239] According to one embodiment, the memory may store instructions that cause the electronic device to set a high weight to content included in data stored in the memory when determining the candidate response corresponding to the candidate query.

[0240] According to one embodiment, the memory may store instructions that cause the electronic device to generate the candidate response as a time interval within the input data, when the input data is video or audio data.

[0241] According to one embodiment, the memory may store instructions that cause the electronic device to transmit a user's speech to an external server using a communication module and obtain a response from the external server through the communication module.

[0242] A method for providing a question-answering function of an electronic device according to various embodiments of the present document may include an operation of acquiring at least one input data including a plurality of contents, an operation of determining a type of each of the plurality of contents included in the acquired input data, an operation of indexing each type of content, an operation of generating a candidate query corresponding to the content, an operation of selecting at least one content corresponding to the candidate query among the plurality of contents and determining it as a candidate response, and an operation of matching and storing the candidate query and the candidate response.

[0243] According to one embodiment, the method may further include an operation of receiving a user's query through an input device, an operation of selecting a candidate query corresponding to the user's query, and an operation of selecting at least one of the candidate responses stored and matching the selected candidate query and providing the selected candidate response to the user.

[0244] According to one embodiment, the electronic device can provide the user's inquiry and the response using an interactive user interface (UI) displayed on the display.

[0245] According to one embodiment, the method may further include an operation of assigning the same index as the candidate query to the content determined by the candidate response.

[0246] According to one embodiment, the type of the content may include at least one of text, table, image, or audio.

[0247] According to one embodiment, the method may include an operation of determining a plurality of queries from the received user query, an operation of determining a plurality of candidate responses matching each of the plurality of queries, and an operation of generating a response to be provided to the user by combining the plurality of determined candidate responses.

[0248] According to one embodiment, the method may further include an operation of combining the plurality of queries to generate a new query and assigning an index to the generated new query.

[0249] According to one embodiment, the input data may be stored in a memory of the electronic device or may be data obtained from outside the electronic device.

[0250] According to one embodiment, the method may further include an operation of setting a high weight to content included in data stored in the memory when determining the candidate response corresponding to the candidate query.

[0251] Electronic devices according to various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of this document are not limited to the aforementioned devices.

[0252] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.

[0253] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0254] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.

[0255] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0256] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and arranged in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

Claims

1. In electronic devices, memory; and comprising at least one processor operatively connected to said memory; The above memory is executable by at least one processor, and when executed, causes the electronic device to: Obtaining at least one input data containing multiple contents, Determine the type of each of the multiple contents included in the input data acquired above, Index each type of content above, Generate candidate queries corresponding to the above content, Selecting at least one content corresponding to the candidate query from among the above plurality of contents and determining it as a candidate response, and An electronic device storing instructions for matching and storing the above candidate queries and the above candidate responses.

2. In paragraph 1, comprising at least one further input device, The above memory, the electronic device, Receive user's query through the above input device, Select a candidate query that corresponds to the above user's query, An electronic device storing instructions for selecting at least one of the stored candidate responses that matches the selected candidate query and providing the selected candidate response to a user.

3. In paragraph 1 or 2, Including more displays, The above memory, the electronic device, An electronic device storing instructions for providing a user's inquiry and a response using an interactive user interface (UI) displayed on the display.

4. In any one of paragraphs 1 to 3, The above memory, the electronic device, An electronic device storing instructions for assigning the same index as the candidate query to the content determined by the candidate response.

5. In any one of paragraphs 1 to 4, The above memory, the electronic device, Determine multiple queries from the received user queries, determining a plurality of candidate responses matching each of the above multiple queries, and An electronic device storing instructions for generating a response to be provided to a user by combining a plurality of candidate responses determined above.

6. In paragraph 5, The above memory, the electronic device, When determining the first and second queries from the user queries received above, An electronic device storing instructions for determining a first type of candidate response corresponding to the first query and a second type of candidate response corresponding to the second query.

7. In paragraph 5 or 6, The above memory, the electronic device, An electronic device storing instructions for generating a new query by combining the above multiple queries and assigning an index to the generated new query.

8. In any one of paragraphs 1 to 7, The above memory, the electronic device, An electronic device storing instructions for determining a ranking of at least one selected content when determining at least one content as a candidate response.

9. In any one of paragraphs 1 to 8, The above input data is data stored in the memory or acquired from the outside through the communication module, The above memory, the electronic device, An electronic device storing instructions for setting a high weight to content included in data stored in the memory when determining the candidate response corresponding to the candidate query.

10. In any one of paragraphs 1 to 9, The above memory, the electronic device, An electronic device storing instructions for generating the candidate response as a time interval within the input data, when the input data is video or audio data.

11. In a method for providing question and answer of an electronic device, An operation of obtaining at least one input data containing multiple contents; An operation for determining the type of each of the plurality of contents included in the input data acquired above; The act of indexing each type of content above; An action to generate candidate queries corresponding to the above content; An operation of selecting at least one content corresponding to the candidate query among the plurality of contents and determining it as a candidate response; and A method comprising the action of matching and storing the candidate query and the candidate response.

12. In paragraph 11, The act of receiving a user's query through an input device; An action for selecting a candidate query corresponding to the above user's query; and A method further comprising the action of selecting at least one of the stored candidate responses that matches the selected candidate query and providing it as a response to the user.

13. In paragraph 11 or 12, A method for providing a user's inquiry and response using an interactive user interface (UI) displayed on a display, wherein the electronic device.

14. In any one of paragraphs 11 to 13, A method further comprising an action of assigning the same index as the candidate query to the content determined by the candidate response.

15. In any one of paragraphs 11 to 14, An action of determining multiple queries from the received user query; An operation of determining a plurality of candidate responses matching each of the plurality of queries; and A method comprising the action of generating a response to be provided to a user by combining a plurality of candidate responses determined above.

Citation Information

Patent Citations

  • System and method for managing digital contents

    KR1020120047622A

  • Irregular striped fabric and its method

    KR1020220107361A

  • Wireless mask

    KR1020220107699A

  • 3 transistor with three-dimensional electrode structure

    KR1020230171332A

  • User modeling for personalized generalized content recommendations

    US20130290339A1