liveBook · Manning

Chapter 1: Knowledge graphs and LLMs: A killer combination

What you will learn in chapter 1 of Knowledge Graphs and LLMs in Action

The chapter introduces why knowledge graphs and large language models complement each other in domain-specific, data-driven applications.

After this chapter you will be able to

Section by section

Introduction

The chapter introduces why knowledge graphs and large language models complement each other in domain-specific, data-driven applications.

Key terms: generative AI, LLMs, hallucinations, domain-specific grounding, knowledge graphs, entities, connections, context, entity extraction, relationships

1.1 Knowledge graphs

This section explains how knowledge graphs represent connected knowledge and why building and using them can be difficult.

Key terms: nodes, relationships, properties, reasoning, inference, heterogeneous data sources, structured data, semistructured data, unstructured data, common graph schema

1.2 Large language models

The section explains how transfer learning, large-scale training, and attention to training data make LLMs useful across natural-language tasks.

Key terms: transfer learning, generic tasks, relation extraction, pretrained language models, large language model, parameters, training corpus, next token prediction, model-centric paradigm, data-centric paradigm

1.3 KGs and LLMs: Stronger together

This section explains how LLMs help build and use knowledge graphs, while knowledge graphs make LLM-supported systems more accurate, current, and explainable.

Key terms: building KGs, unstructured data, querying KGs, summarizing, hallucinations, stale information, structured, verified knowledge, GraphRAG, explainability, transparent information paths

1.4 The paradigm shift in data-driven applications

This section contrasts purpose-built, homogeneous data systems with knowledge graphs as connected, reusable knowledge sources for complex, heterogeneous domains.

Key terms: knowledge graphs, graph pattern matching, traversal, source of truth, data fragmentation, siloed data, data access, governance

1.4.1 The four pillars of knowledge graphs

The section defines a knowledge graph and explains its four pillars: evolution, semantics, integration, and learning.

Key terms: knowledge graph, typed entities, attributes, meaningful named relationships, evolution, ingest, integrate, unify, semantics, meaningful relationships

1.5 Building data-driven applications using KGs and LLMs

Introduces application examples and explains why healthcare is a recurring example for KG and LLM use cases.

Key terms: healthcare, publicly available data

1.5.1 Example use case: Drug discovery and development

This section uses drug discovery to show how knowledge graphs integrate biomedical data and how LLMs can expand those graphs from unstructured sources.

Key terms: data integrity, typed relationships, transitive bonds, inference, unstructured data, scientific publications, clinical reports, hypothesis generation, text mining

1.5.2 Example use case: Conversational AI for customer support

This section explains how knowledge graphs can ground LLM-powered customer support conversations so responses are more useful and contextually relevant.

Key terms: contextual grounding, entities and relationships, structured knowledge, KGs, LLMs, graph-based background context, conversational flow

1.5.3 Deciding whether to use a KG

The section offers questions for deciding when a knowledge graph is useful and when LLMs should support a KG-based solution.

Key terms: KGs, data silos, provenance, relational nature of data, LLMs, entities and relationships, unstructured data, conversational interfaces

1.6 Knowledge graph technologies

Introduces RDF and labeled property graphs as distinct but complementary ways to represent and query knowledge graphs.

Key terms: RDF, LPG, statements or triplets, predicates, nodes, edges, data interoperability, semantic consistency, ontologies, pathfinding

1.6.1 Taxonomies and ontologies

This section explains how taxonomies and ontologies add meaning to knowledge graphs and why modern KGs often use only the semantics they need.

Key terms: semantics, taxonomies, ontologies, KGs, broader–narrower relationships, disjointness, just enough semantics, partial ontologies, ontology features

1.7 How do we teach KGs and LLMs?

The section outlines the skills the book will teach and says it will use practical examples.

1.8 Summary

Where this is used later

Concepts explained in this chapter

Chapter 2: Intelligent systems: A hybrid approach →

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.