Cover of Building Knowledge Systems for AI: Graphs, RAG, Memory, and Context by Alex Merced

Building Knowledge Systems for AI: Graphs, RAG, Memory, and Context

Published by Self-published · Tech

A deep dive into building robust knowledge systems for AI using knowledge graphs, RAG, memory architectures, and context management.

About the author: Alex Merced is Head of Developer Relations at Dremio and the author of 77 books on data, AI, economics, fiction, and tabletop RPGs. His story is on WhoIsAlexMerced.com.

Who this book is for

AI engineers designing knowledge retrieval for agents, knowledge engineers and data architects building enterprise knowledge infrastructure, search engineers moving to AI-powered retrieval, and technical leaders evaluating knowledge system architectures.

Table of contents

  1. The Knowledge Problem in AI
  2. Knowledge Graphs: Foundations
  3. Ontologies and Schema Design
  4. Entity Linking and Resolution
  5. Embedding Models and Vector Search
  6. Hybrid Search Systems
  7. Building Knowledge Graphs from Unstructured Data
  8. GraphRAG: Knowledge Graphs Meet Retrieval
  9. Semantic Indexing and Structured Retrieval
  10. Agent Memory and Knowledge Integration
  11. Multimodal Knowledge Systems
  12. Governing Knowledge Systems

Excerpt

A product team at a mid-size financial services company built a customer support chatbot in three days. They connected GPT-5.4 to a simple chat interface, wrote a system prompt describing the company's products, and launched it internally. The first day went well. On the second day, a customer asked about a pricing change that had been announced the previous week. The chatbot confidently quoted the old pricing. On the third day, a customer asked whether their account qualified for a recently introduced loyalty discount. The chatbot invented a discount program that did not exist.

Related books

Work with Alex