Employee information query method, apparatus and device, and storage medium
By combining the employee information query method with the question-answering model, the problem of lengthy employee information query paths is solved, and fast, accurate, and secure information acquisition is achieved.
Patent Information
- Application Number
- CN202510931566.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2025-10-17
AI Technical Summary
The existing employee information query method is long and complicated, resulting in long query time and low efficiency.
An employee information query method is adopted to obtain questions related to the queried object, and information is obtained using the employee information query interface. The information and questions are integrated and input into the employee information question-answering model to generate answers.
It significantly shortens the time of a single query, improves the efficiency of employee information acquisition, and ensures the accuracy and security of queries through permission control and information integration.
Smart Images

Figure CN120804141A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of question and answer models, and particularly relates to an employee information query method and device, equipment and a storage medium. BACKGROUND
[0002] In daily human resource management work of an enterprise, HR (human resource specialist) and leaders at all levels often need to frequently query employee information to support many key business decisions and execution processes such as personnel allocation, performance evaluation, salary accounting, training planning and the like.
[0003] However, in the current employee information query method, the query path is long and complex, resulting in long query time and low efficiency.
[0004] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0005] The main purpose of the present application is to provide an employee information query method, device, equipment and storage medium, aiming at solving the technical problems of long query time and low efficiency of the current employee information query method.
[0006] To achieve the above purpose, the present application provides an employee information query method, which comprises:
[0007] Obtaining a question related to a queried object;
[0008] Based on the question related to the queried object, the information of the queried object is obtained through an employee information query interface;
[0009] The information of the queried object, the question related to the queried object, the preset question and answer instruction and the preset output requirement are integrated to obtain integrated information;
[0010] The integrated information is input into an employee information question and answer model to obtain an answer related to the queried object.
[0011] In an embodiment, the step of obtaining the information of the queried object based on the question related to the queried object through the employee information query interface comprises:
[0012] Obtaining the authority of the questioner;
[0013] The step of obtaining the information of the queried object based on the question related to the queried object through the employee information query interface comprises:
[0014] Based on the question related to the queried object and the authority of the questioner, the information of the queried object is obtained through the employee information query interface.
[0015] In an embodiment, the step of querying the information of the queried object based on the question related to the queried object and the authority of the questioner via the employee information query interface comprises:
[0016] obtaining the name of the queried object from the question related to the queried object;
[0017] querying the information of the queried object based on the name of the queried object and the authority of the questioner via the employee information query interface.
[0018] In an embodiment, the step of querying the information of the queried object based on the name of the queried object and the authority of the questioner via the employee information query interface comprises:
[0019] querying whether the name of the queried object is unique within the authority of the questioner;
[0020] if yes, obtaining the id of the queried object based on the name of the queried object;
[0021] inputting the id of the queried object into the employee information query interface to obtain the information of the queried object.
[0022] In an embodiment, the step of querying whether the name of the queried object is unique within the authority of the questioner further comprises:
[0023] if no, obtaining several ids of the queried object based on the name of the queried object;
[0024] inputting the several ids of the queried object into the employee information query interface to obtain multiple groups of information corresponding to the several ids;
[0025] comparing the multiple groups of information with the question related to the queried object to obtain the information of the queried object.
[0026] In an embodiment, the step of inputting the integrated information into the employee information Q&A model to obtain the answer related to the queried object further comprises:
[0027] obtaining the authority of the questioner;
[0028] reviewing and / or screening the answer related to the queried object based on the authority of the questioner to obtain the answer related to the queried object within the authority of the questioner.
[0029] In an embodiment, the step of inputting the integrated information into the employee information Q&A model to obtain the answer related to the queried object further comprises:
[0030] performing confidence score on the answer related to the queried object.
[0031] In addition, to achieve the above object, the present application also provides an employee information query device, which comprises:
[0032] A question obtaining module is configured to obtain a question related to the queried object;
[0033] An interface query module is configured to query the information of the queried object through an employee information query interface based on the question related to the queried object;
[0034] An integration module is configured to integrate the information of the queried object, the question related to the queried object, a preset question-and-answer instruction and a preset output requirement to obtain integrated information;
[0035] A question-and-answer module is configured to input the integrated information into an employee information question-and-answer model to obtain an answer related to the queried object.
[0036] In addition, to achieve the above object, the present application also provides an employee information query device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the employee information query method as described above.
[0037] In addition, to achieve the above object, the present application also provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the employee information query method as described above.
[0038] The one or more technical solutions provided by the present application have at least the following technical effects:
[0039] The present application adopts the method of inputting the question related to the queried object into the employee information question-and-answer model, the model can quickly respond and give an answer, shorten the single query time, and significantly improve the efficiency of obtaining employee information. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the principles of the application.
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0042] Figure 1 The flowchart provided by the employee information query method embodiment one of the present application;
[0043] Figure 2 A flowchart provided for the second embodiment of the employee information query method of the present application;
[0044] Figure 3 A flowchart provided for the fourth embodiment of the employee information query method of the present application;
[0045] Figure 4 A brief flowchart of the employee information query method of the present application;
[0046] Figure 5 A module structure diagram of the employee information query device of the present application;
[0047] Figure 6 A device structure diagram of the hardware running environment involved in the employee information query method of the present application.
[0048] The object implementation, functional features and advantages of the present application will be further explained with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application, and are not used to limit the present application.
[0050] In order to better understand the technical solutions of the present application, the following will be described in detail in combination with the drawings and specific embodiments of the specification.
[0051] The main solution of the embodiments of the present application is: obtaining a question related to the queried object; obtaining the information of the queried object through the employee information query interface based on the question related to the queried object; integrating the information of the queried object, the question related to the queried object, the preset question and answer instruction and the preset output requirement to obtain integrated information; inputting the integrated information into the employee information question and answer model to obtain an answer related to the queried object.
[0052] In the present embodiment, the employee information query system is used as the execution subject for the convenience of description.
[0053] Because the current employee information query method has a long and complex query path, it leads to long query time and low efficiency.
[0054] The present application provides a solution, which adopts the method of inputting the question related to the queried object into the employee information question and answer model. The model can quickly respond and give an answer, shorten the single query time, and significantly improve the efficiency of obtaining employee information.
[0055] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication, and program execution capabilities, such as a tablet computer, personal computer, or mobile phone, or an electronic device or employee information query device capable of implementing the aforementioned functions, or an electronic system or employee information query system capable of implementing the aforementioned functions. This embodiment and the following embodiments will be described below using the employee information query system as an example.
[0056] Based on this, the embodiment of the present application provides an employee information query method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the employee information query method of this application.
[0057] In this embodiment, the employee information query method includes steps S10, S30-S50:
[0058] Step S10, obtaining questions related to the queried object;
[0059] The employee information query system receives user-entered questions related to the employee being queried. These questions can be in natural language, such as "When did Zhang San start working?" or "What is the salary structure of Li Si?" The system accurately understands the user's question and extracts key information (such as the employee's name and query fields) for subsequent processing.
[0060] Step S30: Based on questions related to the queried object, obtain information about the queried object through the employee information query interface;
[0061] Based on the query related to the employee being queried, a pre-designed employee information query interface is invoked. This interface connects to a database or other data source storing employee information and accurately locates and extracts detailed information related to the employee based on key information in the query (such as employee name, employee number, and other identifiers). For example, if the query is "Query Wang Wu's position and start date," the query interface will search the database for records corresponding to Wang Wu and retrieve his information.
[0062] Step S40, integrating the information of the queried object and the questions related to the queried object to obtain integrated information;
[0063] The integration method may be to combine the two according to a certain data structure or format to form a complete data set containing the original question and the corresponding query results.
[0064] Further, the information of the queried object and the questions and answer instructions related to the queried object can be integrated, for example, if the user says: Who is the emergency contact of Zhang San? It is integrated as: ##{Zhang San employee information json data}, these are Zhang San's information, the meaning of each field and the interpretation of the value are: {… Staffcert in certNo is the ID number, and when it is empty, it means "the system is not maintained"; politicalName is the political face, and when it is empty, it means non-party personage…}; ## Task: Please combine the user question "Who is the emergency contact of Zhang San?" According to the following output requirements, give a concise and accurate answer.
[0065] Step S50, input the integrated information to the employee information question and answer model to obtain the answer related to the queried object, and the employee information question and answer model is obtained based on the training and fine-tuning optimization of the large language model.
[0066] Among them, as an implementation, a suitable large language model can be selected as a basic model, such as GPT (Generative Pre-trained Transformer), BERT (Bidirectional Encoder Representations from Transformers) and the like. These models are usually pre-trained on large-scale text data and have good language understanding and generation capabilities.
[0067] On the basis of the basic model, further training is carried out using professional field data related to employee information. These data can include enterprise human resource management manuals, employee manuals, historical query records, etc., the purpose of which is to enable the model to better understand the terms and context of the employee information field.
[0068] Then, the large language model after training is fine-tuned and optimized.
[0069] Optionally, the answers generated by the model can be scored and feedback through the introduction of artificial evaluation mechanism. The model adjusts its generation strategy according to these feedbacks, improving the quality and accuracy of the answers.
[0070] Optionally, the model can be trained for context optimization for common complex query scenarios in employee information queries (such as multi-condition filtering, cross-field association query, etc.), so that it can better handle complex query logic and generate coherent and accurate answers.
[0071] With the changes of enterprise employee information and the diversification of user query requirements, the model is updated and optimized regularly to ensure that it always maintains high accuracy and response speed.
[0072] The embodiment provides an employee information query method. The application adopts a method of inputting a question related to a queried object into an employee information question and answer model. The model can quickly respond and give an answer, shortens the single query time, and significantly improves the efficiency of obtaining employee information. The embodiment integrates the information of the queried object, the question related to the queried object, the preset question and answer instruction, and the preset output requirement to obtain integrated information. The integrated information helps the model better understand the intention and background of the user's question, and can make the model generate more natural and accurate answers.
[0073] Based on the above embodiment of the application, in the second embodiment of the application, the same or similar contents as the above embodiment can be referred to the above introduction, and the following will not be repeated. On this basis, referring to Figure 2 , step S30, based on the question related to the queried object, the employee information query interface is used to query the information of the queried object, and before the step S30, the employee information query method further includes step S20:
[0074] Step S20, obtaining the authority of the questioner;
[0075] It should be noted that in the enterprise environment, employee information often involves personal privacy and enterprise sensitive data, so the access authority of the information needs to be strictly controlled. This step aims to obtain the authority information of the questioner, which is usually related to the role, position, and department of the questioner in the enterprise. For example, a department manager may have the authority to query the detailed information of the employees in the department, while an ordinary employee may only be able to query his own basic information.
[0076] The step S30, based on the question related to the queried object, the employee information query interface is used to query the information of the queried object, and before the step S30, the employee information query method further includes step S20:
[0077] Step S31, based on the question related to the queried object and the authority of the questioner, the employee information query interface is used to query the information of the queried object.
[0078] Referring to Figure 3 , the step S31 includes steps S311-S312:
[0079] Step S311, obtaining the name of the queried object from the question related to the queried object;
[0080] Among them, the natural language processing technology can be used to extract the key information, the name of the queried object (such as "Zhang San" in the above example), from the question text. Specifically, the name of the person can be extracted by keyword matching, named entity recognition, etc.
[0081] Step S312, based on the name of the queried object and the authority of the interrogator, querying the information of the queried object through an employee information query interface.
[0082] Wherein, after obtaining the name of the queried object and the authority of the interrogator, the system will perform authority verification. It will check whether the interrogator has the authority to query the employee information, and the information range allowed by the authority. If the interrogator has the corresponding authority, the employee information query interface is used to find and obtain the detailed information of the employee in the database or other data sources according to the name; if the interrogator does not have the authority, the query operation is rejected or a corresponding insufficient authority prompt is returned.
[0083] After querying the information of the queried object through the employee information query interface based on the name of the queried object and the authority of the interrogator, the information of the queried object and the question related to the queried object are integrated to obtain integrated information; and the integrated information is input into an employee information question and answer model to obtain the answer related to the queried object.
[0084] The embodiments of the present application realize precise query based on authority, which not only ensures that legal users can obtain the required information, but also prevents illegal access, ensuring the security of employee information and the compliance of query.
[0085] Based on the above embodiments of the present application, in Embodiment Three of the present application, the same or similar contents as the above embodiments can be referred to the above introduction, and will not be described in detail. On this basis, step S312, based on the name of the queried object and the authority of the interrogator, querying the information of the queried object through an employee information query interface, further includes steps S3121-S3123:
[0086] Step S3121, querying whether the name of the queried object is unique within the authority of the interrogator;
[0087] In the enterprise employee information system, there may be a situation of the same name. After obtaining the name of the queried object, it is necessary to determine whether this name only corresponds to one employee within the authority range of the interrogator. For example, the interrogator's authority can only access the employee information of a specific department, and there may be two or more employees with the same name in the department. The system will query the employee information database within the authority range to count the number of employees matching the name.
[0088] Step S3122, if yes, obtaining the id of the queried object based on the name of the queried object;
[0089] If it is determined that the name of the queried object is unique within the authority of the interrogator, the system can obtain the unique identifier (id) of the employee corresponding to the name from the employee information database. The employee id is usually a unique code assigned by the system to each employee for accurate identification and differentiation of different employees in the database. The corresponding id field value can be found by querying the database according to the name field.
[0090] In step S3123, the id of the queried object is input into the employee information query interface to obtain the information of the queried object.
[0091] After obtaining the id of the queried object, the system inputs the id as a query parameter into the employee information query interface. The query interface accurately finds and extracts all relevant information of the employee in the database according to the id.
[0092] The embodiments of the present application first determine the uniqueness of the name, then obtain the id, and finally query based on the id, ensuring that the detailed information of the queried object can be accurately and efficiently obtained within the authority.
[0093] Based on the above embodiments of the present application, in Embodiment Four of the present application, the same or similar contents as the above embodiments can be referred to the above introduction, and will not be repeated hereinafter. On this basis, after querying whether the name of the queried object is unique within the authority of the interrogator in step S3121, steps S3124-S3126 are further included:
[0094] In step S3124, if not, a plurality of ids of the queried object are obtained based on the name of the queried object.
[0095] Among them, the system determines that the name of the queried object is not unique within the authority of the interrogator, i.e. there are multiple employees using the same name. At this time, the system will retrieve all unique identifiers (ids) corresponding to the employees matching the name from the employee information database. Since there are multiple names, a plurality of ids will be obtained, each id corresponding to a multiple-name employee.
[0096] In step S3125, the plurality of ids of the queried object are input into the employee information query interface to obtain a plurality of groups of information corresponding to the plurality of ids.
[0097] Among them, the system inputs the plurality of ids obtained as query parameters into the employee information query interface. The query interface finds and extracts the detailed information of the corresponding employee in the database according to each id, and finally obtains a plurality of groups of employee information corresponding to the ids. Each group of information contains various related data of the employee, such as basic information, work information, salary information, etc.
[0098] Step S3126, compare the multiple sets of information with the query-related question to obtain the information of the queried object.
[0099] In the step S3125, the system compares the multiple sets of employee information obtained in the step S3125 with the original query-related question raised by the user in the step S10. The comparison can be to analyze whether the key information (such as the position, department, and time range of employment) in the question matches the corresponding field in each set of employee information. Through the comparison, the set of information that best matches the question content is selected as the final information of the queried object.
[0100] For example, the queried object is Wang Wu, and there are three Wang Wus in the company. The three ids of the three Wang Wus are 112, 151, and 167, respectively. Based on the three ids of the three Wang Wus, the corresponding information is obtained. If the question is “Where does Wang Wu live in Shandong Province?”, and the three Wang Wus live in Shandong Province, Guangdong Province, and Henan Province, respectively, then the Wang Wus living in Guangdong Province and Henan Province are excluded, and the Wang Wu living in Shandong Province is selected as the queried object, and the information of the Wang Wu living in Shandong Province is returned.
[0101] Optionally, if the multiple sets of information cannot be automatically determined, the system can return a simplified difference field list (such as “Please select: 1. Zhang San-Technology Department 2. Zhang San-Marketing Department”);
[0102] Alternatively, the system can continue to query after obtaining the user feedback through a secondary confirmation interface (such as a communication software or an email).
[0103] Optionally, the user question and the multiple sets of information can be input into a relevance scoring model (such as BM25+semantic vector); the top 1 result is returned according to the score, and a prompt (such as “Three ‘Zhang San’s are found, and the following is the most likely matching result:”) is added.
[0104] In the case of multiple employees with the same name, the embodiments of the present application can accurately locate the employee that the user really wants to query from multiple candidate employees through the comparison operation, ensuring the accuracy and pertinence of the query result.
[0105] Based on the above embodiments of the present application, in the fifth embodiment of the present application, the same or similar contents as the above embodiments can be referred to the above description, and will not be described in detail. On this basis, after the question related to the queried object is input into the pre-constructed employee information question and answer model in the step S50 to obtain the answer related to the queried object, the steps S60-S70 are further included.
[0106] Step S60, obtain the questioner's authority;
[0107] Step S70, based on the authority of the questioner, the answer related to the queried object is reviewed and / or filtered, and the answer related to the queried object within the authority of the questioner is obtained.
[0108] Wherein, the question related to the queried object is obtained; the question related to the queried object is input into the pre-constructed employee information question and answer model to obtain the answer related to the queried object, the employee information question and answer model is obtained based on the large language model training and fine-tuning optimization, the authority of the questioner is obtained; based on the authority of the questioner, the answer related to the queried object is reviewed and / or filtered, and the answer related to the queried object within the authority of the questioner is obtained.
[0109] Optionally, a dynamic field filter can be embedded in the query interface layer, and different fields are returned according to the role of the questioner:
[0110] For example, if the questioner has basic authority, only name and department are returned;
[0111] If the questioner has high-level authority, sensitive fields such as salary and performance are added.
[0112] It should be noted that in the present embodiment, the answer returned by the employee information question and answer model is reviewed and / or filtered based on the authority of the questioner, if the answer contains information beyond the authority, the system will filter out these parts beyond the authority, and only the information within the authority of the questioner is retained. For example, the questioner's authority can only view the basic information and salary profile of the employee, and the answer generated by the model contains detailed performance evaluation data of the employee (beyond the authority), and the system will filter out this part of data, and only return the basic information and salary profile to the questioner.
[0113] The embodiments of the present application can ensure that the answer returned to the questioner is within the authority, avoid information leakage, and maintain enterprise information security and employee privacy.
[0114] Based on the above embodiments of the present application, in the sixth embodiment of the present application, the same or similar contents as the above embodiments can be referred to the above introduction, and will not be repeated hereinafter. On this basis, after step S50, the integrated information is input into the employee information question and answer model to obtain the answer related to the queried object, and step S80 is further included:
[0115] Step S80, the confidence score of the answer related to the queried object is scored.
[0116] Wherein, the employee information question and answer model can score the confidence of the answer related to the queried object while generating the answer, which is used to measure the reliability of the answer. If the confidence is low, the questioner can be prompted that the answer is only for reference, and further verification is suggested.
[0117] Exemplarily, in order to facilitate the understanding of the implementation process of the employee information query method obtained after the above embodiment one, please refer to Figure 4 , Figure 4 The above is a brief flowchart of the employee information query method of the present application, wherein the employee information query method comprises the following 5 steps:
[0118] (1) Intention recognition. When the user inputs "What is the xx information of someone?"
[0119] (2) Information extraction. For example, extract the person's name, search whether the person is included in the authority, if there is a unique value (no duplicate name), get the uid of the person; if it is not a unique value (there are multiple people with the same name), get the uid of multiple users;
[0120] (3) The uid of the object to be queried is transmitted into the employee information query interface, and is called in batches; the output content is all the employee information field contents (json format) about the queried object that can be searched within the authority of the person, such as:
[0121]
[0122]
[0123]
[0124] (4) Use the above interface return + interface description + user instruction prompt, and send into the employee information question and answer model, such as the user says: Who is the emergency contact of Zhang San? The content sent into the large model is:
[0125] ##{Zhang San employee information json data}, these are Zhang San's information, the meaning and value of each field are explained as: {……Staffcert certNo is the ID number, and is empty when indicating "system is not maintained"; politicalName is the political face, and is empty when indicating "non-party member"……};
[0126] ## Task: Please give a concise and accurate answer according to the following output requirements in combination with the user question "Who is the emergency contact of Zhang San?".
[0127] ## Output requirements:
[0128] Case 1: normal data query
[0129] The xx information of Zhang San is: xxxx
[0130] Case 2: data is not maintained
[0131] Hello, the xx information of Zhang San is not maintained in the system
[0132] Case 3: No relevant field
[0133] Hello, unable to query the xxx information of Zhang San, may be due to insufficient rights or field missing.
[0134] It should be noted that the output requirements and examples are only text examples and can be modified according to the requirements of the company.
[0135] (5) The employee information question and answer model outputs according to the output requirements.
[0136] In addition, when the employee information question and answer model is not accurate or inappropriate, the output requirements and interface field explanations can be modified to correct the output.
[0137] The data permission can be determined by the human resources system.
[0138] It should be noted that the above examples are only used to understand the present application and do not limit the employee information query method of the present application. Based on this technical concept, more forms of simple transformation are within the protection scope of the present application.
[0139] The present application also provides an employee information query device, please refer to Figure 5 , the employee information query device comprises:
[0140] The question acquisition module 10 is used to acquire the question related to the queried object.
[0141] The interface query module 20 is used to query the information of the queried object through the employee information query interface based on the question related to the queried object.
[0142] The integration module 30 is used to integrate the information of the queried object, the question related to the queried object, the preset question and answer instruction and the preset output requirement to obtain integrated information.
[0143] The question and answer module 40 is used to input the integrated information into the employee information question and answer model to obtain the answer related to the queried object.
[0144] The employee information query device provided by the present application adopts the employee information query method in the above embodiment, which can solve the technical problems of long query time and low efficiency of the current employee information query method. Compared with the prior art, the employee information query device provided by the present application has the same beneficial effects as the employee information query method provided by the above embodiment, and the other technical features in the employee information query device are the same as the features disclosed in the above embodiment method. Here, no further description is given.
[0145] The application provides an employee information query device, which comprises at least one processor and a memory connected with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the employee information query method in the above embodiment I.
[0146] Reference will be made to the following description Figure 6 , which shows a structural schematic diagram of an employee information query device suitable for implementing the embodiments of the application. The employee information query device in the embodiments of the application can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description), PMPs (Portable Media Player), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 6 The employee information query device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the application.
[0147] As Figure 6 shown, the employee information query device can include a processing apparatus 1001 (for example, a central processor, a graphic processor, or the like), which can perform various appropriate actions and processes according to programs stored in a read-only memory 1002 or loaded from a storage apparatus 1003 to a random access memory 1004. In the random access memory 1004, various programs and data required for operation of the employee information query device are also stored. The processing apparatus 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: input apparatuses 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, and the like; output apparatuses 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; the storage apparatus 1003 including, for example, a magnetic tape, a hard disk, and the like; and a communication apparatus 1009. The communication apparatus 1009 can allow the employee information query device to perform wireless or wired communication with other devices to exchange data. Although the employee information query device with various systems is shown in the figure, it should be understood that all the systems shown are not required to be implemented or provided. More or fewer systems can be alternatively implemented or provided.
[0148] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the method shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network through a communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiments disclosed in the present application are executed.
[0149] The employee information query device provided by the present application adopts the employee information query method in the above-mentioned embodiments, and can solve the technical problems of long query time and low efficiency of the current employee information query method. Compared with the prior art, the employee information query device provided by the present application has the same beneficial effects as the employee information query method provided by the above-mentioned embodiments, and other technical features in the employee information query device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0150] It should be understood that various parts of the present application can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0151] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0152] The present application provides a computer readable storage medium having stored thereon computer readable program instructions (i.e. computer program) for executing the employee information query method in the above-mentioned embodiments.
[0153] The computer readable storage medium provided in the application may be, for example, a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system or device, or any combination of the above. More specific examples of the computer readable storage medium may include, but are not limited to, an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiment, the computer readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), and the like, or any suitable combination of the above.
[0154] The computer readable storage medium described above may be contained in the employee information query device, or may exist separately without being assembled into the employee information query device.
[0155] The computer readable storage medium described above carries one or more programs, which, when executed by the employee information query device, cause the employee information query device to: obtain a question related to a queried object; query information of the queried object through an employee information query interface based on the question related to the queried object; integrate the information of the queried object, the question related to the queried object, a preset question and answer instruction, and a preset output requirement to obtain integrated information; and input the integrated information into an employee information question and answer model to obtain an answer related to the queried object.
[0156] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0157] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0158] The modules involved in the embodiments of the present application can be implemented in the manner of software or hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.
[0159] The readable storage medium provided by the present application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer program) for executing the above-mentioned employee information query method, and can solve the technical problems of long query time and low efficiency of the current employee information query method. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the present application are the same as those of the employee information query method provided by the above-mentioned embodiments, and are not described here.
[0160] The above merely describes some embodiments of the present application, and does not limit the patent scope of the present application. Any equivalent structural transformation, direct / indirect application in other related technical fields, or the like, which is made based on the technical concept of the present application and the content of the specification and drawings, is included in the patent protection scope of the present application.
Claims
1. A method for querying employee information, characterized in that: The method comprises: Obtain questions related to the queried object; Based on questions related to the queried object, obtain the information of the queried object through the employee information query interface; Integrate the information of the queried object, questions related to the queried object, preset question-and-answer instructions, and preset output requirements to obtain integrated information; Input the integrated information into the employee information question-answering model to obtain answers related to the queried object.
2. The method according to claim 1, wherein The step of querying and obtaining information of the queried object through the employee information query interface based on questions related to the queried object includes: Obtain the questioner's permission; The step of querying and obtaining information of the queried object through the employee information query interface based on questions related to the queried object includes: Based on the questions and questioner permissions related to the queried object, the information of the queried object is obtained through the employee information query interface.
3. The method according to claim 2, wherein The step of querying and obtaining information of the queried object through the employee information query interface based on the question related to the queried object and the questioner's authority includes: Obtaining the name of the person being queried from questions related to the person being queried; Based on the name of the person being queried and the questioner's permissions, the information of the person being queried is obtained through the employee information query interface.
4. The method according to claim 3, wherein The step of querying and obtaining the information of the queried object through the employee information query interface based on the name of the queried object and the questioner's authority includes: Check whether the name of the person being queried is unique within the authority of the questioner; If so, get the id of the queried object based on the name of the queried object; Enter the ID of the object to be queried into the employee information query interface to query the information of the object to be queried.
5. The method according to claim 4, wherein After the step of querying whether the name of the queried object is unique within the authority of the questioner, the following steps are further included: If not, obtain the ids of the queried object based on the name of the queried object; Input several IDs of the queried objects into the employee information query interface to obtain multiple sets of information corresponding to the IDs; Compare multiple sets of information with questions related to the queried object to obtain information about the queried object.
6. The method according to claim 1, wherein After the step of inputting the integrated information into the employee information question-answering model to obtain an answer related to the queried object, the following steps are included: Obtain the questioner's permission; The answers related to the queried object are reviewed and / or screened based on the authority of the questioner, and the answers related to the queried object within the authority of the questioner are obtained.
7. The method according to claim 1, wherein After the step of inputting the integrated information into the employee information question-answering model to obtain an answer related to the queried object, the following steps are included: Confidence scores are assigned to responses related to the query object.
8. An employee information query device, characterized in that: The device comprises: A question acquisition module is used to obtain questions related to the queried object; An interface query module is used to query and obtain information about the queried object through the employee information query interface based on questions related to the queried object; An integration module is used to integrate the information of the queried object, questions related to the queried object, preset question-answering instructions, and preset output requirements to obtain integrated information; The question-answering module is used to input the integrated information into the employee information question-answering model to obtain answers related to the queried object.
9. An employee information query device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the employee information query method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the employee information query method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Employee information query method and device based on AI assistant platform and storage medium
CN118626511A
Intelligent dialogue method based on user permission separation and related device
CN119293192A
Data query method, device and system based on large model and medium
CN119848080A