Clinical research institution-oriented intelligent customer service processing method and device
By constructing a knowledge base related to clinical research, screening and generating similar text vectors, the problem that the existing intelligent customer service system cannot meet the needs of clinical research institutions is solved, efficient and professional intelligent customer service services are achieved, and service quality is continuously improved through optimization.
Patent Information
- Application Number
- CN202411066305.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-22
AI Technical Summary
The existing intelligent customer service system cannot meet the efficient and professional needs of clinical research institutions, and cannot effectively handle their complex and diverse customer needs.
By obtaining the query text of the user's question, converting it into a query vector, and filtering out similar target vectors from the knowledge base related to clinical research, obtaining the original text to generate answer text feedback to the user, building a professional knowledge base, optimizing the knowledge base content to provide Personalized service.
It has achieved efficient and professional intelligent customer service services for clinical research institutions, can automatically answer user questions and provide personalized services according to user needs, and improve system performance and the accuracy of knowledge base content through continuous optimization.
Smart Images

Figure CN119003723A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent customer service technology, and in particular to an intelligent customer service processing method and device for clinical research institutions. Background Art
[0002] With the continuous development of artificial intelligence technology, intelligent customer service is being used more and more widely in various fields. However, for clinical research institutions, the existing intelligent customer service systems often cannot meet their needs because the fields involved are relatively professional and customer needs are diverse. Therefore, how to provide clinical research institutions with an efficient and professional intelligent customer service solution has become an urgent problem to be solved.
[0003] At present, no effective solution has been proposed to address the problem that the intelligent customer service system in related technologies cannot meet the needs of clinical research institutions. Summary of the invention
[0004] The purpose of this application is to address the deficiencies in the prior art and to provide an intelligent customer service processing method, apparatus, computer equipment and computer-readable storage medium for clinical research institutions, so as to at least solve the problem that the intelligent customer service system in the related technology cannot meet the usage requirements of clinical research institutions.
[0005] To achieve the above purpose, the technical solution adopted by this application is:
[0006] In a first aspect, the present application embodiment provides an intelligent customer service processing method for clinical research institutions, including:
[0007] Obtaining a query text asked by a user, and converting the query text into a query vector;
[0008] Filtering out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector;
[0009] Obtaining the original text corresponding to the target vector;
[0010] Generate an answer text based on the original text and feed it back to the user.
[0011] In some embodiments, before obtaining the query text asked by the user, the method further includes:
[0012] Obtain relevant documents from clinical research institutions;
[0013] Dividing the document into text blocks to obtain multiple text blocks;
[0014] Performing vector conversion on each of the text blocks to obtain multiple text vectors;
[0015] The multiple text vectors are stored in a database to obtain the knowledge base.
[0016] In some embodiments, the step of selecting a target vector similar to the query vector from a knowledge base includes:
[0017] Calculating the vector similarity between the query vector and each text vector in the knowledge base respectively;
[0018] The text vectors whose vector similarity is higher than the target threshold are determined as the target vectors.
[0019] In some embodiments, the step of selecting a target vector similar to the query vector from a knowledge base includes:
[0020] Obtaining similar texts of the query text, and converting the similar texts into similarity vectors;
[0021] Calculating the vector similarity between the similarity vector and each text vector in the knowledge base respectively;
[0022] The text vector whose vector similarity is higher than the target threshold is determined as the target vector.
[0023] In some embodiments, after generating a reply text according to the original text and feeding it back to the user, the method further includes:
[0024] Obtaining confirmation information of the user on the answer text;
[0025] The size of the text block and / or the number of overlapping characters between adjacent text blocks in the knowledge base are adjusted according to the query text, the answer text and the confirmation information.
[0026] In a second aspect, the embodiment of the present application provides an intelligent customer service processing device for clinical research institutions, including:
[0027] A first acquisition unit, configured to acquire a query text asked by a user and convert the query text into a query vector;
[0028] a screening unit, configured to screen out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector;
[0029] A second acquisition unit, used to acquire the original text corresponding to the target vector;
[0030] A generating unit is used to generate a reply text based on the original text and feed it back to the user.
[0031] In some embodiments, the device further comprises:
[0032] A third acquisition unit is used to acquire relevant documents of the clinical research institution before acquiring the query text asked by the user;
[0033] A division unit, used for dividing the document into text blocks to obtain a plurality of text blocks;
[0034] A conversion unit, used for performing vector conversion on each of the text blocks to obtain a plurality of text vectors;
[0035] A storage unit is used to store the multiple text vectors in a database to obtain the knowledge base.
[0036] In some embodiments, the screening unit comprises:
[0037] A first calculation module, used to respectively calculate the vector similarity between the query vector and each text vector in the knowledge base;
[0038] The first determination module is used to determine the text vector whose vector similarity is higher than the target threshold as the target vector.
[0039] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect above when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.
[0041] The present application adopts the above technical scheme. Compared with the prior art, the intelligent customer service processing method for clinical research institutions provided in the embodiment of the present application obtains the query text of the user's question and converts the query text into a query vector; selects a target vector similar to the query vector from the knowledge base, wherein the knowledge base stores text vectors corresponding to multiple text blocks, and the text vectors corresponding to the multiple text blocks include the target vector; obtains the original text corresponding to the target vector; generates an answer text based on the original text and feeds it back to the user, by constructing a knowledge base related to clinical research and generating matching answers to the user's questions based on the knowledge base, thereby solving the problem that the intelligent customer service system in the related technology cannot meet the use needs of clinical research institutions, and achieving the effect of providing efficient and professional intelligent customer service for clinical research institutions.
[0042] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 is a structural block diagram of a mobile terminal according to an embodiment of the present application;
[0045] Figure 2 is a flow chart of an intelligent customer service processing method for clinical research institutions according to an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of an intelligent customer service processing flow for clinical research institutions according to a preferred embodiment of the present application;
[0047] Figure 4 is a structural block diagram of an intelligent customer service processing device for clinical research institutions according to an embodiment of the present application;
[0048] Figure 5 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0050] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0051] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0053] This embodiment provides a mobile terminal. Figure 1 is a structural block diagram of a mobile terminal according to an embodiment of the present application. Figure 1 As shown, the mobile terminal includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0054] Combine the following Figure 1The following is a detailed introduction to the various components of the mobile terminal:
[0055] The RF circuit 110 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 180 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 110 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0056] The memory 120 can be used to store software programs and modules. The processor 180 executes various functional applications and data processing of the mobile terminal by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0057] The input unit 130 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 131 or near the touch panel 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0058] The display unit 140 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 131 may cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 1 In the embodiment, the touch panel 131 and the display panel 141 are used as two independent components to implement the input and output functions of the mobile terminal, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated to implement the input and output functions of the mobile terminal.
[0059] The mobile terminal may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile terminal, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0060] The speaker 161 and microphone 162 in the audio circuit 160 can provide an audio interface between the user and the mobile terminal. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another mobile terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing.
[0061] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 170. It provides users with wireless broadband Internet access. Figure 1 A WiFi module 170 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention, or replaced with other short-range wireless transmission modules, such as a Zigbee module or a WAPI module.
[0062] The processor 180 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, so as to monitor the mobile terminal as a whole. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.
[0063] The mobile terminal also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0064] Although not shown, the mobile terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0065] In this embodiment, the processor 180 is configured to:
[0066] Obtaining a query text asked by a user, and converting the query text into a query vector;
[0067] Filtering out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector;
[0068] Obtaining the original text corresponding to the target vector;
[0069] Generate an answer text based on the original text and feed it back to the user.
[0070] In some embodiments, the processor 180 is further configured to:
[0071] Obtain relevant documents from clinical research institutions;
[0072] Dividing the document into text blocks to obtain multiple text blocks;
[0073] Performing vector conversion on each of the text blocks to obtain multiple text vectors;
[0074] The multiple text vectors are stored in a database to obtain the knowledge base.
[0075] In some embodiments, the processor 180 is further configured to:
[0076] Calculating the vector similarity between the query vector and each text vector in the knowledge base respectively;
[0077] The text vectors whose vector similarity is higher than the target threshold are determined as the target vectors.
[0078] In some embodiments, the processor 180 is further configured to:
[0079] Obtaining similar texts of the query text, and converting the similar texts into similarity vectors;
[0080] Calculating the vector similarity between the similarity vector and each text vector in the knowledge base respectively;
[0081] The text vector whose vector similarity is higher than the target threshold is determined as the target vector.
[0082] In some embodiments, the processor 180 is further configured to:
[0083] Obtaining confirmation information of the user on the answer text;
[0084] The size of the text block and / or the number of overlapping characters between adjacent text blocks in the knowledge base are adjusted according to the query text, the answer text and the confirmation information.
[0085] This embodiment provides an intelligent customer service processing method for clinical research institutions. Figure 2 is a flow chart of an intelligent customer service processing method for clinical research institutions according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0086] Step S201, obtaining a query text asked by a user, and converting the query text into a query vector;
[0087] Step S202, screening out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector;
[0088] Step S203, obtaining the original text corresponding to the target vector;
[0089] Step S204: Generate a reply text based on the original text and feed it back to the user.
[0090] In some embodiments, before obtaining the query text asked by the user, the embodiment of the present application further includes:
[0091] Obtain relevant documents from clinical research institutions;
[0092] Dividing the document into text blocks to obtain multiple text blocks;
[0093] Performing vector conversion on each of the text blocks to obtain multiple text vectors;
[0094] The multiple text vectors are stored in a database to obtain the knowledge base.
[0095] The embodiment of the present application collects relevant data of clinical research institutions, including but not limited to clinical research projects, researchers, research equipment, research results, etc., and then classifies, organizes and mines the collected data to extract key information, and builds a professional knowledge base for clinical research institutions based on the analysis results, including but not limited to clinical research methods, research ethics, research regulations, etc. The embodiment of the present application can use LangChain's Indexes index to load documents, segment text, vectorize and store the information in the knowledge base in the vector storage database FAISS, and store the plain text in MySQL, which is convenient for staff to maintain and modify.
[0096] In some embodiments, the step of selecting a target vector similar to the query vector from a knowledge base includes:
[0097] Calculating the vector similarity between the query vector and each text vector in the knowledge base respectively;
[0098] The text vectors whose vector similarity is higher than the target threshold are determined as the target vectors.
[0099] In some embodiments, the step of selecting a target vector similar to the query vector from a knowledge base includes:
[0100] Obtaining similar texts of the query text, and converting the similar texts into similarity vectors;
[0101] Calculating the vector similarity between the similarity vector and each text vector in the knowledge base respectively;
[0102] The text vector whose vector similarity is higher than the target threshold is determined as the target vector.
[0103] The embodiment of the present application develops an intelligent customer service system based on the knowledge base, which can automatically answer users' questions and provide personalized services according to user needs. The embodiment of the present application traverses the document blocks that have been split and vectorized in the knowledge base, and compares the similarity between them and the vectorized user question query text. By calculating the similarity, the most similar document blocks can be found, and then according to the previous mapping relationship, the original document content corresponding to the most similar document can be found, and then the answer text generated can be returned to the user, and the user's questions and the documents returned by the system are recorded for subsequent optimization analysis.
[0104] The embodiment of the present application can use a sparse searcher and a dense searcher for hybrid search. The sparse searcher is good at finding relevant documents based on keywords, while the dense searcher is good at finding relevant documents based on semantic similarity. Combining a sparse searcher (such as BM25) with a dense searcher (such as embedding similarity) can achieve complementary advantages, thereby improving the accuracy of the search and achieving the effect of improving the accuracy of the generated answer text.
[0105] In some embodiments, after generating a reply text according to the original text and feeding it back to the user, the method further includes:
[0106] Obtaining confirmation information of the user on the answer text;
[0107] The size of the text block and / or the number of overlapping characters between adjacent text blocks in the knowledge base are adjusted according to the query text, the answer text and the confirmation information.
[0108] The embodiment of the present application can continuously optimize the performance and knowledge base content of the intelligent customer service system based on user feedback and actual usage. The embodiment of the present application uses a worker method to accurately mark whether the user's questions and the answer documents returned by the system are appropriate, thereby achieving document block optimization, including: optimizing the size of the document block segmentation and the number of characters that each document block overlaps with the previous and next document blocks, ensuring that context information is retained during the segmentation process, and improving the accuracy of the query.
[0109] The embodiment of the present application collects relevant data of clinical research institutions, classifies, organizes and mines the data, extracts key information, builds a professional knowledge base for clinical research institutions, and develops an intelligent customer service system based on the knowledge base. The system can automatically answer users' questions and provide personalized services according to user needs. In addition, the solution also has the characteristics of continuous optimization, and can continuously optimize the performance and knowledge base content of the intelligent customer service system according to user feedback and actual usage. Therefore, the intelligent customer service solution of the embodiment of this application can provide efficient and professional services for clinical research institutions.
[0110] Figure 3 is a schematic diagram of the intelligent customer service processing flow for clinical research institutions according to the preferred embodiment of the present application, such as Figure 3 As shown, the embodiment of the present invention includes the following process:
[0111] 1. Data collection: Collect relevant data from clinical research institutions through various channels. These data may include but are not limited to clinical research projects, researchers, research equipment, research results, etc. The collected data needs to be cleaned and organized to ensure its accuracy and completeness.
[0112] 2. Data analysis: Classify, organize and mine the collected data. Through natural language processing, text mining and other technical means, extract key information such as common user questions, high-frequency words, etc. This information will be used to build a professional knowledge base and develop an intelligent customer service system.
[0113] 3. Knowledge base construction: Based on the analysis results, a professional knowledge base for clinical research institutions is constructed. The knowledge base may include but is not limited to clinical research methods, research ethics, research regulations, etc. The construction of the knowledge base requires the participation and review of professionals to ensure its accuracy and authority.
[0114] 4. Intelligent customer service system development: Based on the professional knowledge base, develop an intelligent customer service system. The system can use artificial intelligence technology to automatically answer user questions and provide personalized services according to user needs. For example, when a user inquires about the relevant information of a clinical research project, the intelligent customer service system can provide users with detailed answers based on the content in the knowledge base. In addition, the system can also continuously optimize performance and knowledge base content based on user feedback and actual usage.
[0115] 5. Continuous optimization: Based on user feedback and actual usage, the performance of the intelligent customer service system and the content of the knowledge base are continuously optimized. User feedback can be sorted and classified through data mining and analysis techniques to find out the deficiencies of the intelligent customer service system and improve them. At the same time, with the development of clinical research institutions and the continuous updating of research fields, the knowledge base also needs to be continuously updated and improved to maintain its timeliness and accuracy.
[0116] The embodiment of the present application provides an intelligent customer service solution for clinical research institutions. The solution collects and analyzes relevant data of clinical research institutions, builds a professional knowledge base for this field, and develops an intelligent customer service system based on the knowledge base, which can automatically answer users' questions and provide personalized services. In addition, the solution also has the characteristics of continuous optimization, and can continuously improve the performance and knowledge base content of the intelligent customer service system based on user feedback and actual usage. Therefore, the intelligent customer service solution of the embodiment of the present application can provide efficient and professional services for clinical research institutions.
[0117] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0118] This embodiment provides an intelligent customer service processing device for clinical research institutions, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0119] Figure 4 is a structural block diagram of an intelligent customer service processing device for clinical research institutions according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:
[0120] A first acquisition unit 41 is used to acquire a query text asked by a user and convert the query text into a query vector;
[0121] A screening unit 42, configured to screen out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector;
[0122] A second acquisition unit 43 is used to acquire the original text corresponding to the target vector;
[0123] The generating unit 44 is used to generate a reply text according to the original text and feed it back to the user.
[0124] In some embodiments, the device further comprises:
[0125] A third acquisition unit is used to acquire relevant documents of the clinical research institution before acquiring the query text asked by the user;
[0126] A division unit, used for dividing the document into text blocks to obtain a plurality of text blocks;
[0127] A conversion unit, used for performing vector conversion on each of the text blocks to obtain a plurality of text vectors;
[0128] A storage unit is used to store the multiple text vectors in a database to obtain the knowledge base.
[0129] In some embodiments, the screening unit 42 includes:
[0130] A first calculation module, used to respectively calculate the vector similarity between the query vector and each text vector in the knowledge base;
[0131] The first determination module is used to determine the text vector whose vector similarity is higher than the target threshold as the target vector.
[0132] In some embodiments, the screening unit 42 further includes:
[0133] An acquisition module, used for acquiring similar texts of the query text and converting the similar texts into similarity vectors;
[0134] A second calculation module, used to respectively calculate the vector similarity between the similarity vector and each text vector in the knowledge base;
[0135] The second determination module is used to determine the text vector whose vector similarity is higher than the target threshold as the target vector.
[0136] In some embodiments, the device further comprises:
[0137] A third acquisition unit is used to acquire the user's confirmation information on the answer text after the answer text is generated according to the original text and fed back to the user;
[0138] An adjusting unit is used to adjust the size of the text block in the knowledge base and / or the number of overlapping characters between adjacent text blocks according to the query text, the answer text and the confirmation information.
[0139] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0140] The embodiment provides a computer device. In combination with the embodiment of the present application, the intelligent customer service processing method for clinical research institutions can be implemented by the computer device. Figure 5 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present application.
[0141] The computer device may include a processor 51 and a memory 52 storing computer program instructions.
[0142] Specifically, the processor 51 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0143] Among them, the memory 52 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 52 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 52 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 52 may be inside or outside the data processing device. In a specific embodiment, the memory 52 is a non-volatile memory. In a specific embodiment, the memory 52 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0144] The memory 52 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 51 .
[0145] The processor 51 reads and executes computer program instructions stored in the memory 52 to implement any one of the intelligent customer service processing methods for clinical research institutions in the above embodiments.
[0146] In some of the embodiments, the computer device may further include a communication interface 53 and a bus 50. Figure 5 As shown, the processor 51, the memory 52, and the communication interface 53 are connected via a bus 50 and communicate with each other.
[0147] The communication interface 53 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 53 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0148] The bus 50 includes hardware, software or both, and couples the components of the computer device to each other. The bus 50 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 50 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 50 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0149] In addition, in combination with the intelligent customer service processing method for clinical research institutions in the above embodiments, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the intelligent customer service processing methods for clinical research institutions in the above embodiments is implemented.
[0150] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0151] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An intelligent customer service processing method for clinical research institutions, characterized in that: include: Obtaining a query text asked by a user, and converting the query text into a query vector; Filtering out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector; Obtaining the original text corresponding to the target vector; Generate an answer text based on the original text and feed it back to the user.
2. The method according to claim 1, characterized in that Before obtaining the query text asked by the user, the method further includes: Obtain relevant documents from clinical research institutions; Dividing the document into text blocks to obtain multiple text blocks; Performing vector conversion on each of the text blocks to obtain multiple text vectors; The multiple text vectors are stored in a database to obtain the knowledge base.
3. The method according to claim 1, characterized in that: The step of selecting a target vector similar to the query vector from the knowledge base includes: Calculating the vector similarity between the query vector and each text vector in the knowledge base respectively; The text vectors whose vector similarity is higher than the target threshold are determined as the target vectors.
4. The method according to claim 3, characterized in that The step of selecting a target vector similar to the query vector from the knowledge base includes: Obtaining similar texts of the query text, and converting the similar texts into similarity vectors; Calculating the vector similarity between the similarity vector and each text vector in the knowledge base respectively; The text vector whose vector similarity is higher than the target threshold is determined as the target vector.
5. The method according to any one of claims 1 to 4, characterized in that After generating a reply text according to the original text and feeding it back to the user, the method further includes: Obtaining confirmation information of the user on the answer text; The size of the text block and / or the number of overlapping characters between adjacent text blocks in the knowledge base are adjusted according to the query text, the answer text and the confirmation information.
6. An intelligent customer service processing device for clinical research institutions, characterized in that: include: A first acquisition unit, configured to acquire a query text asked by a user and convert the query text into a query vector; a screening unit, configured to screen out a target vector similar to the query vector from a knowledge base, wherein the knowledge base stores text vectors corresponding to a plurality of text blocks related to clinical research, and the text vectors corresponding to the plurality of text blocks include the target vector; A second acquisition unit, used to acquire the original text corresponding to the target vector; A generating unit is used to generate a reply text based on the original text and feed it back to the user.
7. The device according to claim 6, characterized in that Also includes: A third acquisition unit is used to acquire relevant documents of the clinical research institution before acquiring the query text asked by the user; A division unit, used for dividing the document into text blocks to obtain a plurality of text blocks; A conversion unit, used for performing vector conversion on each of the text blocks to obtain a plurality of text vectors; A storage unit is used to store the multiple text vectors in a database to obtain the knowledge base.
8. The device according to claim 6, characterized in that The screening unit comprises: A first calculation module, used to respectively calculate the vector similarity between the query vector and each text vector in the knowledge base; The first determination module is used to determine the text vector whose vector similarity is higher than the target threshold as the target vector.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
End-side RAG implementation method and system based on fusion architecture
CN121029322A
An end-side rag implementation method and system based on a fusion architecture
CN121029322B
