Skip to main content
QUICK REVIEW

[Paper Review] FACTS About Building Retrieval Augmented Generation-based Chatbots

Rama Akkiraju, Anbang Xu|arXiv (Cornell University)|Jul 10, 2024
AI in Service InteractionsComputer Science9 citations
TL;DR

This paper introduces the FACTS framework for enterprise-grade RAG-based chatbots, detailing 15 control points across RAG pipelines, a flexible NVBot platform architecture, and empirical trade-offs between large and small LLMs in enterprise contexts.

ABSTRACT

Enterprise chatbots, powered by generative AI, are emerging as key applications to enhance employee productivity. Retrieval Augmented Generation (RAG), Large Language Models (LLMs), and orchestration frameworks like Langchain and Llamaindex are crucial for building these chatbots. However, creating effective enterprise chatbots is challenging and requires meticulous RAG pipeline engineering. This includes fine-tuning embeddings and LLMs, extracting documents from vector databases, rephrasing queries, reranking results, designing prompts, honoring document access controls, providing concise responses, including references, safeguarding personal information, and building orchestration agents. We present a framework for building RAG-based chatbots based on our experience with three NVIDIA chatbots: for IT/HR benefits, financial earnings, and general content. Our contributions are three-fold: introducing the FACTS framework (Freshness, Architectures, Cost, Testing, Security), presenting fifteen RAG pipeline control points, and providing empirical results on accuracy-latency tradeoffs between large and small LLMs. To the best of our knowledge, this is the first paper of its kind that provides a holistic view of the factors as well as solutions for building secure enterprise-grade chatbots."

Motivation & Objective

  • Define the FACTS framework (Freshness, Architecture, Cost, Testing, Security) for enterprise RAG chatbots.
  • Identify and describe 15 control points in RAG pipelines and provide optimization strategies for each point.
  • Propose a flexible, multi-bot NVBot platform to support domain-specific, enterprise-wide, and copilots architectures.
  • Evaluate the cost-performance trade-offs between large and small LLMs in enterprise chatbot deployments.
  • Illustrate practical experiences from building three NVIDIA chatbots (NVInfo, NVHelp, Scout) to validate the framework.

Proposed method

  • Describe the five FACTS dimensions and argue their importance for enterprise RAG chatbot success.
  • Enumerate and explain 15 control points of RAG pipelines (RAG-C and RAGOps) with corresponding remediation strategies.
  • Present an architecture for a modular, pluggable NVBot platform enabling selection of LLMs, vector databases, embeddings, and agents.
  • Provide empirical comparisons of accuracy and latency across large vs. small LLMs in enterprise domains using real NVIDIA data.
  • Discuss multi-bot architectures (domain-specific, enterprise-wide, copilot) and the role of guardrails, data governance, and access control in deployment.
Figure 1. Control Points in a typical RAG pipeline when building Chatbots.
Figure 1. Control Points in a typical RAG pipeline when building Chatbots.

Experimental results

Research questions

  • RQ1What are the key challenges to building and deploying enterprise-grade generative AI chatbots using RAG?
  • RQ2How can the FACTS dimensions and the 15 control points be used to optimize RAG-based chatbot performance?
  • RQ3What are the trade-offs between accuracy and latency when using large versus small LLMs in enterprise chatbots?
  • RQ4How should organizations balance architecture flexibility with guardrails, security, and cost in a scalable chatbot platform?

Key findings

  • A framework called FACTS (Freshness, Architecture, Cost, Testing, Security) captures the core dimensions needed for enterprise RAG chatbots.
  • Fifteen control points in RAG pipelines critically influence accuracy, latency, and safety, with metadata enrichment, chunking, query rephrasal, and query reranking having high impact.
  • Hybrid search combining lexical and vector search improves retrieval coverage and relevance.
  • Flexible architectures (NVBot) support multiple bots and domain-specialized copilots within a unified platform.
  • Empirical results show trade-offs between large and small LLMs in terms of accuracy and latency, with open-source LLMs sometimes matching or approaching larger models in enterprise tasks.
  • Security, access control, data governance, and guardrails are essential to prevent data leakage and ensure policy-compliant responses.
Figure 2. Agent architecture for handling complex queries
Figure 2. Agent architecture for handling complex queries

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.