This invention discloses an ophthalmic intelligent question-answering method,
system, storage medium, and electronic device based on graph retrieval enhancement. The method first automatically constructs a structured
knowledge graph from ophthalmic clinical guidelines, containing entities such as diseases,
anatomical structures, and treatment methods, along with their causal, relational, or hierarchical relationships. Upon receiving a user's
natural language query, it parses key entities and intents, and uses this as a starting point to perform multi-hop retrieval within the graph, generating a contextual subgraph. After
pruning and refinement, enhanced prompts are formed, driving a large
language model to generate accurate and interpretable responses. The
system supports the integration of vision screening data or electronic medical records to achieve personalized question-answering and can optionally provide knowledge tracing paths. The graph supports dynamic incremental updates, and the retrieval depth and breadth can be adaptively adjusted according to query complexity. This invention significantly improves the clinical accuracy, safety, and
interpretability of responses, and is suitable for scenarios such as doctor-
patient communication, remote consultation, and
medical education.