检索增强生成(Retrieval Augmented Generation,简称RAG)是当前大语言模型(Large Language Model,简称LLM)应用中最主流的实现模式。RAG的工作流程为:接收用户查询后,在通常存储于向量数据库的大规模语料库中检索相关的上下文段落;在向量数据库上完成首轮检索后,将排名前n的相关文本块直接纳入上下文,作为提示词发送给LLM。\n该方法的问题在于,文本块的质量高度依赖检索的有效性。检索后缺乏强有力的后处理流程来判定文本块是否包含足够信息、具备纳入提示词的资格。此外,很多时候不同文本块可能针对同一主题存在冲突信息,而模型没有先验经验来判断应优先采信哪个文本块以生成结论,这往往导致模型给出“存在冲突表述,无法生成答案”的回复。\n本研究提出一种贝叶斯方法,用于验证检索结果中文本块的质量。贝叶斯定理旨在关联假设的条件概率、证据与先验概率。我们提出,通过计算文本块能生成高质量答案的似然度,并结合文本块质量的先验概率,可提升RAG系统响应的整体质量。我们可以利用LLM本身来获取上下文段落的相关性似然度;对于文本块的先验概率,我们采用所解析文档中的页码作为依据,其假设为:靠前页面中的段落更有可能是研究结论,且与归纳答案的相关性更高。
英文摘要:
Retrieval Augmented Generation or RAG is the most popular pattern for modern Large Language Model or LLM applications. RAG involves taking a user query and finding relevant paragraphs of context in a large corpus typically captured in a vector database. Once the first level of search happens over a vector database, the top n chunks of relevant text are included directly in the context and sent as prompt to the LLM. Problem with this approach is that quality of text chunks depends on effectiveness of search. There is no strong post processing after search to determine if the chunk does hold enough information to include in prompt. Also many times there may be chunks that have conflicting information on the same subject and the model has no prior experience which chunk to prioritize to make a decision. Often times, this leads to the model providing a statement that there are conflicting statements, and it cannot produce an answer. In this research we propose a Bayesian approach to verify the quality of text chunks from the search results. Bayes theorem tries to relate conditional probabilities of the hypothesis with evidence and prior probabilities. We propose that, finding likelihood of text chunks to give a quality answer and using prior probability of quality of text chunks can help us improve overall quality of the responses from RAG systems. We can use the LLM itself to get a likelihood of relevance of a context paragraph. For prior probability of the text chunk, we use the page number in the documents parsed. Assumption is that that paragraphs in earlier pages have a better probability of being findings and more relevant to generalizing an answer.
The 3rd Place Solution of CCIR CUP 2025: A Framework for Retrieval-Augmented Generation in Multi-Turn Legal Conversation
CAS Key Lab of Network Data Science(中国科学院网络数据重点实验室);Technology, ICT, CAS State Key Laboratory of AI Safety University of Chinese Academy of Sciences Beijing China(中国科学院计算技术研究所人工智能安全国家重点实验室中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences University of Chinese Academy of Sciences Beijing China(中国科学院计算技术研究所中国科学院大学);CAS Key Lab of Network Data(中国科学院网络数据重点实验室);State Key Laboratory of AI Safety(人工智能安全国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
本文提出一个用于多轮法律对话的检索增强生成框架,结合信息检索与大型语言模型,基于法律法规回答用户问题,并在CCIR CUP 2025中取得第三名。
LevelRAG: Enhancing Retrieval-Augmented Generation with Multi-hop Logic Planning over Rewriting Augmented Searchers
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Chinese Academy of Sciences(中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))
A Large Language Model-based Framework for Semi-Structured Tender Document Retrieval-Augmented Generation
School of Information Management Sun Yat-sen University Guangzhou, China;School of Information Management Sun Yat-sen University Guangzhou, China corresponding author
IRSC: A Zero-shot Evaluation Benchmark for Information Retrieval through Semantic Comprehension in Retrieval-Augmented Generation Scenarios
PengCheng Laboratory(鹏城实验室);Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Southern University of Science and Technology(南方科技大学)
Retrieval-Augmented Large Language Models for Evidence-Informed Guidance on Cannabidiol Use in Older Adults
Lawrence Bloomberg Faculty of Nursing, University of Toronto(多伦多大学劳伦斯·布隆伯格护理学院);KITE Research Institute, Toronto Rehabilitation Institute, University Health Network(大学健康网络多伦多康复研究所KITE研究所);College of Engineering and Technology, American University of the Middle East(中东美国大学工程与技术学院)
CausalRAG: Integrating Causal Graphs into Retrieval-Augmented Generation
Department of Computer and Data Sciences, Case Western Reserve University(计算机与数据科学系,凯斯西储大学);Department of Design and Innovation, Case Western Reserve University(设计与创新系,凯斯西储大学)
Long Context Modeling with Ranked Memory-Augmented Retrieval
University of New South Wales(新南威尔士大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);University of Southampton(南安普顿大学);Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)