用户现在需要把给定的新闻正文排版成语义化的HTML片段,得遵循要求,每个自然段落用p包裹,长文划分小节,用h2或者h3,保留所有信息,不能增删改。首先看正文内容,是关于RAG在僧伽罗语的研究。首先可以加一个h2的标题?不对,等下,正文里没有小节标题,哦,等下看内容,首先开头是介绍研究背景和方法,然后是结果,对吧?首先,先处理每个部分。首先,第一个自然段是介绍RAG的作用和本研究的内容,用p包裹。然后第二个自然段是实验的方法,对吧?然后第三个是结果,然后是结论?不对,看原文:第一部分是Retrieval-Augmented Generation (RAG) can improve...Sinhala remains underexplored. 然后是This study evaluates...three language models. 这其实是两个部分?不对,原文是一整段?不对,看用户给的正文:哦,用户给的正文是: 第一部分:Retrieval-Augmented Generation (RAG) can improve question answering by providing language models with relevant external context, but its effectiveness for Sinhala remains underexplored. 然后第二句?不对,看原文的段落:哦,用户给的正文是连续的?不对,等下看: 正文如下: Retrieval-Augmented Generation (RAG) can improve question answering by providing language models with relevant external context, but its effectiveness for Sinhala remains underexplored. This study evaluates sparse, dense, and hybrid retrieval strategies for Sinhala question answering across three datasets: SQAD, SiQuAD, and SinhalaMMLU. We compare BM25, dense retrieval using BGE-M3, and hybrid retrieval, alongside no-retrieval and oracle conditions where applicable, and evaluate downstream generation using three language models. On SQAD and SiQuAD, BGE-M3 substantially outperformed BM25, while hybrid retrieval achieved the strongest overall retrieval performance. Hybrid retrieval also generally achieved the best non-oracle generation performance across all three datasets. Paired bootstrap analysis found that 87 of 126 generation-level comparisons were statistically significant, with hybrid retrieval outperforming the no-retrieval baseline in all 27 comparisons. Oracle retrieval significantly outperformed hybrid retrieval in 16 of 18 comparisons where available, indicating that retrieval errors remain an important limitation. Human evaluation further highlighted the limitations of automatic lexical metrics for Sinhala answers. These findings demonstrate the importance of retrieval quality for Sinhala RAG. 哦,不对,这是一整段?但用户要求每个自然段落用p包裹,长文用h2/h3划分小节。那应该合理划分小节对吧?比如首先h2是研究背景与方法?不对,不对,不能自己加内容,哦对,不能增删改内容,所以h2和h3的内容必须来自原文?不对,不对,等下规则2是“长文用
/
划分小节”,但不能增删改内容,那怎么划分?哦,等下,原文的内容可以按逻辑划分小节,标题用原文里的关键信息?不对,不对,再仔细看规则4:保留原文所有信息,不得增删改内容。所以不能加自己的话作为标题,那h2和h3应该是原文里的内容?不对,或者,哦,等下,可能原文的内容可以分成几个部分,用h2来划分,比如: 首先,第一个h2可以是
研究背景与目标
?不对,那是我自己加的,不行,哦不对,规则说不得增删改内容,所以不能添加原文没有的文字。那怎么办?哦,等下,再看规则,哦,可能不需要强行加h2,除非是长文的明显小节,但这个正文是一段?不对,再仔细看原文的内容,其实可以分成几个部分:1. 背景与研究目的:Retrieval-Augmented Generation (RAG) can improve question answering by providing language models with relevant external context, but its effectiveness for Sinhala remains underexplored. 2. 研究方法:This study evaluates sparse, dense, and hybrid retrieval strategies for Sinhala question answering across three datasets: SQAD, SiQuAD, and SinhalaMMLU. We compare BM25, dense retrieval using BGE-M3, and hybrid retrieval, alongside no-retrieval and oracle conditions where applicable, and evaluate downstream generation using three language models. 3. 实验结果:On SQAD and SiQuAD, BGE-M3 substantially outperformed BM25, while hybrid retrieval achieved the strongest overall retrieval performance. Hybrid retrieval also generally achieved the best non-oracle generation performance across all three datasets. Paired bootstrap analysis found that 87 of 126 generation-level comparisons were statistically significant, with hybrid retrieval outperforming the no-retrieval baseline in all 27 comparisons. Oracle retrieval significantly outperformed hybrid retrieval in 16 of 18 comparisons where available, indicating that retrieval errors remain an important limitation. 4. 结论:Human evaluation further highlighted the limitations of automatic lexical metrics for Sinhala answers. These findings demonstrate the importance of retrieval quality for Sinhala RAG. 但标题不能自己加,那怎么办?哦,不对,规则2是“长文用
/
划分小节”,但如果没有原文的小节标题,是不是可以不用?不对,再看用户给的规则,哦,可能我误解了,规则是如果长文需要划分小节的话用h2/h3,没有的话就不用?不对,再仔细看,哦,不对,原文是一段,但逻辑上可以划分,但是不能加内容,所以h2的内容必须是原文里的?不对,原文里没有小标题,那可能不需要加h2/h3?不对,等下,再看规则,哦,规则2是“每个自然段落用
包裹,长文用
/
划分小节”,那如果这个长文需要划分小节,但是原文没有小标题,那是不是可以提取原文的关键信息作为小标题?不对,那算增删吗?哦,不对,规则4是“保留原文所有信息,不得增删改内容”,所以不能添加原文没有的文字。那这样的话,h2/h3如果需要的话,必须是原文里的内容,但原文里没有,那是不是可以不用h2/h3?不对,等下,再看原文,有没有可以作为小标题的?比如,原文里没有,那可能这个文本不需要h2/h3,因为内容不长?不对,再想想,哦,不对,可能我错了,规则是“长文用
/
划分小节”,如果没有明显小节,就不需要,那每个自然段落用p包裹。那原文是一段?不对,用户给的正文是一整段吗?看用户给的: 正文如下: Retrieval-Augmented Generation (RAG) can improve question answering by providing language models with relevant external context, but its effectiveness for Sinhala remains underexplored. This study evaluates sparse, dense, and hybrid retrieval strategies for Sinhala question answering across three datasets: SQAD, SiQuAD, and SinhalaMMLU. We compare BM25, dense retrieval using BGE-M3, and hybrid retrieval, alongside no-retrieval and oracle conditions where applicable, and evaluate downstream generation using three language models. On SQAD and SiQuAD, BGE-M3 substantially outperformed BM25, while hybrid retrieval achieved the strongest overall retrieval performance. Hybrid retrieval also generally achieved the best non-oracle generation performance across all three datasets. Paired bootstrap analysis found that 87 of 126 generation-level comparisons were statistically significant, with hybrid retrieval outperforming the no-retrieval baseline in all 27 comparisons. Oracle retrieval significantly outperformed hybrid retrieval in 16 of 18 comparisons where available, indicating that retrieval errors remain an important limitation. Human evaluation further highlighted the limitations of automatic lexical metrics for Sinhala answers. These findings demonstrate the importance of retrieval quality for Sinhala RAG. 哦,确实是一整段,但逻辑上可以分成几个p?不对,自然段落的话,用户给的是一个自然段落?不对,可能用户给的是连续的,但我们可以根据语义分成几个p?不对,规则1说每个自然段落用p包裹,那如果原文是一个自然段落,就用一个p?但这样好像不太对,再看规则2,长文用h2/h3划分小节,那这个算长文吗?可以划分小节,但是小标题不能自己加,那怎么办?哦,等下,哦,可能我理解错了,h2和h3是用于原文里已经有的小节标题,如果没有的话,就不需要加。那现在,原文里没有小标题,所以不需要h2/h3?然后,有没有需要strong的