Skip to main content
QUICK REVIEW

[論文レビュー] Development and Testing of Retrieval Augmented Generation in Large Language Models -- A Case Study Report

Yuhe Ke, Liyuan Jin|arXiv (Cornell University)|Jan 29, 2024
Topic ModelingComputer Science被引用数 18
ひとこと要約

本ケーススタディは35件の術前ガイドラインを用いた医療向け LLM-RAG パイプラインを開発し、RAG強化された GPT-4.0 が人手の指示と比較して非劣性の精度を達成し、基本的なLLMsより高く、反応速度も速いことを示す。

ABSTRACT

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 アプローチの根拠ある知識、アップグレーダビリティ、スケーラビリティを評価する。

提案手法

  • LangChain および LlamaIndex ベースのパイプラインを用いて臨床文書をテキストに変換する。
  • 選択した埋め込みモデルを用いてテキストをチャンク化し埋め込みを作成する。1536次元のベクトルを Pinecone に格納する。
  • コサイン類似度で関連チャンクを取得し、LLM(例: GPT-4.0)で回答を生成する。
  • 若手医師が作成した回答(合計1260件)とLLMの出力を比較する。
  • パフォーマンスと非劣性を評価するために反応時間と精度を測定する。
  • 医療機関での実装に関する現実の根拠づけ、アップグレーダビリティおよびスケーラビリティへの影響を報告する。

実験結果

リサーチクエスチョン

  • RQ1術前の医療ガイダンスにおいて、retrieval augmented generation パイプラインはLLMsの精度を向上させることができるか?
  • RQ2RAGは人間のパフォーマンスと比較して反応速度にどう影響するか?
  • RQ3術前ガイダンスにおける人間が作成した指示と比較して、RAG付きの GPT-4.0 は非劣性か(統計的比較)?

主な発見

  • GPT-4.0 基本精度: 80.1%。
  • GPT-4.0 とRAGの精度: 91.4%。
  • 人間が作成した指示の精度: 86.3%。
  • RAG付きのGPT-4.0は人間の指示に対して非劣性を示す(p=0.610)。
  • LLM-RAGは人間よりも高速な反応を提供する(15–20秒対約10分)。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。