Abstract
Retrieval-Augmented Generation (RAG) systems have become pivotal in leveraging vast corpora to generate informed and contextually relevant responses, notably reducing hallucinations in Large Language Models. Despite significant advancements, these systems struggle to efficiently process and retrieve information from large datasets while maintaining a comprehensive understanding of the context. This paper introduces SKETCH, a novel methodology that enhances the RAG retrieval process by integrating semantic text retrieval with knowledge graphs, thereby merging structured and unstructured data for a more holistic comprehension. SKETCH demonstrates substantial improvements in retrieval performance and maintains superior context integrity compared to traditional methods. Evaluated across four diverse datasets—QuALITY, QASPER, NarrativeQA, and Italian Cuisine—SKETCH consistently outperforms baseline approaches on key RAGAS metrics such as answer relevancy, faithfulness, context precision, and context recall. Notably, on the Italian Cuisine dataset, SKETCH achieved an answer relevancy of 0.94 and a context precision of 0.99, representing the highest performance across all evaluated metrics.
Introduction
Retrieval-Augmented Generation (RAG) has become the standard for reducing hallucinations in Large Language Models (LLMs) by providing them with external, up-to-date context. However, traditional RAG systems often suffer from "short-sightedness." Standard systems typically divide text into arbitrary, fixed-size chunks, which leads to context loss when coherent thoughts are split across segments. Furthermore, they struggle with multi-hop challenges, where answering a query requires connecting disparate information from different parts of a large corpus. SKETCH (Structured Knowledge Enhanced Text Comprehension for Holistic Retrieval) addresses these limitations by creating a system that understands both deep semantic meaning and high-level relational structures.
Methodology
The SKETCH framework utilizes a hybrid architecture that processes data through two parallel streams:
- Semantic Chunking: Unlike fixed-size splitting, SKETCH uses embeddings to identify natural breakpoints in text. Sentences are grouped based on semantic similarity to ensure each chunk represents a complete, meaningful idea.
- Knowledge Graph (KG) Construction: Simultaneously, an LLM extracts entities and their relationships from the text to create a structured map. This allows the system to navigate logical connections that are not physically contiguous in the source material.
- Hybrid Retrieval and Fusion: Upon receiving a query, SKETCH performs a dual search: a vector search for unstructured semantic similarity and a graph traversal for structured relational context. The results are fused, using overlapping tokens as "confirmation signals" to prioritize the most relevant context for the final generation step.
Experimental Results
SKETCH was evaluated against baseline models, including Naive RAG and RAPTOR, across four benchmarks: Italian Cuisine, QuALITY (long-document QA), QASPER (scientific papers), and NarrativeQA (long-form stories).
Performance Highlights
As shown in the comparative analysis, SKETCH consistently leads in retrieval quality:
- Answer Relevancy: In the NarrativeQA dataset, SKETCH demonstrated a 525% improvement over Naive RAG (0.50 vs. 0.08). It also doubled relevancy scores in the technical QASPER domain.
- Context Precision: SKETCH achieved near-perfect precision on the Italian Cuisine dataset, ensuring that the retrieved context was highly relevant to the user's query.
Analysis of Trade-offs
While SKETCH excels in relevancy and precision, the evaluation revealed a "faithfulness gap" in specific contexts. For instance, on the QuALITY dataset, Naive RAG maintained higher faithfulness (0.83) compared to SKETCH (0.69). This suggests that while SKETCH is superior at finding the correct context for complex queries, the increased complexity of the retrieved data can sometimes lead to less literal adherence to the source text during generation.
Conclusion
SKETCH represents a significant advancement in RAG technology by successfully merging structured knowledge graphs with unstructured semantic retrieval. By maintaining thematic integrity through semantic chunking and enabling multi-hop reasoning through graph traversal, SKETCH sets new benchmarks for accuracy and contextual relevance in large-scale document comprehension. Future work will focus on reducing the computational latency of knowledge graph construction and further refining the grounding of generated responses to improve faithfulness across all domains.
Summary updated