The invention belongs to the field of
artificial intelligence operation and maintenance, and discloses an
electric power information system fault early warning and explaining method and
system based on an RAG framework, and the method comprises the steps: obtaining historical
log data with fault tags, coding the historical
log data into feature vectors, constructing a vector
knowledge base with the fault tags, and carrying out the fault early warning and explaining of the fault tags; therefore, the fault retrieval process can be compared based on the historical real fault features, and the
retrieval result has a direct corresponding relation with the actual fault scene, so that the reliability of fault symptom judgment is improved. According to the method, the
electric power information system logs are obtained in real time and converted into the feature vectors, retrieval is carried out through the vector
knowledge base, similarity judgment is directly carried out on historical fault features when the logs are generated, and potential fault symptoms are rapidly recognized. Through the vector
knowledge base with the fault labels, real-time
feature vector retrieval and explanation generation based on the enhanced context, the fault early warning process has accuracy,
interpretability and
engineering practicability at the same time.