Fig. 7: An illustration of LLM prompts in one-step and two-step NER and RE from study results.

On the left is the one-step extraction approach, which extracts both entities and relations simultaneously. On the right is the two-step extraction approach, which first identifies entities then determines the relations.