W-RAG: Source-Aware Retrieval for Enterprise Document Generation from Heterogeneous Knowledge Bases

Hridya Dhulipala, Rajesh Ombase, Michael Wang, Tien N. Nguyen
8/22/2026
cs.SEcs.CLcs.IR
rag

No confident code implementation found for this paper.

Abstract

Retrieval-Augmented Generation (RAG) enables large language models to incorporate external knowledge during generation, improving factual grounding and domain adaptability. However, existing RAG pipelines assume that evidence retrieved from multiple repositories can be ranked globally using a single similarity function.

Show full abstract

While suitable for open-domain retrieval, this assumption breaks down in enterprise document generation, where heterogeneous knowledge bases (such as policies, regulations, technical documentation, and departmental guidelines) serve distinct roles and must be jointly represented in the generated document. As a result, global ranking often produces unbalanced context dominated by a subset of sources, leading to incomplete enterprise drafts. To address this limitation, we propose W-RAG, a source-aware retrieval framework that performs ontology-guided retrieval, local ranking within each knowledge base, and source-level weighting to regulate evidence composition. We further introduce a new dataset for retrieval-grounded enterprise document generation spanning multiple document types and industry domains. Experiments show that standard RAG pipelines struggle on this task, while W-RAG significantly improves document coverage and generation quality.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dhulipala2026wrag,
  title  = {W-RAG: Source-Aware Retrieval for Enterprise Document Generation from Heterogeneous Knowledge Bases},
  author = {Hridya Dhulipala and Rajesh Ombase and Michael Wang and Tien N. Nguyen},
  year   = {2026},
  eprint = {2608.22081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.22081v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.22081.svg)](https://codeofpaper.com/paper/2608.22081)

Discussion