W-RAG: Source-Aware Retrieval for Enterprise Document Generation from Heterogeneous Knowledge Bases
This paper introduces W-RAG, a source-aware retrieval framework that addresses the limitations of global ranking in heterogeneous enterprise knowledge bases by employing ontology-guided retrieval and source-level weighting to improve document coverage and generation quality.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the modern workplace, writing complex documents like policy manuals, merger reports, or product launch plans often requires pulling together information from many different places. A team might need to consult internal company rules, scientific research papers, government regulations, and market news all at once. To help with this, computer scientists have developed systems that allow artificial intelligence to look up facts before it writes a sentence. This approach, known as retrieval-augmented generation, acts like a digital assistant that reads a library of documents and uses those notes to draft a response. The goal is to make the AI more accurate and grounded in reality, preventing it from inventing facts. However, a significant problem arises when these systems try to gather information from several different types of libraries at the same time.
The challenge is that not all information sources are equal, and they do not all play the same role in a single document. A standard system often treats every piece of text it finds as if it were competing in a single race, picking the top results based purely on how closely the words match the user's question. In a corporate setting, this method often fails. It might pull in hundreds of pages of general news articles because they contain the right keywords, while completely ignoring a single, crucial paragraph from a specific government regulation or a technical safety guideline. The result is a draft that sounds fluent but misses the essential, specialized details required to make the document legally or technically valid. The AI ends up with a context window dominated by one type of source, leaving out the diverse evidence needed to build a complete picture.
Researchers Hridya Dhulipala, Rajesh Ombase, Michael Wang, and Tien N. Nguyen set out to solve this specific problem. They proposed a new framework called W-RAG, which stands for source-aware retrieval. Instead of letting all documents from all libraries compete against each other in one big pool, this new system organizes the search process. It first identifies the specific themes required for the document, such as "data privacy" or "financial compliance," and uses a structured map of concepts to find relevant passages. Then, rather than ranking everything together, it ranks the best documents within each specific library separately. Finally, it assigns a specific budget to each library, deciding exactly how much space from the final document should be filled by corporate reports, how much by scientific papers, and how much by legal texts. This ensures that the final draft is a balanced composition of evidence, reflecting the true needs of the task rather than just the volume of text available in one source.
To test if this approach actually worked, the team created a new dataset designed specifically for this kind of enterprise writing. They constructed one hundred realistic scenarios, ranging from drafting healthcare policies to preparing merger and acquisition reports. For each scenario, they built four distinct libraries of information: one containing corporate filings and operational guides, another with scientific research, a third with legal and regulatory texts, and a fourth with market news and industry reports. They then asked the AI to write documents based on these mixed sources. The researchers found that standard systems, which simply pick the top results from a global list, struggled significantly. These systems often produced documents that were fluent but incomplete, failing to cover the mandatory requirements of the task because they had ignored the smaller, specialized libraries.
The results showed a clear difference when the new source-aware method was used. By forcing the system to respect the distinct roles of each knowledge base, the quality of the generated documents improved dramatically. The new approach increased the satisfaction of document requirements by more than fifty percent compared to the previous best methods, and by over one hundred percent compared to standard systems. It also ensured that the information used to write the document came from the right mix of sources, rather than being skewed toward the largest or most text-heavy library. The study suggests that for complex, real-world writing tasks, the way information is selected and balanced is just as important as the ability to find it. By managing the composition of evidence carefully, the system can produce drafts that are not only factually grounded but also structurally complete, meeting the diverse needs of modern enterprise writing.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.