LLM Query Repair via Knowledge Graph and Correction Database

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large language models (LLMs) often generate responses that appear correct but are factually incorrect, despite further training, which can lead to inaccurate results.

Innovation Solution

A system that creates a knowledge graph from collected queries, augments it with statistical analysis and relationship information, and converts natural language statements into database queries using a knowledge graph language (KGL) to generate human-intelligible entities and repair results output by LLMs, ensuring accuracy and usability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If LLMs are trained to process natural language statements and generate responses, then the model can provide sophisticated responses, but the model often provides results that have the appearance of correct results but are factually incorrect

Engineering Contradiction:
Improvenatural language processing capabilityVSAvoidfactual accuracy of results
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent introduces a knowledge graph as an intermediary between the LLM and the final output. The knowledge graph serves as a mediator that stores verified factual information and relationships, allowing the LLM to retrieve accurate data rather than generating it from scratch, thus resolving the contradiction between natural language processing capability and factual accuracy

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements a feedback mechanism where the LLM generates initial responses, which are then verified against the knowledge graph. Any discrepancies are detected and corrected by retrieving accurate information from the knowledge graph, creating a feedback loop that ensures factual accuracy while maintaining natural language interaction capabilities

Inventive Principle:
Principle #23Feedback

2Reliability

If further training is applied to eliminate errors, then some incorrect results may be eliminated, but incorrect results may still appear

Engineering Contradiction:
Improvefactual accuracyVSAvoidtraining complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

Instead of continuously training the LLM to eliminate errors, the patent creates a copy of accurate knowledge in the form of a knowledge graph. This knowledge graph is constructed from verified data and relationships, providing a static reference that prevents hallucinations without requiring continuous model retraining, thus improving reliability without increasing training complexity

Inventive Principle:
Principle #26Copying

3Measurement precision

If a knowledge graph is created from collected queries and augmented with statistical analysis, then accurate database queries can be generated, but the system complexity increases

Engineering Contradiction:
Improvequery accuracyVSAvoidsystem structure complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system segments the complex task of generating accurate database queries into distinct components: (1) collecting queries, (2) creating a knowledge graph from queries, (3) augmenting with statistical analysis, and (4) generating final queries. This segmentation allows each component to be optimized independently, improving query accuracy while managing system complexity through modular architecture

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20250013635A1System for Repairing LLM Results
Publication Date: 2025.01.09 DATAIRIS PLATFORM INC
  • US20250013635A1 patent drawing
  • US20250013635A1 patent drawing
  • US20250013635A1 patent drawing

AI summary

Query language statements are generated from natural language statements using a knowledge graph representing one or more databases. An LLM may be used to generate database language statements from natural language statements. The database language statements may be modified based on the knowledge graph. The database language statements may be corrected using a correction database. The correction database may include entries including a natural language statement, an original database language statement, and one or more corrections. Entries may be corrected in response to human corrections of outputs of the LLM. Entries with common corrections may be consolidated.