liveBook · Manning

Chapter 1: Improving LLM accuracy

What you will learn in chapter 1 of Essential GraphRAG

This introduction frames GraphRAG as a way to improve LLM accuracy and currency by combining retrieval-augmented generation with knowledge graphs that connect structured and unstructured data.

After this chapter you will be able to

Section by section

Introduction

This introduction frames GraphRAG as a way to improve LLM accuracy and currency by combining retrieval-augmented generation with knowledge graphs that connect structured and unstructured data.

Key terms: large language models, LLMs, retrieval-augmented generation, RAG, external knowledge base, hallucinations, knowledge graphs, entities, attributes, relationships

1.1 Introduction to LLMs

This section explains how LLMs generate text from learned language patterns, follow instructions, and produce factual-seeming answers without explicitly storing facts.

Key terms: LLMs, training dataset, next word prediction, patterns, context, instruction-following, RAG pipelines, retrieval components, transformer, neural network

1.2 Limitations of LLMs

This section frames LLMs as powerful AI systems that also have important limitations and introduces the examination of those limitations and their implications.

Key terms: LLMs, limitations, challenges, constraints, implications

1.2.1 Knowledge cutoff problem

This section explains that an LLM cannot know information published or occurring after the latest date represented in its training data.

Key terms: knowledge cutoff date, training dataset, training data, knowledge cutoff problem

1.2.2 Outdated information

This subsection explains that LLM answers can become outdated as real-world facts change after the model’s knowledge cutoff, motivating updated data or real-time information access.

Key terms: outdated responses, knowledge cutoff, recent developments, Mark Cuban, Dallas Mavericks, Adelson family, Dumonts, majority stake, minority share, updating training data

1.2.3 Pure hallucinations

This section explains pure hallucinations: LLMs can confidently fabricate incorrect facts because they predict likely text rather than verify truth.

Key terms: hallucinations, pure hallucinations, knowledge cutoff, probabilistic language models, next token, training data, statistical pattern matching, reasoning engines, reliable external sources, URLs

1.2.4 Lack of private information

This subsection explains why an LLM cannot answer accurately from private company information absent from its training data and why publishing that data is not a viable remedy.

Key terms: private information, internal information, proprietary information, training data, knowledge cutoff, data privacy, data control, training dataset, bias in responses, lack of understanding and context

1.3 Overcoming the limitations of LLMs

This section introduces supervised finetuning and retrieval-augmented generation as approaches for injecting domain-specific knowledge into LLM applications that need precise, factually accurate outputs.

Key terms: domain-specific knowledge, supervised finetuning, retrieval-augmented generation, RAG

1.3.1 Supervised finetuning

This section explains supervised finetuning as a comparatively inexpensive way to train LLMs with prompt–response examples, while noting why it is not yet a reliably simple solution for keeping production models factually current.

Key terms: pretraining, supervised finetuning, reward modeling, reinforcement learning, input prompt, desired outputs, question–answer pair, high-quality conversations, factuality, new factual information

1.3.2 Retrieval-augmented generation

This section explains how retrieval-augmented generation retrieves external facts and supplies them with a user question to ground an LLM's answer.

Key terms: retrieval-augmented generation, RAG workflow, external knowledge base, internal knowledge, hallucinations, retrieval stage, augmented generation stage, retrieved information, grounded response, search query

1.4 Knowledge graphs as the data storage for RAG applications

This section explains why knowledge graphs and graph databases are well suited to RAG because they combine structured facts, relationships, and unstructured text in one connected store.

Key terms: knowledge graph, graph database, nodes, concepts, entities, relationships, structured information, unstructured information, article contents, structured data

1.5 Summary

This summary recaps LLM limitations and shows how RAG, especially RAG backed by knowledge graphs, supplies reliable external context for more accurate answers.

Where this is used later

Concepts explained in this chapter

Chapter 2: Vector similarity search and hybrid search →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.