Question and answer type BIM (Building Information Modeling) query interaction method and system
Generating LINQ query statements through large language model technology and directly parsing BIM calculation model components solves the problem of complexity and low accuracy of traditional BIM model retrieval, achieves fast and accurate retrieval, and liberates users from operational complexity.
Patent Information
- Application Number
- CN202410659262.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional BIM model retrieval has high user requirements in terms of human-computer interaction, requiring understanding of model data details and complex filtering logic, resulting in slow retrieval speed and low accuracy.
Large language model technology is used to generate LINQ query statements based on the question content input by the user, and directly parse and query the components in the BIM calculation model, avoiding reliance on BIM software APIs and improving retrieval speed and accuracy.
By using large language model technology to generate suitable LINQ query statements and parse and query BIM calculation model components, users do not need to master complex logical operation skills, significantly improving retrieval speed and accuracy, and liberating users from complex interfaces and unnecessary skills.
Smart Images

Figure CN118536601A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data interactive query, and in particular to a question-and-answer type BIM model query interactive method and system. Background Art
[0002] In the application process of BIM model (Building Information Modeling), the retrieval of model component information is quite frequent, especially in the cost application scenario, it is often necessary to search based on various attribute information of components. However, the traditional BIM component retrieval has high requirements on users in terms of human-computer interaction, and there are the following problems:
[0003] 1. The model data details (such as parameter type, component floor distribution, etc.) must be clear;
[0004] 2. For complex screening logic, certain software skills are required, such as Figure 1 Display: When users need to filter according to the parameters of a certain type of component, they need to select the specified parameters and select the corresponding filtering operation. These operations require certain logical operation concepts. For users, they need to master certain usage skills to apply them correctly, so there are problems such as slow retrieval speed and low retrieval accuracy.
[0005] In summary, how to design a question-and-answer BIM model query interaction solution that can free users from complex user interfaces and unnecessary skill mastery and improve both retrieval speed and accuracy is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0006] The purpose of the present invention is to provide a question-and-answer type BIM model query interaction method and system, so as to improve the retrieval speed and accuracy by utilizing human-computer interaction.
[0007] To achieve the above object, the present invention provides a question-and-answer type BIM model query interaction method, the method comprising:
[0008] Step S1: using large language model technology to generate LINQ query statements based on the question content input by the user;
[0009] Step S2: Utilize the LINQ query statement to parse and query the components in the BIM quantity calculation model.
[0010] Optionally, the method further comprises:
[0011] The question content input by the user and the components in the BIM quantity calculation model obtained through analysis and query are processed in a linked manner.
[0012] Optionally, the large language model technology is used to generate a LINQ query statement according to the question content input by the user, specifically including:
[0013] Step S11: obtaining the question content input by the user, and performing semantic analysis on the question content through the large language model technology to obtain segmentation keywords;
[0014] Step S12: judging whether the question content input by the user is a BIM component query statement according to the segmentation keyword; if it is a BIM component query statement, executing step S14; if it is not a BIM component query statement, executing step S13;
[0015] Step S13: the question content input by the user is further submitted to the large language model for answering, and the answer content is returned to the user;
[0016] Step S14: inputting the industry corpus as reference information, using the specific LINQ statement question template in the prompt library as the question request carrier, and using the question content input by the user as the LINQ statement query condition, thereby generating a new question;
[0017] Step S15: Submit the generated question to the large language model technology to generate a LINQ query statement suitable for the BIM quantity calculation model.
[0018] Optionally, before step S1, the method further includes:
[0019] Generate a BIM quantity calculation model based on the components in the BIM model through the model mapping function.
[0020] The present invention also provides a question-and-answer type BIM model query interaction system, the system comprising:
[0021] LINQ query statement generation module, which uses large language model technology to generate LINQ query statements based on the question content input by the user;
[0022] The parsing query module is used to use the LINQ query statement to parse and query the components in the BIM quantity calculation model.
[0023] Optionally, the system further comprises:
[0024] The linkage processing module is used to link the question content input by the user with the components in the BIM quantity calculation model obtained through analysis and query.
[0025] Optionally, the LINQ query statement generation module specifically includes:
[0026] An acquisition unit is used to acquire the question content input by the user, and perform semantic analysis on the question content through a large language model technology to obtain segmentation keywords;
[0027] A judgment unit, used to judge whether the question content input by the user is a query BIM component statement according to the segmentation keyword; if it is a query BIM component statement, execute the "question generation unit"; if it is not a query BIM component statement, execute the "response parsing unit";
[0028] A response parsing unit, used for continuing to answer the question content input by the user to the large language model, and returning the answer content to the user;
[0029] A question generating unit is used to input the industry corpus as reference information, use the specific LINQ statement question template in the prompt library as the question request carrier, and use the question content input by the user as the LINQ statement query condition, so as to generate a new question;
[0030] The LINQ query statement generating unit is used to submit the generated question to the large language model technology, so as to generate a LINQ query statement suitable for the BIM quantity calculation model.
[0031] Optionally, the system further comprises:
[0032] The BIM quantity calculation model generation module is used to generate a BIM quantity calculation model according to the components in the BIM model through the model mapping function.
[0033] The present invention also provides a question-and-answer type BIM model query interaction system, the system comprising: a user end, a GPT and a quantity calculation processing end;
[0034] The user terminal is used for the user to input question content;
[0035] The GPT is used to perform semantic analysis on the question content input by the user to obtain segmentation keywords and send them to the calculation processing end;
[0036] The quantity calculation processing end is used to determine whether the question content input by the user is a query BIM component statement according to the segmentation keyword; if it is a query BIM component statement, it means that the question content input by the user end is related to BIM component retrieval, and the industry corpus is input as reference information, and the specific LINQ statement question template in the prompt library is used as the question request carrier, and the question content input by the user end is used as the LINQ statement query condition, so as to generate a new question; if it is not a query BIM component statement, it means that the question content input by the user end is irrelevant to BIM component retrieval, and the question content input by the user end is further handed over to the large language model for answering by using the GPT, and the answer content is returned to the user end for the user to view;
[0037] The GPT is also used to submit the generated questions to the large language model technology, so as to generate a LINQ query statement suitable for the BIM quantity calculation model and send it to the quantity calculation processing end;
[0038] The quantity calculation processing end is also used to use LINQ query statements to parse and query components in the BIM quantity calculation model.
[0039] Optionally, the quantity calculation processing end is further used to link the question content input by the user with the components in the BIM quantity calculation model obtained through parsing and querying.
[0040] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0041] The present invention discloses a question-and-answer type BIM model query interaction method and system, the method comprising: firstly using a large language model technology to generate a LINQ query statement according to the question content input by a user; then using the LINQ query statement to parse and query the components in the BIM quantity calculation model. The present invention uses the large language model technology to generate a LINQ query statement, directly uses the LINQ query statement to parse and query the components in the BIM quantity calculation model, avoids direct reliance on the BIM software API, and improves the accuracy and speed of the query. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 A schematic diagram of selecting existing screening logic parameters according to an embodiment of the present invention;
[0044] Figure 2 This is a flow chart of the question-and-answer BIM model query interaction method according to an embodiment of the present invention;
[0045] Figure 3 This is a structural diagram of the question-and-answer BIM model query interaction system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The purpose of the present invention is to provide a question-and-answer type BIM model query interaction method and system, so as to improve the retrieval speed and accuracy by utilizing human-computer interaction.
[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] The present invention focuses on two issues: 1. How to bypass the API of proprietary BIM design software to query data? 2. How to generate query commands more accurately and stably? How to overcome the above technical problems has become the main technical problem to be solved by the present invention, which is detailed in the following embodiments.
[0050] Embodiment 1:
[0051] like Figure 2 As shown, the present invention discloses a question-and-answer type BIM model query interaction method, the method comprising:
[0052] Step S1: Using large language model technology, a LINQ query statement is generated according to the question content input by the user.
[0053] Step S2: Use LINQ query statements to parse and query components in the BIM quantity calculation model.
[0054] The following is a detailed discussion of each step:
[0055] Step S1: Using the large language model technology, a LINQ query statement is generated according to the question content input by the user, specifically including:
[0056] Step S11: Obtain the question content input by the user, and perform semantic analysis on the question content through the large language model technology to obtain segmentation keywords.
[0057] In the present invention, the question content input by the user can be a voice question input by voice, a text question input by keyboard, or a gesture question collected by video. The specific way of asking the question can be selected according to actual needs. The present invention does not make any specific limitation as long as the user input can be realized.
[0058] Furthermore, because the methods of inputting question content are different, the methods of extracting keywords after word segmentation when performing semantic analysis in the present invention will also be different. For example, asking questions using voice requires converting the voice questions into text questions first, and asking questions using gestures requires converting the gesture questions into text questions first, and then using unsupervised learning or supervised learning to extract keywords after word segmentation. The specific method is not limited in detail, as long as the extraction of keywords after word segmentation can be achieved.
[0059] Step S12: judging whether the question content input by the user is a query statement for BIM components according to the segmentation keywords; if it is a query statement for BIM components, it means that the question content input by the user is related to BIM component retrieval, and executing step S14; if it is not a query statement for BIM components, it means that the question content input by the user is irrelevant to BIM component retrieval, and executing step S13.
[0060] Specifically, the technical solution disclosed in the present invention determines whether the question content input by the user is related to the search for BIM components based on the segmentation keywords. Once at least one word related to the search for BIM components appears in the segmentation keywords, it means that the question content input by the user end is to query BIM components. If the word related to the search for BIM components does not appear in the segmentation keywords, it means that the question content input by the user end has nothing to do with the search for BIM components.
[0061] Step S13: The question content input by the user is continued to be answered by the large language model, and the answer content is returned to the user for the user to view.
[0062] Specifically, the answer content mentioned in the present invention can be "no connection with the queried BIM component", or "no query results", or "no relevant information found", etc. The specific response and answer can be based on actual needs, and will not be repeated here.
[0063] Step S14: input the industry corpus as reference information, use the specific LINQ statement question template in the prompt library as the question request carrier, and use the question content input by the user as the LINQ statement query condition, so as to generate a new question.
[0064] The format of generating new questions in the present invention has three parts, corresponding to industry corpus, prompt library question template and user question content, for example: ① Please follow this industry terminology: Attached "industry corpus". ② Based on the BIM quantity calculation model, the model contains an Elements component list and each component contains a ParamList parameter list, please generate a LINQ statement to query Elements; ③ The condition of ParamList is "user question".
[0065] Step S15: Submit the generated question to the large language model technology to generate a LINQ query statement suitable for the BIM quantity calculation model.
[0066] Step S2: using LINQ query statements to parse and query components in the BIM quantity calculation model; specifically, the present invention uses a parsing module to parse LINQ query statements to query components in the BIM quantity calculation model; the parsing query includes but is not limited to target objects such as component classification information, component parameters and component engineering quantities.
[0067] The parsing module of the present invention uses Dynamic LINQ to parse LINQ query statements to query components in the BIM quantity calculation model. For example: var elements = BIMQSModel.Elements.Where("Name.equal(Structural Column)").ToList(). This is a statement to query all structural columns in the quantity calculation model, where Name.equal(Structural Column) is generated by GPT, and BIMQSModel.Elements is the target that the program tells GPT to query.
[0068] Step S3: Link the question content input by the user with the components in the BIM quantity calculation model obtained through parsing and querying, so that the components in the BIM quantity calculation model corresponding to the question content can be directly searched in the future. Specifically, the Revit component id associated with the returned elements is read, and then the positioning in the three-dimensional scene is realized through the Revit API.
[0069] Step S4: Before step S1, it also includes: generating a BIM quantity calculation model according to the components in the BIM model through the model mapping function. The BIM quantity calculation model is abstracted from the budget component model, calculation parameters and calculation rules. The data model will serve as the basis for subsequent LINQ queries. The model mapping function disclosed in the present invention is set according to actual needs, and will not be discussed in detail.
[0070] The technical solution disclosed in the present invention bypasses a specific Revit component information query API and directly adopts a unified LINQ statement to achieve accurate query of components in a BIM quantity calculation model that is directly accessible and has a stable interface.
[0071] Embodiment 2:
[0072] The present invention discloses a question-and-answer type BIM model query interaction system, characterized in that the system comprises:
[0073] LINQ query statement generation module, which uses large language model technology to generate LINQ query statements based on the question content input by the user;
[0074] The parsing query module is used to use the LINQ query statement to parse and query the components in the BIM quantity calculation model.
[0075] As an optional implementation mode, the system of the present invention further includes:
[0076] The linkage processing module is used to link the question content input by the user with the components in the BIM quantity calculation model obtained through analysis and query.
[0077] As an optional implementation mode, the LINQ query statement generation module of the present invention specifically includes:
[0078] The acquisition unit is used to acquire the question content input by the user, and perform semantic analysis on the question content through the large language model technology to obtain segmentation keywords.
[0079] A judgment unit is used to judge whether the question content input by the user is a BIM component query statement based on the segmentation keyword; if it is a BIM component query statement, execute the "question generation unit"; if it is not a BIM component query statement, execute the "response parsing unit".
[0080] The response parsing unit is used to continue to submit the question content input by the user to the large language model for answering, and return the answer content to the user.
[0081] The question generating unit is used to input the industry corpus as reference information, use the specific LINQ statement question template in the prompt library as the question request carrier, and use the question content input by the user as the LINQ statement query condition, so as to generate a new question.
[0082] The LINQ query statement generating unit is used to submit the generated question to the large language model technology, so as to generate a LINQ query statement suitable for the BIM quantity calculation model.
[0083] As an optional implementation mode, the system of the present invention further includes:
[0084] The BIM quantity calculation model generation module is used to generate a BIM quantity calculation model according to the components in the BIM model through the model mapping function.
[0085] For the parts that are the same as those in Example 1, please refer to Example 1 and will not be discussed again here.
[0086] Embodiment 3:
[0087] like Figure 3 As shown, the present invention discloses a question-and-answer type BIM model query interaction system, the system comprising: a user end, a GPT and a quantity calculation processing end;
[0088] The user terminal is used for the user to input question content.
[0089] The GPT is used to perform semantic analysis on the question content input by the user to obtain segmentation keywords and send them to the calculation processing end.
[0090] The quantity calculation processing end is used to determine whether the question content input by the user is a query statement for BIM components based on the segmentation keywords; if it is a query statement for BIM components, it means that the question content input by the user end is related to BIM component retrieval, and the industry corpus is input as reference information, using a specific LINQ statement question template in the prompt library as a question request carrier, and using the question content input by the user end as a LINQ statement query condition, thereby generating a new question; if it is not a query statement for BIM components, it means that the question content input by the user end is irrelevant to BIM component retrieval, and the GPT is used to continue to answer the question content input by the user end to the large language model, and the answer content is returned to the user end for the user to view.
[0091] The GPT is also used to submit the generated questions to the large language model technology, so as to generate LINQ query statements suitable for the BIM quantity calculation model and send them to the quantity calculation processing end.
[0092] The quantity calculation processing end is also used to use LINQ query statements to parse and query components in the BIM quantity calculation model.
[0093] As an optional implementation, the quantity calculation processing end of the present invention is also used to link the question content input by the user with the components in the BIM quantity calculation model obtained through parsing and querying.
[0094] For the parts that are the same as those in Example 1, please refer to Example 1 and will not be discussed again here.
[0095] The technical solution disclosed in the present invention has the following technical effects:
[0096] 1. Through GPT's excellent natural language understanding ability, users are freed from complex user interfaces and unnecessary skill mastery.
[0097] 2. Use large language model technology and BIM quantity calculation model to avoid direct dependence on BIM software API, improve retrieval performance and code generation accuracy.
[0098] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0099] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A question-and-answer BIM model query interaction method, characterized in that: The method comprises: Step S1: using large language model technology to generate LINQ query statements based on the question content input by the user; Step S2: Utilize the LINQ query statement to parse and query the components in the BIM quantity calculation model.
2. The question-and-answer BIM model query interaction method according to claim 1, characterized in that: The method further comprises: The question content input by the user and the components in the BIM quantity calculation model obtained through analysis and query are processed in a linked manner.
3. The question-and-answer BIM model query interaction method according to claim 1, characterized in that: The large language model technology is used to generate a LINQ query statement according to the question content input by the user, specifically including: Step S11: obtaining the question content input by the user, and performing semantic analysis on the question content through the large language model technology to obtain segmentation keywords; Step S12: judging whether the question content input by the user is a BIM component query statement according to the segmentation keyword; if it is a BIM component query statement, executing step S14; if it is not a BIM component query statement, executing step S13; Step S13: the question content input by the user is further submitted to the large language model for answering, and the answer content is returned to the user; Step S14: inputting the industry corpus as reference information, using the specific LINQ statement question template in the prompt library as the question request carrier, and using the question content input by the user as the LINQ statement query condition, thereby generating a new question; Step S15: Submit the generated question to the large language model technology to generate a LINQ query statement suitable for the BIM quantity calculation model.
4. The question-and-answer BIM model query interaction method according to claim 1, characterized in that: Before step S1, the method further includes: Generate a BIM quantity calculation model based on the components in the BIM model through the model mapping function.
5. A question-and-answer BIM model query interaction system, characterized in that: The system comprises: LINQ query statement generation module, which uses large language model technology to generate LINQ query statements based on the question content input by the user; The parsing query module is used to use the LINQ query statement to parse and query the components in the BIM quantity calculation model.
6. The question-and-answer BIM model query interaction system according to claim 5, characterized in that: The system further comprises: The linkage processing module is used to link the question content input by the user with the components in the BIM quantity calculation model obtained through analysis and query.
7. The question-and-answer BIM model query interaction system according to claim 5, characterized in that: The LINQ query statement generation module specifically includes: An acquisition unit, used to acquire the question content input by the user, and perform semantic analysis on the question content through the large language model technology to obtain segmentation keywords; A judgment unit, used to judge whether the question content input by the user is a query BIM component statement according to the segmentation keyword; if it is a query BIM component statement, execute the "question generation unit"; if it is not a query BIM component statement, execute the "response parsing unit"; A response parsing unit, used for continuing to answer the question content input by the user to the large language model, and returning the answer content to the user; A question generating unit is used to input the industry corpus as reference information, use the specific LINQ statement question template in the prompt library as the question request carrier, and use the question content input by the user as the LINQ statement query condition, so as to generate a new question; The LINQ query statement generation unit is used to submit the generated questions to the large language model technology, so as to generate a LINQ query statement suitable for the BIM quantity calculation model.
8. The question-and-answer BIM model query interaction method according to claim 5, characterized in that: The system further comprises: The BIM quantity calculation model generation module is used to generate a BIM quantity calculation model according to the components in the BIM model through the model mapping function.
9. A question-and-answer BIM model query interaction system, characterized in that: The system includes: a user end, a GPT and a calculation processing end; The user terminal is used for the user to input question content; The GPT is used to perform semantic analysis on the question content input by the user to obtain segmentation keywords and send them to the calculation processing end; The quantity calculation processing end is used to determine whether the question content input by the user is a query BIM component statement according to the segmentation keywords; if it is a query BIM component statement, it means that the question content input by the user end is related to BIM component retrieval, and the industry corpus is input as reference information, and the specific LINQ statement question template in the prompt library is used as the question request carrier, and the question content input by the user end is used as the LINQ statement query condition, so as to generate a new question; if it is not a query BIM component statement, it means that the question content input by the user end is irrelevant to BIM component retrieval, and the GPT is used to continue to hand over the question content input by the user end to the large language model for answering, and the answer content is returned to the user end for the user to view; The GPT is also used to submit the generated questions to the large language model technology, so as to generate a LINQ query statement suitable for the BIM quantity calculation model and send it to the quantity calculation processing end; The quantity calculation processing end is also used to use LINQ query statements to parse and query components in the BIM quantity calculation model.
10. The question-and-answer BIM model query interaction system according to claim 9, characterized in that: The quantity calculation processing end is also used to link the question content input by the user with the components in the BIM quantity calculation model obtained through analysis and query.
Citation Information
Cited By
Method for acquiring target building information based on LLM model, medium and equipment
CN119557960A
