Retrieval-Augmented LLM Framework for Domain-Specific QA Accuracy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large Language Models (LLMs) face limitations in knowledge representation due to their training data, leading to inaccuracies and insufficient specificity in open-domain question answering, particularly in applications like IT troubleshooting and customer service, where they may struggle to generate satisfactory answers to user questions in specific domains.

Innovation Solution

A retrieval-based question-answering framework that combines a retriever model with LLMs to generate answers by selecting top-K relevant passages and using them as context, allowing the LLM to generate answers independently for each passage and employing a majority voting mechanism to select the final response, with optional prompts to guide the generation process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If LLMs are used for open-domain question answering, then they can generate natural language responses, but they suffer from limited knowledge representation and insufficient specificity in domain-specific applications

Engineering Contradiction:
Improveanswer accuracyVSAvoidknowledge representation limitation
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The system segments the question answering process into two distinct components: a retrieval model that searches for relevant source documents in an external knowledge base, and an LLM that generates natural language answers based on the retrieved context. This segmentation allows each component to specialize - the retrieval model accesses comprehensive domain-specific information while the LLM handles natural language generation, thereby resolving the knowledge representation limitation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary retrieval mechanism that acts as a bridge between the LLM and external knowledge sources. The retrieval model serves as an intermediary that fetches relevant context from domain-specific knowledge bases, which then feeds into the LLM. This intermediary structure enables the LLM to access up-to-date, domain-specific information without requiring retraining, thus improving answer accuracy while maintaining natural language generation capabilities.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If LLMs are trained on general training data, then they can understand general language patterns, but they cannot provide satisfactory answers in specific domains like IT troubleshooting and customer service

Engineering Contradiction:
Improvedomain-specific adaptabilityVSAvoidtraining data coverage
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The system performs preliminary retrieval of domain-specific knowledge before the LLM generates answers. The retrieval model pre-fetches relevant source documents from domain-specific knowledge bases (such as IT troubleshooting databases or customer service manuals) based on the user's question. This preliminary action ensures that the LLM receives contextually relevant information tailored to specific domains, enabling it to adapt to domain-specific requirements without requiring domain-specific training data.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a universal framework that can adapt to multiple domains through a single LLM combined with domain-specific retrieval systems. The same LLM can handle general language understanding while the retrieval model adapts to different domains by querying different knowledge bases. This multi-functionality approach allows the system to serve various domains (IT troubleshooting, customer service, healthcare, etc.) without needing separate trained models for each domain, thus achieving domain-specific adaptability while maintaining efficiency.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If LLMs rely solely on their training data, then they maintain consistent performance, but they cannot access updated or domain-specific knowledge

Engineering Contradiction:
Improveknowledge accuracyVSAvoidknowledge update delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system implements a feedback mechanism where the retrieval model continuously queries external knowledge bases based on user questions and retrieves the most current and relevant information. The retrieved context is then fed back to the LLM for answer generation. This feedback loop ensures that the system always accesses up-to-date domain-specific knowledge rather than relying on static training data, improving knowledge accuracy while maintaining responsive performance through efficient retrieval processes.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20240428044A1Systems and methods for retrieval based question answering using neura network models
Publication Date: 2024.12.26 SALESFORCE INC
  • US20240428044A1 patent drawing
  • US20240428044A1 patent drawing
  • US20240428044A1 patent drawing

AI summary

Embodiments described herein provide a framework that integrates a retriever model and the LLM to feed retrieved passages to an LLM to generate an answer conditioned on the retrieved passages in response to a query. For example, in one embodiment, a single-round approach is implemented, which involves directly transmitting the retrieved passages to the LLM. For another example, a multi-round methodology is implemented, which involves initially presenting the retrieved passages to the Language Model, collecting its responses, and then adjusting our interaction with the Language Model based on this acquired feedback.