The invention discloses an intelligent questioning and answering method and
system for a
knowledge graph in the field of power marketing based on a
large model Agent, and the method comprises the steps: obtaining a to-be-queried question and the
large model Agent, enabling a question
rewriting tool of the
large model Agent to complete and rewrite the question Q based on a constructed prompt word module and a pre-trained templated
processing model, and carrying out the quality
verification of a rewritten new question Q '; inputting the new question Q'passing the quality auditing into a large model Agent, and converting the new question Q'into at least one
query statement q; the
query statement q is processed through a result generation tool, a result R returned by
processing is received, and the result R contains data requested by the
query statement q; the large model Agent evaluates the result R, if the result R is correct, the result R is output, if not, the
iteration process is started, and in the
iteration process, the large model Agent judges whether to rewrite the generated new question Q'and generate a new query statement.By means of the question
query rewriting method and device, the question
query rewriting capacity can be enhanced, the query result accuracy can be improved, and the query efficiency can be optimized.