[논문 리뷰] Development and Testing of Retrieval Augmented Generation in Large Language Models -- A Case Study Report
이 사례 연구는 35개의 수술 전 가이드라인을 사용한 헬스케어 LLM-RAG 파이프라인을 개발하고, RAG가 강화된 GPT-4.0이 인간의 지시와의 정확도에서 비열등하지 않으며 기본 LLM보다 높고 응답 속도도 더 빠름을 보여줍니다.
Purpose: Large Language Models (LLMs) hold significant promise for medical applications. Retrieval Augmented Generation (RAG) emerges as a promising approach for customizing domain knowledge in LLMs. This case study presents the development and evaluation of an LLM-RAG pipeline tailored for healthcare, focusing specifically on preoperative medicine. Methods: We developed an LLM-RAG model using 35 preoperative guidelines and tested it against human-generated responses, with a total of 1260 responses evaluated. The RAG process involved converting clinical documents into text using Python-based frameworks like LangChain and Llamaindex, and processing these texts into chunks for embedding and retrieval. Vector storage techniques and selected embedding models to optimize data retrieval, using Pinecone for vector storage with a dimensionality of 1536 and cosine similarity for loss metrics. Human-generated answers, provided by junior doctors, were used as a comparison. Results: The LLM-RAG model generated answers within an average of 15-20 seconds, significantly faster than the 10 minutes typically required by humans. Among the basic LLMs, GPT4.0 exhibited the best accuracy of 80.1%. This accuracy was further increased to 91.4% when the model was enhanced with RAG. Compared to the human-generated instructions, which had an accuracy of 86.3%, the performance of the GPT4.0 RAG model demonstrated non-inferiority (p=0.610). Conclusions: In this case study, we demonstrated a LLM-RAG model for healthcare implementation. The pipeline shows the advantages of grounded knowledge, upgradability, and scalability as important aspects of healthcare LLM deployment.
연구 동기 및 목표
- 수술 전 가이드라인을 사용한 헬스케어 중심의 LLM-RAG 파이프라인 시연.
- RAG 보강 LLM의 정확도와 응답 속도를 인간이 생성한 응답과 비교한다.
- 의료 맥락에서 LLM-RAG 접근 방식의 grounded 지식, 업그레이드 가능성 및 확장성을 평가한다.
제안 방법
- LangChain 및 LlamaIndex 기반 파이프라인을 사용하여 임상 문서를 텍스트로 변환한다.
- 텍스트를 청크로 나누고 선택한 임베딩 모델로 임베딩한 다음 1536 차원의 벡터를 Pinecone에 저장한다.
- 코사인 유사도를 통해 관련 청크를 검색하고 LLM(예: GPT-4.0)을 사용해 답을 생성한다.
- LLM 출력과 의사 보조(주니어 의사가 제공한 1260개의 응답) 인간이 생성한 답과 비교한다.
- 응답 시간과 정확도를 측정하여 성능 및 비열등성을 평가한다.
- 헬스케어 배포를 위한 grounded grounding, 업그레이드 가능성 및 확장성의 함의를 보고한다.
실험 결과
연구 질문
- RQ1수술 전 의료 지침에 대해 LLM의 정확성을 향상시킬 수 있는 Retrieval Augmented Generation 파이프라인이 있는가?
- RQ2RAG가 인간 성능에 비해 응답 속도에 어떤 영향을 미치는가?
- RQ3수술 전 지침에 대해 RAG를 적용한 GPT-4.0이 인간이 생성한 지시와 비열등한가(통계적 비교)?
주요 결과
- GPT-4.0 기본 정확도: 80.1%.
- GPT-4.0 with RAG 정확도: 91.4%.
- Human-generated instruction 정확도: 86.3%.
- GPT-4.0 with RAG shows non-inferiority to human instructions (p=0.610).
- LLM-RAG provides faster responses (15–20 seconds) versus humans (about 10 minutes).
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.