Enhancing Question Answering for Enterprise Knowledge Bases using Large Language Models

Feihu Jiang, Chuan Qin, Kaichun Yao, Chuyu Fang, Fuzhen Zhuang, Hengshu Zhu, Hui Xiong

Introduction

Building a Retrieval-Augmented Generation (RAG) system for enterprise environments presents a significant "cold start" challenge. Unlike open-domain datasets such as Wikipedia, internal company manuals and project documentation lack the thousands of pre-written question-answer pairs required to train state-of-the-art retrievers and generators. Furthermore, strict data privacy policies often prevent organizations from using third-party APIs to generate training data.

The EKRG (Enterprise Knowledge Retrieval-Generation) framework addresses these hurdles by enabling high-performance question-answering on private data with minimal human annotation. By utilizing instruction-tuned LLMs to generate synthetic training data and employing a "relevance-aware" iterative learning strategy, EKRG outperforms standard RAG approaches while respecting data security.

The EKRG Framework

EKRG decomposes the QA task into two specialized modules: a retrieval module to locate relevant information and a generation module to synthesize the final answer.

1. The Retrieval Module

The framework utilizes ColBERT as its dense retriever. To train the retriever without a massive pre-existing dataset, the authors implement two key strategies:

  • Instruction-Tuning for Data Generation: A private LLM (such as Baichuan-13B) is fine-tuned using a seed set of only 50 human-labeled pairs. This model then generates "pseudo" questions for the entire knowledge base. The generation is specifically prompted to create both Fact-oriented (simple lookups) and Solution-oriented (complex, multi-step) questions to ensure query diversity.
  • Relevance-aware Teacher-Student Learning: To prevent low-quality synthetic data from degrading the model, an iterative loop is used. A "teacher" (initially BM25, then the retriever itself) filters the generated questions. Only questions that successfully "find" their source document are retained for the next round of training, ensuring the retriever learns from high-confidence examples.

2. The Generation Module

Once documents are retrieved, the generation module must produce an accurate response while avoiding hallucinations.

  • CoT-based Fine-tuning: The generator is trained using Chain-of-Thought (CoT) reasoning. Instead of immediate output, the model is taught to summarize the document, assess whether the document actually contains the answer, and then either provide the answer or label the document as "irrelevant."
  • Answer Integration: The system retrieves k documents and generates potential answers for each. It then selects the answer with the highest language model probability, effectively filtering out noise from irrelevant search results.

Experimental Evaluation

The framework was evaluated on the EKR (Enterprise Knowledge Retrieval) dataset, a collection of 291,649 technical and project documents from a high-tech company. To demonstrate generalizability, the retrieval module was also tested on public benchmarks including FiQA, NQ (Natural Questions), and MS MARCO.

Key Results

EKRG consistently outperformed baselines such as standard RAG, RFiD, and In-Context RALM:

  • Retrieval Performance: On the EKR dataset, EKRG achieved an NDCG@10 of 0.8723, significantly higher than BM25 (0.6934) and LLM-based generators like Inpars (0.8078).
  • Generation Accuracy: For complex "Solution-oriented" questions, EKRG reached a ROUGE score of 68.39, compared to just 24.01 for standard RAG.
  • Ablation Insights: Removing the CoT component resulted in a drop in Exact Match (EM) scores on factual questions from 55.74 to 51.09, confirming that the "think-before-you-speak" approach is vital for precision.

Discussion and Future Work

EKRG demonstrates that diversity in synthetic data is crucial; by explicitly generating solution-oriented questions, the retriever becomes significantly better at handling professional, complex queries. Furthermore, the ability to recognize and label "irrelevant" documents during the CoT process acts as a safeguard against hallucinations.

While highly effective, the framework's iterative training and multi-answer generation increase computational costs compared to single-pass RAG systems. Future research will explore multi-hop reasoning, where answers are synthesized from multiple documents simultaneously, and further optimize the performance of the underlying open-source LLM backbones.

Summary updated

BibTeX
@inproceedings{jiang2024enhancing,
  author = {Feihu Jiang and Chuan Qin and Kaichun Yao and Chuyu Fang and Fuzhen Zhuang and Hengshu Zhu and Hui Xiong},
  title = {{Enhancing Question Answering for Enterprise Knowledge Bases using Large Language Models}},
  booktitle = {DASFAA},
  year = {2024},
  doi = {10.1007/978-981-97-5562-2\_18},
}
Figure