Skip navigation

DSpace JSPUI

DSpace preserves and enables easy and open access to all types of digital content including text, images, moving images, mpegs and data sets

Learn More
DSpace logo
English
中文
  • Browse
    • Communities
      & Collections
    • Publication Year
    • Author
    • Title
    • Subject
    • Advisor
  • Search TDR
  • Rights Q&A
    • My Page
    • Receive email
      updates
    • Edit Profile
  1. NTU Theses and Dissertations Repository
  2. 管理學院
  3. 資訊管理學系
Please use this identifier to cite or link to this item: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/93239
Title: 檢索增強生成適應性指標研究
RAG Adaptability Metric Study
Authors: 魏冠宇
Kuan-Yu Wei
Advisor: 曹承礎
Seng-Cho Chou
Keyword: 檢索增強生成,檢索增強生成適應性指標,檢索增強生成提示工程,
RAG,RAG Adaptability Metric,RAG Prompt Engineering,
Publication Year : 2024
Degree: 碩士
Abstract: 大型語言模型(LLM, large language model)持續快速發展,為彌補模型的不足與因應不同情境下的使用需求,檢索增強生成(RAG, Retrieval-Augmented Generation)等模型已被成熟運用。然而,大型語言模型如何處理「檢索文檔」(Retrieved Documents)尚屬於一個「黑盒子」,其決策過程封閉且不透明,限制了解釋性與可追蹤性。
本論文提出了檢索增強生成適應性指標(RAG Adaptability Metric),藉由提示工程(Prompt Engineering)使生成模型(Generation Model)在生成回答時同時輸出支持文檔(Supporting Documents),讓模型同時指出其認為的產生回答的依據。
本論文提出了檢索增強生成適應性指標(RAG Adaptability Metric),通過提示工程(Prompt Engineering)使生成模型(Generation Model)在生成回答時同時輸出支持文檔(Supporting Documents),讓模型指出其認為的產生回答的依據。
研究中也發現,生成模型在發現檢索文檔不足以支持生成回應時,會轉而採用生成模型訓練過程學習的知識,即記憶化參數來生成回應內容,在部分情境中,記憶化參數生成的回應是可接受的,但同時存在生成幻覺(Generative Hallucination)的風險,因此,本研究藉由取得支持文檔與提問、檢索文檔、回答間的內容相關性產生檢索增強生成適應性指標,賦予檢索增強生成模型,生成過程的解釋性與可追蹤性。
研究結果顯示,檢索增強生成適應性指標適用於多種檢索方法與不同的生成模型,在識別潛在有風險的生成結果上表現良好,並且可以協助辨別大型語言模型是否依照檢索文檔生成回答,還是發生「拒絕回答」或「自行產生回答」的情境,提供調適模型或訓練模型的參考依據。
Large Language Models (LLMs) are continuously advancing at a rapid pace. To address the shortcomings of these models and cater to various contextual usage needs, models like Retrieval-Augmented Generation (RAG) have been maturely utilized. However, how LLMs handle 'retrieved documents' remains a 'black box', with a decision-making process that is closed and opaque, limiting explainability and traceability.

This paper proposes the RAG Adaptability Metric, which uses prompt engineering to enable the generation model to output supporting documents when generating responses, thus allowing the model to indicate the basis for its responses. The study found that when the retrieval documents are insufficient to support the generated response, the model tends to rely on the knowledge learned during its training process, i.e., memorized parameters, to generate the response content. In some scenarios, responses generated from memorized parameters are acceptable, but there is a risk of generative hallucination.

Therefore, this study introduces the RAG Adaptability Metric by obtaining the relevance between supporting documents, queries, retrieved documents, and responses, enhancing the explainability and traceability of the RAG process. The results show that the RAG Adaptability Metric is applicable to various retrieval methods and different generation models, performing well in identifying potentially risky generated responses. It can help distinguish whether the LLM generates responses based on retrieved documents or if it occurs in situations of 'refusal to respond' or 'self-generated responses', providing reference for adjusting or training the models.
URI: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/93239
DOI: 10.6342/NTU202401285
Fulltext Rights: 同意授權(全球公開)
Appears in Collections:資訊管理學系

Files in This Item:
File SizeFormat 
ntu-112-2.pdf7.17 MBAdobe PDFView/Open
Show full item record


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved