The invention discloses an intelligent question and answer method and device in the
refinery field. The method comprises the steps of obtaining user question data; judging whether the user question data is a real-
time data question number demand or an index question number demand; determining real-
time data asking demand data, and executing the following steps: determining an intention type; generating a word slot matching result; determining bit number information; generating a first
SQL statement; executing the first
SQL statement, and outputting a first feedback result of the user question data; if the data is the index question number demand data, performing complexity judgment on the user question data; according to the complexity judgment result, executing the second
SQL statement after generation, and outputting a second feedback result corresponding to the user question data, so that the accuracy, efficiency and generalization ability of intelligent
question answering in the
refinery field can be improved, the cost is reduced, and the user experience is improved.