Similarity-Based Prompt Construction for Large Language Model in Medical Tasks

Gaofei Liu,Meiqi Pan,Zhiyuan Ma,Miaomiao Gu,Ling Yang,Jiwei Qin
DOI: https://doi.org/10.1007/978-981-97-1717-0_6
2024-01-01
Abstract:Large Language Model (LLM) has sparked a new trend in Natural Language Processing (NLP), and an increasing number of researches have recognized the potential of using LLM to unify diverse NLP tasks into a text generative manner. In order to explore the potential of LLM for In-Context Learning in Chinese Medical field, the 9th China Health Information Processing Conference (CHIP 2023) has released a non-tuning LLM evaluation task called PromptCBLUE-v2. In this paper, we proposed a similarity-based prompt construction method which ranked the third place in the final list. It follows the framework of demonstration-based prompt template and uses sentence-level similarity to select representative sentences for better demonstration. To avoid unformatted output, we designed a two-round conversation method. Additionally, we incorporated similarity model to evaluate answer similarity to convert unformatted output to desired target answer. The evaluations on 18 NLP tasks have proved the generalization and effectiveness of our method.
What problem does this paper attempt to address?