Material information acquisition method and device, computer readable medium and electronic equipment
By constructing a slice library and calculating matching degree and confidence level, the problems of low efficiency and insufficient credibility in material information acquisition are solved, achieving efficient and reliable material information acquisition, reducing the threshold for new users and improving the utilization rate of unstructured data.
Patent Information
- Application Number
- CN202611430895.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for acquiring material information are inefficient, costly, and lack credibility and traceability, especially in terms of low utilization of unstructured data and high learning curve for newcomers.
The system constructs a slice library by segmenting unstructured documents and structured historical project data to generate slice data. It also calculates matching degree and confidence based on user query information, automatically identifies missing fields and prompts for completion, and provides traceable material information.
It improves the efficiency and accuracy of material information acquisition, lowers the barrier to entry for new users, realizes the efficient utilization and reliable quantification of unstructured data, and meets audit review requirements.
Smart Images

Figure CN123178562A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of engineering cost, and more specifically, to a method, apparatus, computer-readable medium, and electronic device for obtaining material information. Background Technology
[0002] Currently, the main method for acquiring material information is to first manually accumulate historical material documents; when material information is needed, these documents are then manually reviewed one by one to find the required information. However, this method is inefficient and costly. Summary of the Invention
[0003] The embodiments of this application provide a method, apparatus, computer-readable medium, and electronic device for acquiring material information, which can at least to some extent improve the efficiency of acquiring material information while also improving the reliability and accuracy of the acquired material information.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, a method for obtaining material information is provided, comprising: constructing a slice library, the slice library including slice data corresponding to multiple materials respectively, the slice data including field data corresponding to multiple fields respectively, the multiple fields including at least one key field; when receiving user query information, retrieving multiple target slice data from the slice library that meet preset matching conditions with the user query information; for each target slice data, determining a first matching degree between the target slice data and the user query information based on a first matching result between the field data corresponding to each key field in the target slice data and the user query information; for each target slice data, determining a second matching degree between the target slice data and the user query information based on a second matching result between the field data corresponding to each field in the target slice data and the user query information; determining a confidence level of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data respectively; and outputting target slice data corresponding to at least one material based on the confidence level of each target slice data.
[0006] According to one aspect of the embodiments of this application, a material information acquisition apparatus is provided. The apparatus includes: a slice library construction unit, configured to construct a slice library, the slice library including slice data corresponding to multiple materials, the slice data including field data corresponding to multiple fields, the multiple fields including at least one key field; a slice data retrieval unit, configured to, upon receiving user query information, retrieve multiple target slice data from the slice library that meet preset matching conditions with the user query information; a first matching degree determination unit, configured to, for each target slice data, determine a first matching degree between the target slice data and the user query information based on a first matching result between the field data corresponding to each key field in the target slice data and the user query information; a second matching degree determination unit, configured to, for each target slice data, determine a second matching degree between the target slice data and the user query information based on a second matching result between the field data corresponding to each field in the target slice data and the user query information; a confidence degree determination unit, configured to determine a confidence degree of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data; and a slice data output unit, configured to output target slice data corresponding to at least one material based on the confidence degree of each target slice data.
[0007] Optionally, based on the aforementioned scheme, the confidence determination unit is configured to: for each target slice data, perform a weighted summation of the first matching degree and the second matching degree corresponding to the target slice data to obtain the original confidence degree corresponding to the target slice data; for each target slice data, calculate the time adjustment coefficient corresponding to the target slice data based on the distance between the time corresponding to the target slice data in the slice library and the current time, and adjust the original confidence degree corresponding to the target slice data based on the time adjustment coefficient to obtain the confidence degree of the target slice data.
[0008] Optionally, based on the aforementioned scheme, the user query information includes query data corresponding to at least one field; the second matching degree determination unit is configured to: for each field corresponding to the field data in the target slice data, determine the matching score corresponding to the field based on the matching result of the query data corresponding to the field in the user query information and the field data; and determine the second matching degree between the target slice data and the user query information based on the matching scores corresponding to each field.
[0009] Optionally, based on the aforementioned scheme, the slice data retrieval unit is configured as follows: upon receiving user query information, it determines whether the user query information is missing field data corresponding to a key field; if the user query information is missing field data corresponding to a key field, it sends a prompt message to the sender of the user query information to suggest supplementing the field data corresponding to the key field; upon receiving supplementary field data corresponding to the key field submitted by the sender of the user query information, it constructs complete user query information based on the field data corresponding to the key field and the user query information; and retrieves multiple target slice data from the slice library that meet preset matching conditions with the complete user query information.
[0010] Optionally, based on the aforementioned scheme, the slice data output unit is configured to: determine the target slice data with the highest confidence level based on the confidence level of each target slice data; determine the confidence level to which the confidence level of the target slice data with the highest confidence level belongs; and output the target slice data with the highest confidence level and the confidence level label corresponding to the confidence level.
[0011] Optionally, based on the aforementioned scheme, the slice data output unit is configured to: display the target slice data with the highest confidence level and the confidence label corresponding to the confidence level based on a human-computer dialogue window, wherein the human-computer dialogue window also includes a source tracing entry for the target slice data; and display a reference source window in response to a trigger command for the source tracing entry, wherein the reference source window includes an access entry for each target slice data.
[0012] Optionally, based on the aforementioned scheme, the slice library construction unit is configured to: slice unstructured documents and / or structured historical project data according to preset slicing rules to obtain slice data corresponding to each material; and construct a slice library based on the slice data corresponding to each material.
[0013] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the above embodiments.
[0014] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to perform the method described in the above embodiments.
[0015] In some embodiments of this application, the technical solutions are as follows: First, a slice library is constructed, which includes slice data corresponding to multiple materials. Then, when a user query is received, multiple target slice data that meet the preset matching conditions with the user query are retrieved from the slice library. Then, the first matching degree and the second matching degree between each target slice data and the user query are determined respectively, and the confidence degree of each target slice data is calculated based on the two. Finally, the target slice data is output based on the confidence degree of each target slice data. Therefore, users only need to provide user query information, and the system can automatically provide them with matching slice data. This application realizes the automatic acquisition of material information and improves the efficiency of material information acquisition. Since the first matching degree between each target slice data and the user query information is determined based on the first matching result of the field data corresponding to each key field in each target slice data and the user query information, and the second matching degree between each target slice data and the user query information is determined based on the second matching result of the field data corresponding to each field in each target slice data and the user query information, and the confidence degree of the target slice data is determined based on the first matching degree and the second matching degree, and which target slice data to output is determined based on the confidence degree of each target slice data, the credibility and accuracy of the acquired material information are improved.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0018] Figure 1 A flowchart illustrating a method for obtaining material information according to an embodiment of this application is shown; Figure 2 A system architecture diagram according to an embodiment of this application is shown; Figure 3 A schematic diagram of an interface for operating a document for fragmentation according to an embodiment of this application is shown; Figure 4 A schematic diagram of an orchestration page for an intelligent agent according to an embodiment of this application is shown; Figure 5A flowchart illustrating the details of retrieving multiple target slice data that meet preset matching conditions from the slice library when receiving user query information according to an embodiment of this application; Figure 6 A schematic diagram illustrating an example of a missing key information prompt output by an intelligent agent according to an embodiment of this application is shown. Figure 7 A flowchart illustrating the details of outputting target slice data corresponding to at least one material based on the confidence level of each target slice data according to an embodiment of this application; Figure 8 A schematic diagram of a human-computer dialogue window displaying the final query results output by an intelligent agent, according to an embodiment of this application, is shown. Figure 9 A block diagram of a material information acquisition apparatus according to an embodiment of this application is shown; Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0019] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0020] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0021] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0022] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0023] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0024] In the fields of engineering consulting, cost management, and material procurement, companies typically accumulate a large amount of historical project data, including specifications and purchase prices for various materials. Currently, experienced professionals often rely on personal experience or simple keyword searches in databases to obtain historical price references. However, this method has several pain points in practical applications: 1. High information entry threshold: Newcomers often lack experience and do not know what key information (such as material, specifications, standards, special processes, etc.) is required when entering query conditions, resulting in query failure or a large amount of invalid data being returned, making the learning cost extremely high.
[0025] 2. Low utilization of unstructured data: A large amount of historical price information is scattered in unstructured documents (such as Excel price lists), which rely heavily on personal database accumulation. Traditional databases cannot perform fast and wide-ranging searches, nor can they perform fine-grained content analysis and segmentation of these documents, resulting in a waste of data assets.
[0026] 3. Poor traceability: Conventional searches ultimately only result in a final value or summary in the quotation document. The querying personnel cannot know the specific source, context and original basis of the price, which makes it difficult to meet the compliance requirements of auditing and review.
[0027] 4. Lack of credibility assessment: Traditional price data after a query does not include credibility indicators, making it difficult for users (especially newcomers) to intuitively judge the applicability of the price, which can easily lead to blindly accepting it and making incorrect decisions. Furthermore, it lacks a time-decay weighted confidence level.
[0028] Therefore, this application first provides a method for obtaining material information. This method can be used to obtain information related to material prices. Based on this method, the above-mentioned deficiencies can be overcome, enabling users (especially newcomers) to quickly obtain traceable historical material prices, achieving the following objectives: 1. When users (especially newcomers) enter incomplete information, the system can automatically identify the missing key fields and prompt them to complete them, thus lowering the learning curve.
[0029] 2. Automatically slice, extract features, and index scattered unstructured historical price documents to revitalize dormant data assets.
[0030] 3. Supports keyword or material description queries, returns a comprehensive price while recalling the matching original slices for traceability, and meets audit review requirements.
[0031] 4. Explicit confidence scores are calculated using multi-field weighting, and labels are used to indicate the credibility of the results to the queryer.
[0032] Figure 1 A flowchart illustrating a method for obtaining material information according to an embodiment of this application is shown. This method can be executed by a user terminal or a server. Please refer to... Figure 1 As shown, the method for obtaining this material information may include the following steps: Step 110: Construct a slice library, which includes slice data corresponding to multiple materials. The slice data includes field data corresponding to multiple fields, and the multiple fields include at least one key field.
[0033] A slice library can be a document slice database. For each material, one slice of data can be retrieved.
[0034] Figure 2 A system architecture diagram according to an embodiment of this application is shown. Please refer to [link / reference]. Figure 2 As shown, the overall architecture of this system first includes module one: the document slice database. The document slice database can be obtained through offline preprocessing.
[0035] In one embodiment of this application, the construction of the slice library includes: segmenting unstructured documents and / or structured historical project data according to preset segmentation rules to obtain slice data corresponding to each material; and constructing a slice library based on the slice data corresponding to each material.
[0036] Unstructured documents can be historical estimation documents; structured historical project data can include historical estimation data. Historical estimation documents and historical estimation data can include relevant data involved in historical estimations of material prices.
[0037] Unstructured documents can be unstructured historical price documents (such as PDF tender documents, Word contracts, Excel quotations, etc.) or structured historical project data, such as Excel spreadsheets or databases that organize material record data in a structured manner.
[0038] Users can define sharding rules (preset sharding rules) for each unstructured document and / or structured historical project data. Alternatively, the system (such as an AI agent) can automatically identify the preset sharding rules that should be used to shard each unstructured document and / or structured historical project data, and shard the corresponding unstructured document and / or structured historical project data according to the preset sharding rules.
[0039] The preset sharding rule used to shard each unstructured document and / or structured historical project data can be any of the following: sharding by paragraph, sharding by table row, sharding by price item granularity, or sharding by delimiter.
[0040] Before sharding unstructured documents and / or structured historical project data, data can be extracted from the unstructured documents and / or structured historical project data, and the extracted data can be standardized to obtain standardized data; then, the standardized data can be sharded.
[0041] You can also organize all historical estimation data into a standardized table, and then slice the standardized table by row to build a slice library.
[0042] When new estimation documents (such as quotations for newly won bids) are added to the database, they can be placed in the designated knowledge base, processed into document slices, and the new data can be added to the slice library to achieve real-time updates of the slice library.
[0043] Please see Figure 2 As shown, Module 1 includes historical estimation data, a data standardization module, a data slicing module, and a knowledge base construction module.
[0044] Figure 3 A schematic diagram of an interface for operating a document for fragmentation according to an embodiment of this application is shown. Please refer to... Figure 3 As shown, when a user enters the document management submodule under the resource management module, the document management page will be displayed. This document management page includes a document directory area and a document processing area. In the document directory area, the user can select the directory corresponding to the document to be processed, for example, the "Cost Abacus" directory under the "XX Management Department" directory. When the user selects document segmentation in the document processing area, the user will enter the operation interface for the segmented documents. This operation page displays a list of documents for segmentation. This list displays information such as document type, document size, segmentation rules configured for the document, and document segmentation status. The user can perform operations such as editing, previewing, and deleting on each document in the directory, and can also add documents to the current directory.
[0045] The fields corresponding to the slice data can include at least one of the following: Description, Section, Size, Material, Certificate, whether a Z-35 certificate is required, and Standard. The Description field describes the material, and its corresponding fields can be, for example, PADEYE, COLUMN, BEAM, EQUIPMENT SUPPORT, and NODE. PADEYE refers to a lifting lug, COLUMN to a column, BEAM to a beam, EQUIPMENT SUPPORT to an equipment support, and NODE to a node. The Section field describes the material's cross-section, and its corresponding fields can be, for example, PL, PIP (seamless), H, T, etc., or an empty string if none are specified. The Size field describes the material's dimensions, and its corresponding fields can be, for example, PL90, SHS400X20, PG600X300X15X25, SHS100, etc. 6. CHS711x36, etc., or an empty string if not specified; Material refers to the material standard, and its corresponding field data can be, for example, NV F36-Z, API 5L X52(PSL 2), GBT-1591 Q355C, etc., or an empty string if not specified; Certificate level refers to the material certificate level, and its corresponding field data can be, for example, 3.1, 3.2, etc., or an empty string if not specified; Z-35 indicates whether the material requires a Z-35 grade certificate. If the material is NV F36-Z, a Z-35 grade certificate is required; if the material is NV F36, a grade certificate is not required. If not specified, an empty string is provided.
[0046] It is easy to understand that the data source (such as unstructured documents or structured historical project data) on which the field data corresponding to the Z-35 field in the slice data is based may not have field data corresponding to the Z-35 field. In other words, the field data corresponding to the Z-35 field in the slice data can be inferred from data in unstructured documents or structured historical project data.
[0047] After obtaining the slice data corresponding to each material, for each slice data, the fields of the slice data can be concatenated into a complete text in a preset order, and then input into the Embedding model to generate the feature vector corresponding to the slice data. Then, a slice library can be constructed based on the slice data corresponding to each material and the feature vector corresponding to each slice data.
[0048] Of course, each field's corresponding field data can be mapped to a field feature vector, thus obtaining multiple field feature vectors corresponding to each slice of data. Then, a slice library can be constructed based on each field feature vector and the slice data corresponding to each material.
[0049] Step 120: When a user query is received, retrieve multiple target slice data from the slice library that meet the preset matching conditions of the user query.
[0050] It can retrieve a predetermined number of target slice data that match the user's query information from the slice library.
[0051] The pre-order quantity can be 3 or any other quantity; the pre-order quantity can be set by the user. The user query information can include query data corresponding to at least one field. The query data can match or correspond to the field data in the sliced data.
[0052] Figure 4 A schematic diagram of an orchestration page for an intelligent agent according to an embodiment of this application is shown. Please refer to... Figure 4 As shown, an agent can be arranged into a workflow capable of completing the embodiments of this application through the agent's orchestration page. The agent's orchestration page includes a node list area and an orchestration area. The node list area can include multiple workflow nodes of different types, such as parameter extraction, knowledge retrieval, condition judgment, large model, and answering. Users can drag and drop workflow nodes from the node list area to the orchestration area to arrange the agent. Figure 4 As shown, after the workflow starts, parameters can be extracted based on the large model, that is, the query data corresponding to the fields can be extracted from the user query information for retrieval.
[0053] Please continue reading Figure 2 As shown, the overall architecture of the system also includes Module 2: a semantic understanding and key information completion prompt module. Module 2 can receive the query description input by the user, perform semantic parsing and field splitting, and output standardized query objects. If the user input information is incomplete, Module 2 can also automatically identify missing key fields and proactively prompt the user to complete them, thereby significantly reducing the usage threshold for inexperienced newcomers.
[0054] Figure 5 A flowchart illustrating the details of retrieving multiple target slice data that meet preset matching conditions from the slice library when receiving user query information, according to an embodiment of this application, is provided. Please refer to [link to flowchart illustration]. Figure 5As shown, when a user query is received, retrieving multiple target slice data that match the user query from the slice library may include the following steps: Step 510: When a user query is received, determine whether the user query is missing field data corresponding to the key field.
[0055] Key fields can include Description, SECTION, Material, etc. Key fields can be customized by the user.
[0056] A material type-key field mapping table can be pre-set, and the user's query information can be determined by querying this material type-key field mapping table to see if the field data corresponding to the key field is missing.
[0057] A large language model or field importance recognition model can also be pre-trained. This large language model or field importance recognition model can determine whether the user query information is missing field data corresponding to the key field by itself (without relying on external data such as the material type-key field mapping table) or based on external data such as the material type-key field mapping table.
[0058] The user-entered query information can be, for example, a Profile.
[0059] Step 520: If the user query information is missing field data corresponding to a key field, a prompt message is sent to the sender of the user query information to suggest supplementing the field data corresponding to the key field.
[0060] The missing key field data can be determined by querying the material type-key field mapping table, based on a large language model or a field importance identification model, and the user can be proactively prompted to supplement it.
[0061] Please continue reading Figure 4 As shown, when performing knowledge retrieval, the process first proceeds to the condition judgment node. If the data corresponding to the key field is missing, the corresponding prompt information can be displayed.
[0062] Figure 6 A schematic diagram illustrating an example of a missing key information prompt output by an intelligent agent according to an embodiment of this application is shown. Please refer to... Figure 6 As shown, a prompt indicating missing key information can be displayed through the human-computer dialogue window (i.e., the chat window with the intelligent agent). For example, when the user enters the query information "Profile", the intelligent agent can prompt "The query only contains the general category "Profile", without providing specific specifications, materials or standard parameters, and cannot match accurate data". Step 530: When the sender of the user query information submits supplementary field data corresponding to the key field, construct the completed user query information based on the field data corresponding to the key field and the user query information.
[0063] Users can Figure 6 The dialog box shown in the human-computer dialogue window requires inputting the field data corresponding to the missing key field.
[0064] For example, a user can add: Section: H; Description: BEAM; Dimensions: HN250 125 6 9.
[0065] Step 540: Retrieve multiple target slice data from the slice library that meet the preset matching conditions with the completed user query information.
[0066] After sending a prompt message to the sender of the user's query, if the user confirms that they will not provide any further information, the user's query information can be used directly for retrieval.
[0067] Specifically, query data corresponding to each field can be extracted from the user's query information or the completed user query information. This data is then concatenated into a complete text segment in a preset order and input into an embedding model to generate a feature vector corresponding to the user's query information. Next, the similarity between the feature vector corresponding to the user's query information and the feature vectors corresponding to each slice in the slice library is determined. The feature vectors corresponding to a predetermined number of slices with the highest similarity are then selected as the target slice data. The predetermined number can be 3.
[0068] Of course, each field in the user query information or the completed user query information can be mapped to a field feature vector to obtain multiple field feature vectors corresponding to the user query information or the completed user query information. Then, for each slice of data, the similarity between each field feature vector corresponding to the slice of data and the corresponding field feature vector corresponding to the user query information or the completed user query information is determined. The similarity of each field is then weighted and summed to obtain the similarity of the slice of data. Finally, a predetermined number of slices with the highest similarity can be obtained and these slices can be used as target slices.
[0069] Please continue reading Figure 2 As shown, the overall architecture of the system also includes Module 3: the query module. Module 3 can be used for online retrieval. It can traverse the slice library and recall slices with similar fields; it can return the top 3 target slices with the highest similarity for subsequent processing.
[0070] Step 130: For each target slice of data, determine the first matching degree between the target slice of data and the user query information based on the first matching result between the field data corresponding to each key field in the target slice of data and the user query information.
[0071] Key fields may include Description, SECTION, Material, etc.
[0072] In one embodiment of this application, determining the first matching degree between the target slice data and the user query information based on the first matching result of the field data corresponding to each key field in the target slice data and the user query information may include: if the field data corresponding to each key field in the target slice data and the query data corresponding to the corresponding key field in the user query information are completely matched (e.g., completely identical), then the first matching degree between the target slice data and the user query information is set to 1; otherwise, the first matching degree between the target slice data and the user query information is set to 0.
[0073] Step 140: For each target slice of data, determine the second matching degree between the target slice of data and the user query information based on the second matching result between the field data corresponding to each field in the target slice of data and the user query information.
[0074] In one embodiment of this application, determining the second matching degree between the target slice data and the user query information based on the second matching result of the field data corresponding to each field in the target slice data and the user query information includes: for each field data in the target slice data, determining the matching score corresponding to the field based on the matching result of the query data corresponding to the field in the user query information and the field data; and determining the second matching degree between the target slice data and the user query information based on the matching score corresponding to each field.
[0075] Specifically, determining the matching score for a field based on the matching results between the query data corresponding to that field in the user query information and the field data can include: if the query data and the field data are completely identical, the matching score is 1; if the query data and the field data are of the same type but different values, the matching score is n; if the query data and the field data are completely different, the matching score is 0. Here, n is a real number between 0 and 1; for example, n can be 0.5. For example, the data corresponding to the material fields "NV E36" and "NV E36-Z" can be of the same type but different values. Whether they belong to the same type but different values can be determined based on a large language model or a pre-trained dedicated model. Alternatively, a batch of examples of the same type but different values can be provided to the large language model so that it can more accurately identify the same type but different values. Rules for the same type but different values can also be pre-set so that the large language model or system can accurately determine whether they belong to the same type but different values based on the rules.
[0076] Step 150: Determine the confidence level of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data respectively.
[0077] In one embodiment of this application, determining the confidence level of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data includes: for each target slice data, performing a weighted summation of the first matching degree and the second matching degree corresponding to the target slice data to obtain the original confidence level corresponding to the target slice data; for each target slice data, calculating a time adjustment coefficient corresponding to the target slice data based on the distance between the time corresponding to the target slice data in the slice library and the current time, and adjusting the original confidence level corresponding to the target slice data based on the time adjustment coefficient to obtain the confidence level of the target slice data.
[0078] The time adjustment factor can be negatively correlated with the distance between the time corresponding to the target slice data and the current time.
[0079] The time corresponding to the target slice data and the current time can be the year.
[0080] Specifically, confidence can be calculated using the following formula: Confidence=exp(-year_gap / 5)×(0.4×mean_match+0.6×(0.3×match(Description)+0.2×match(SECTION)+0.1×match(size)+0.3×match(Material)+0.05×match(Certificate)+0.05×match(Z-35))).
[0081] Where year_gap is the distance between the year of the target slice data and the current year, match() is whether the query data corresponding to each field matches the corresponding field data in the database. If they are completely the same, it is 1; if they are different but the same, it is 0.5; if they are completely different, it is 0. Mean_match is the first matching degree.
[0082] Suppose the three target slices of data come from historical projects in 2023, 2024, and 2025, respectively. Taking one slice as an example: Year 2024, year_gap=2; Field matching: Description matches exactly (1), SECTION matches exactly (1), Size has different values of the same type (0.5), Material matches exactly (1), Certificate is empty (no match, 0), Z-35 matches exactly (1). Then, since Description, SECTION, and Material all match, mean_match=1. match(Description)=1, match(SECTION)=1, match(Size)=0.5, match(Material)=1, match(Certificate)=0, match(Z-35)=1.
[0083] confidence=exp(-2 / 5)×(0.4×1+0.6×(0.3×1+0.2×1+0.1×0.5+0.3×1+0.05×0+ 0.05×1))≈0.6703×(0.4+0.6×0.85)=0.6703×(0.4+0.51)=0.6703×0.91≈0.610.
[0084] Please continue reading Figure 2 As shown, the overall architecture of the system also includes module four: a matching degree and confidence degree calculation module. Module four can score candidate slices.
[0085] Step 160: Based on the confidence level of each target slice data, output the target slice data corresponding to at least one material.
[0086] You can output the target slice data with the highest confidence level; or you can sort the data by confidence level from high to low and then output all of them in that order.
[0087] The output target slice data can be displayed through a human-computer interaction page.
[0088] Figure 7 A flowchart illustrating details of outputting target slice data corresponding to at least one material based on the confidence level of each target slice data according to an embodiment of this application is provided. Please refer to... Figure 7 As shown, based on the confidence level of each target slice data, the target slice data corresponding to at least one material is output, which may specifically include the following steps: Step 710: Determine the target slice data with the highest confidence level based on the confidence level of each target slice data.
[0089] The target slice data can be sorted from highest to lowest confidence level, and the first one is selected as the target slice data with the highest confidence level.
[0090] Step 720: Determine the confidence level to which the confidence level of the target slice data with the highest confidence level belongs.
[0091] It can be divided into three confidence levels: high, medium, and low. A corresponding confidence interval can be set for each confidence level, and the confidence level can be determined based on the confidence interval to which the confidence level belongs.
[0092] When the confidence level is 0.610, the confidence level can be classified as "medium" based on the confidence level range of 0.6 to 0.8.
[0093] Step 730: Output the target slice data with the highest confidence level and the confidence label corresponding to the confidence level.
[0094] In one embodiment of this application, the step of outputting the target slice data with the highest confidence level and the confidence label corresponding to the confidence level includes: displaying the target slice data with the highest confidence level and the confidence label corresponding to the confidence level based on a human-computer dialogue window, wherein the human-computer dialogue window also includes a source tracing entry for the target slice data; and displaying a reference source window in response to a trigger command for the source tracing entry, wherein the reference source window includes an access entry for each target slice data.
[0095] Figure 8 A schematic diagram of a human-computer dialogue window displaying the final query results output by an intelligent agent, according to an embodiment of this application, is shown. Please refer to... Figure 8As shown, the system displays confidence labels corresponding to different confidence levels, and then replies with and displays the target slice data with the highest confidence level in a table format. Users can view all historical estimated data, such as the original unit price of materials, certificate prices, and waste rates, through the user-friendly dialog window. Confidence labels for high confidence levels are green, while those for low confidence levels are red. Users can judge the reliability of the generated query results based on the confidence labels. Figure 8 It also shows the source tracing entry (including the "3 reference sources" button). When the source tracing entry is triggered, a reference source window will pop up showing the access entry for each target slice data. Users can directly view the document or other data source to which each target slice data belongs through the access entry for each target slice data.
[0096] Please continue reading Figure 2 As shown, the overall system architecture also includes Module Five: Structured Display and Traceability Module. Module Five can present the final results to users in a visual manner and allow users to view the original documents.
[0097] In summary, the method for obtaining material information in the above embodiments of this application can achieve the following technical effects: 1. Low-threshold data entry: When receiving an incomplete query request, the system automatically identifies missing core fields based on the field importance model and proactively prompts the user to supplement them, significantly reducing the barrier to entry for new users.
[0098] 2. Efficient utilization of unstructured data: A document slicing module is added to automatically slice unstructured historical price documents into independent segments according to table rows, extract multi-dimensional feature vectors and build indexes to achieve fine-grained retrieval.
[0099] 3. Traceability: After querying by keywords or material descriptions, it not only returns a comprehensive estimated price, but also recalls a list of matching historical price slices (including the original text location and specific slice information), allowing users to click to view the original document and meet audit review requirements.
[0100] 4. Confidence Measurement: After calculating the matching degree, a confidence score of 0 to 1 is calculated by combining the time decay factor and the field matching degree, and presented as a label to help users judge the reliability of the results. A time decay weighted confidence score is also included.
[0101] The following describes an apparatus embodiment of this application, which can be used to execute the material information acquisition method in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the material information acquisition method described above.
[0102] Figure 9 A block diagram of a material information acquisition apparatus according to an embodiment of this application is shown. (Refer to...) Figure 9As shown, a material information acquisition device 900 according to an embodiment of this application includes: a slice library construction unit 910, a slice data retrieval unit 920, a first matching degree determination unit 930, a second matching degree determination unit 940, a confidence degree determination unit 950, and a slice data output unit 960. The slice library construction unit 910 is used to construct a slice library, which includes slice data corresponding to multiple materials. The slice data includes field data corresponding to multiple fields, and the multiple fields include at least one key field. The slice data retrieval unit 920 is used to retrieve multiple target slice data that meet preset matching conditions from the slice library when receiving user query information. The first matching degree determination unit 930 is used to determine the first matching degree between the target slice data and the user query information based on the first matching result of the field data corresponding to each key field in the target slice data and the user query information for each target slice data. The second matching degree determination unit 940 is used to determine the second matching degree between the target slice data and the user query information based on the second matching result of the field data corresponding to each field in the target slice data and the user query information for each target slice data. The confidence degree determination unit 950 is used to determine the confidence degree of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data. The slice data output unit 960 is used to output the target slice data corresponding to at least one material based on the confidence degree of each target slice data.
[0103] Optionally, based on the aforementioned scheme, the confidence determination unit 950 is configured to: for each target slice data, perform a weighted summation of the first matching degree and the second matching degree corresponding to the target slice data to obtain the original confidence degree corresponding to the target slice data; for each target slice data, calculate the time adjustment coefficient corresponding to the target slice data based on the distance between the time corresponding to the target slice data in the slice library and the current time, and adjust the original confidence degree corresponding to the target slice data based on the time adjustment coefficient to obtain the confidence degree of the target slice data.
[0104] Optionally, based on the aforementioned scheme, the user query information includes query data corresponding to at least one field; the second matching degree determination unit 940 is configured to: for each field corresponding to the field data in the target slice data, determine the matching score corresponding to the field based on the matching result of the query data corresponding to the field in the user query information and the field data; and determine the second matching degree between the target slice data and the user query information based on the matching scores corresponding to each field.
[0105] Optionally, based on the aforementioned scheme, the slice data retrieval unit 920 is configured as follows: when receiving user query information, it determines whether the user query information is missing field data corresponding to a key field; if the user query information is missing field data corresponding to a key field, it sends a prompt message to the sender of the user query information to suggest supplementing the field data corresponding to the key field; when receiving supplementary field data corresponding to the key field submitted by the sender of the user query information, it constructs complete user query information based on the field data corresponding to the key field and the user query information; and retrieves multiple target slice data from the slice library that meet preset matching conditions with the complete user query information.
[0106] Optionally, based on the aforementioned scheme, the slice data output unit 960 is configured to: determine the target slice data with the highest confidence level based on the confidence level of each target slice data; determine the confidence level to which the confidence level of the target slice data with the highest confidence level belongs; and output the target slice data with the highest confidence level and the confidence level label corresponding to the confidence level.
[0107] Optionally, based on the aforementioned scheme, the slice data output unit 960 is configured to: display the target slice data with the highest confidence level and the confidence label corresponding to the confidence level based on a human-computer dialogue window, wherein the human-computer dialogue window also includes a source tracing entry for the target slice data; and display a reference source window in response to a trigger command for the source tracing entry, wherein the reference source window includes an access entry for each target slice data.
[0108] Optionally, based on the aforementioned scheme, the slice library construction unit 910 is configured to: slice unstructured documents and / or structured historical project data according to preset slicing rules to obtain slice data corresponding to each material; and construct a slice library based on the slice data corresponding to each material.
[0109] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0110] It should be noted that, Figure 10 The computer system 1000 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0111] like Figure 10As shown, the computer system 1000 includes a CPU 1001, which can perform various appropriate actions and processes according to a program stored in ROM 1002 or a program loaded into RAM 1003 from storage portion 1008, such as performing the methods described in the above embodiments. The RAM 1003 also stores various programs and data required for system operation. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An I / O interface 1005 is also connected to the bus 1004.
[0112] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.
[0113] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by CPU 1001, it performs various functions defined in the system of this application.
[0114] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0116] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0117] In one aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0118] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0119] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0120] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0121] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for acquiring material information, characterized in that, include: Construct a slice library, which includes slice data corresponding to multiple materials, and the slice data includes field data corresponding to multiple fields, including at least one key field. When a user query is received, multiple target slice data that meet the preset matching conditions with the user query are retrieved from the slice library; For each target slice of data, the first matching degree between the target slice of data and the user query information is determined based on the field data corresponding to each key field in the target slice of data and the first matching result of the user query information. For each target slice of data, a second matching degree between the target slice of data and the user query information is determined based on the second matching result between the field data corresponding to each field in the target slice of data and the user query information. The confidence level of each target slice data is determined based on the first matching degree and the second matching degree corresponding to each target slice data respectively. Based on the confidence level of each target slice data, output the target slice data corresponding to at least one material.
2. The method for obtaining material information according to claim 1, characterized in that, The step of determining the confidence level of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data respectively includes: For each target slice of data, the first matching degree and the second matching degree corresponding to the target slice of data are weighted and summed to obtain the original confidence degree corresponding to the target slice of data. For each target slice of data, a time adjustment coefficient is calculated based on the distance between the time corresponding to the target slice of data in the slice library and the current time. The original confidence level of the target slice of data is then adjusted based on the time adjustment coefficient to obtain the confidence level of the target slice of data.
3. The method for obtaining material information according to claim 1, characterized in that, The user query information includes query data corresponding to at least one field; determining the second matching degree between the target slice data and the user query information based on the second matching result of the field data corresponding to each field in the target slice data and the user query information includes: For each field in the target slice data, the matching score corresponding to the field is determined based on the matching result of the query data corresponding to the field in the user query information and the field data. Based on the matching scores corresponding to each field, the second matching degree between the target slice data and the user query information is determined.
4. The method for obtaining material information according to claim 1, characterized in that, The step of retrieving multiple target slice data that meet preset matching conditions from the slice library when receiving user query information includes: When a user query is received, it is determined whether the user query is missing field data corresponding to a key field; If the user query information is missing field data corresponding to a key field, a prompt message is sent to the sender of the user query information to suggest supplementing the field data corresponding to the key field. When the sender of the user query information submits supplementary field data corresponding to the key field, the user query information is constructed with the supplementary field data corresponding to the key field and the user query information. Multiple target slice data that match the completed user query information according to preset conditions are retrieved from the slice library.
5. The method for obtaining material information according to claim 1, characterized in that, The step of outputting target slice data corresponding to at least one material based on the confidence level of each target slice data includes: The target slice data with the highest confidence level is determined based on the confidence level of each target slice data. Determine the confidence level to which the target slice data with the highest confidence level belongs; Output the target slice data with the highest confidence level and the confidence label corresponding to the confidence level.
6. The method for obtaining material information according to claim 5, characterized in that, The step of outputting the target slice data with the highest confidence level and the confidence label corresponding to the confidence level includes: Based on the human-computer dialogue window, the target slice data with the highest confidence level and the confidence level label corresponding to the confidence level are displayed. The human-computer dialogue window also includes a source tracing entry for the target slice data. In response to the trigger command of the tracing entry, a reference source window is displayed, which includes access points for each target slice data.
7. The method for obtaining material information according to claim 1, characterized in that, The construction of the slice library includes: Unstructured documents and / or structured historical project data are segmented according to preset segmentation rules to obtain segmented data corresponding to each material; A slice library is constructed based on the slice data corresponding to each material.
8. A device for acquiring material information, characterized in that, The device includes: A slice library construction unit is used to construct a slice library, which includes slice data corresponding to multiple materials, and the slice data includes field data corresponding to multiple fields, including at least one key field. The slice data retrieval unit is used to retrieve multiple target slice data that meet preset matching conditions from the slice library when receiving user query information; The first matching degree determination unit is used to determine the first matching degree between the target slice data and the user query information based on the first matching result between the field data corresponding to each key field in the target slice data and the user query information for each target slice data. The second matching degree determination unit is used to determine the second matching degree between the target slice data and the user query information based on the second matching result between the field data corresponding to each field in the target slice data and the user query information for each target slice data. The confidence determination unit is used to determine the confidence of each target slice data based on the first matching degree and the second matching degree corresponding to each target slice data respectively; The slice data output unit is used to output the target slice data corresponding to at least one material based on the confidence level of each target slice data.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for obtaining material information as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the method for acquiring material information as described in any one of claims 1 to 7.
