The invention discloses a multi-model collaborative question-answering method and
system for the field of hydraulic cylinders. The method comprises the following steps: constructing a
knowledge graph of the field of the hydraulic cylinders; receiving a
hydraulic cylinder field problem input by a user, calculating a comprehensive
score of the
hydraulic cylinder field problem, judging whether the problem belongs to a query type problem or not according to the comprehensive
score, if so, matching a template from a preset cross-layer query
template library according to a
semantic vector of the problem, and if not, matching the template; automatically generating a
query statement adaptive to the current problem by combining a component parameter-
assembly relationship-
design specification three-level association path in the
hydraulic cylinder domain knowledge graph, submitting the
query statement to a
database to execute query, and storing a query result; otherwise, judging whether the problem belongs to a calculation type problem according to the comprehensive
score, if so, extracting key parameters in the problem, and calling a calculation program
library according to the key parameters to complete calculation to obtain a calculation result; otherwise, integrating the query result and / or the calculation result, and generating an answer of the question.