Fig. 7 | Scientific Reports

Fig. 7

From: Fine-tuned large language models with structured prompts enable efficient construction of lung cancer knowledge graphs

Fig. 7The alternative text for this image may have been generated using AI.

An example of knowledge triplet extraction from a patient case summary. The model processes the unstructured text (top box) and identifies key entities such as “Disease,” “Symptoms,” “Medication,” and their attributes (e.g., “Dosage,” “Course of Treatment”). It then structures this information into a hierarchical graph of (head, relation, tail) triplets, as shown in the diagram below the text. The right side shows the English version, and the left side shows the original Chinese example.

Back to article page