Cover of Constructing Context and Semantics for AI Agents by Alex Merced

Constructing Context and Semantics for AI Agents

Published by Self-published · Tech

A practical guide to embeddings, knowledge graphs, memory systems, RAG, evaluation, and production agent architectures.

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 and ML engineers building agent systems, software engineers and architects moving into AI product development, and technical leaders, product managers, and decision-makers evaluating AI agents for their organizations.

Table of contents

  1. Introduction: AI Agents and Context Overview
  2. LLM Fundamentals and Context Windows
  3. Prompt Engineering vs. Context Engineering
  4. Semantic Representations
  5. Knowledge Graphs and Structured Context
  6. Memory Architectures for Agents
  7. Multimodal Context and Grounding
  8. Agent Frameworks and Tools
  9. Evaluation of AI Agents
  10. Safety, Ethics, and Bias Mitigation
  11. Best Practices and Patterns

Excerpt

A customer support bot that forgets the user's name mid-conversation. A coding assistant that ignores the project's authentication layer and writes a second one from scratch. A data analyst agent that fabricates statistics because it never received the actual dataset. These failures share a common root cause: the agent lacked the right context at the right time. Context is not a nice-to-have feature for AI agents. It is the foundation on which every useful behavior depends. An agent's ability to reason, plan, and act correctly is bounded by the information it can access during each decision. When that information is incomplete, stale, or poorly structured, the agent produces outputs that range from mildly unhelpful to dangerously wrong.

Related books

Work with Alex