Hybrid Layered Retrieval and Task-Aware Embeddings for Efficient Persian RAG Systems

IF 1.6 4区 计算机科学 Q4 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Journal of Web Engineering Pub Date : 2026-07-01 Epub Date: 2026-07-03 DOI:10.13052/jwe1540-9589.2552
Toktam Zoughi;Ehsan Arianyan;Maryam Mahmoudi;Mahtab Aghdamifard;Mohadese Nikoogoftar
{"title":"Hybrid Layered Retrieval and Task-Aware Embeddings for Efficient Persian RAG Systems","authors":"Toktam Zoughi;Ehsan Arianyan;Maryam Mahmoudi;Mahtab Aghdamifard;Mohadese Nikoogoftar","doi":"10.13052/jwe1540-9589.2552","DOIUrl":null,"url":null,"abstract":"This study introduces task-injected layered hybrid retrieval-augmented generation (TILHR-RAG), a framework specifically designed for Persian to address the scarcity of native-language resources and the limitations of English-centric approaches. The architecture combines task-aware query augmentation, a layered retrieval strategy, and a hybrid semantic-lexical retriever, all supported by a multi-stage pipeline that includes preprocessing, document chunking, question generation, and embedding. A novel mechanism for injecting task-specific vectors directs retrieval toward domain intent while preserving comparability across documents. The layered design operates in three stages: per-task frequently asked questions (FAQ) retrieval, hybrid document search using FAISS semantic similarity combined with BM25 keyword matching, and a fallback response generated by a large language model (LLM). This structure ensures both precision and robustness. Comprehensive experiments across five progressively refined configurations demonstrate that TILHR-RAG achieves the best balance among accuracy, efficiency, and scalability, reaching 89.67% semantic accuracy with moderate latency and memory consumption on NVIDIA A100 hardware. Further evaluations on low-resource graphics processing units (GPUs) confirm that accuracy remains stable under hardware constraints, although latency increases significantly. Moreover, multilingual E5 embedding models substantially improve retrieval and generation quality for Persian – outperforming ParsBERT and Sentence-BERT (SBERT) – by mitigating challenges such as orthographic variation and complex compound word structures. Taken together, these findings establish task-injected layered hybrid retrieval-augmented generation as a practical, reproducible, and resource-efficient blueprint for Persian question answering, advancing retrieval-augmented generation for low-resource languages without requiring costly large language model fine-tuning, while also offering adaptable strategies for broader multilingual applications.","PeriodicalId":49952,"journal":{"name":"Journal of Web Engineering","volume":"25 5","pages":"765-796"},"PeriodicalIF":1.6000,"publicationDate":"2026-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=11595283","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Web Engineering","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11595283/","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/3 0:00:00","PubModel":"Epub","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

This study introduces task-injected layered hybrid retrieval-augmented generation (TILHR-RAG), a framework specifically designed for Persian to address the scarcity of native-language resources and the limitations of English-centric approaches. The architecture combines task-aware query augmentation, a layered retrieval strategy, and a hybrid semantic-lexical retriever, all supported by a multi-stage pipeline that includes preprocessing, document chunking, question generation, and embedding. A novel mechanism for injecting task-specific vectors directs retrieval toward domain intent while preserving comparability across documents. The layered design operates in three stages: per-task frequently asked questions (FAQ) retrieval, hybrid document search using FAISS semantic similarity combined with BM25 keyword matching, and a fallback response generated by a large language model (LLM). This structure ensures both precision and robustness. Comprehensive experiments across five progressively refined configurations demonstrate that TILHR-RAG achieves the best balance among accuracy, efficiency, and scalability, reaching 89.67% semantic accuracy with moderate latency and memory consumption on NVIDIA A100 hardware. Further evaluations on low-resource graphics processing units (GPUs) confirm that accuracy remains stable under hardware constraints, although latency increases significantly. Moreover, multilingual E5 embedding models substantially improve retrieval and generation quality for Persian – outperforming ParsBERT and Sentence-BERT (SBERT) – by mitigating challenges such as orthographic variation and complex compound word structures. Taken together, these findings establish task-injected layered hybrid retrieval-augmented generation as a practical, reproducible, and resource-efficient blueprint for Persian question answering, advancing retrieval-augmented generation for low-resource languages without requiring costly large language model fine-tuning, while also offering adaptable strategies for broader multilingual applications.
基于混合分层检索和任务感知嵌入的高效波斯RAG系统
本研究介绍了任务注入分层混合检索增强生成(TILHR-RAG),这是一个专门为波斯语设计的框架,以解决母语资源的稀缺性和以英语为中心的方法的局限性。该体系结构结合了任务感知查询增强、分层检索策略和混合语义-词汇检索器,所有这些都由包括预处理、文档分块、问题生成和嵌入在内的多阶段管道支持。一种注入任务特定向量的新机制将检索导向域意图,同时保持文档之间的可比性。分层设计分为三个阶段:每个任务的常见问题(FAQ)检索,使用FAISS语义相似度结合BM25关键字匹配的混合文档搜索,以及由大型语言模型(LLM)生成的回退响应。这种结构保证了精度和稳健性。在五种逐步细化的配置中进行的综合实验表明,TILHR-RAG在准确性,效率和可扩展性之间达到了最佳平衡,在NVIDIA A100硬件上以中等延迟和内存消耗达到89.67%的语义准确性。对低资源图形处理单元(gpu)的进一步评估证实,尽管延迟显著增加,但在硬件限制下精度仍然稳定。此外,多语言E5嵌入模型通过减轻诸如正字法变化和复杂复合词结构等挑战,大大提高了波斯语的检索和生成质量——优于ParsBERT和句子bert (SBERT)。综上所述,这些发现为波斯语问答建立了一种实用的、可重复的、资源高效的分层混合检索增强生成方法,在不需要昂贵的大型语言模型微调的情况下,推进了低资源语言的检索增强生成,同时也为更广泛的多语言应用程序提供了适应性策略。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Web Engineering
Journal of Web Engineering 工程技术-计算机:理论方法
CiteScore
1.80
自引率
12.50%
发文量
62
审稿时长
9 months
期刊介绍: The World Wide Web and its associated technologies have become a major implementation and delivery platform for a large variety of applications, ranging from simple institutional information Web sites to sophisticated supply-chain management systems, financial applications, e-government, distance learning, and entertainment, among others. Such applications, in addition to their intrinsic functionality, also exhibit the more complex behavior of distributed applications.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书