The invention provides a
power grid field table data reasoning and
question answering method based on a code enhancement framework, and the method comprises the steps: building the code enhancement framework,
processing the reasoning and
question answering tasks of power project WBS table data through a large
language model, and firstly carrying out the structure self-interpretation of the power project WBS table data; the method comprises the steps that firstly, the understanding ability of a model for a complex WBS table hierarchical structure and a task
decomposition relation is improved, then based on table structure description and
natural language questions formed by
work content description proposed by a user,
executable codes are automatically generated, related task information and resource configuration data in WBS table data are extracted, and the task configuration information is extracted; executing the code through an external code
interpreter to obtain a result, and finally combining the code execution result and the reasoning ability of the model to generate a
natural language answer about the number of human resources required for completing the specific
work content; according to the method, the understanding, reasoning and people number
estimation capabilities of the large
language model during
processing of complex WBS table data in the
power grid operation and maintenance process can be effectively improved.