Abstract Objectives Despite the recent adoption of large language models (LLMs) for biomedical information extraction (IE), challenges in prompt engineering and algorithms persist, with no dedicated software available. To address this, we developed LLM-IE: a Python package for building complete IE pipelines. Materials and Methods The LLM-IE supports named entity recognition, entity attribute extraction, and relation extraction tasks. We benchmarked it on the i2b2 clinical datasets. Results The sentence-based prompting algorithm resulted in the best 8-shot performance of over 70% strict F1 for entity extraction and about 60% F1 for entity attribute extraction. Discussion We developed a Python package, LLM-IE, highlighting (1) an interactive LLM agent to support schema definition and prompt design, (2) state-of-the-art prompting algorithms, and (3) visualization features. Conclusion The LLM-IE provides essential building blocks for developing robust information extraction pipelines. Future work will aim to expand its features and further optimize computational efficiency.
Derong XuWei ChenWenjun PengChao ZhangTong XuXiangyu ZhaoXian WuYefeng ZhengYan WangEnhong Chen
Jin LiRui YuanYu TianJingsong Li
Juan Mora-DelgadoLuis Ramos-RupertoMaría José PardillaMiguel‐Ángel SiciliaAlejandro Rodríguez‐GonzálezJosé M. SempereRamón Puchades