liveBook · Manning

AI framework

As explained in The Art of AI Product Development

A software framework that provides reusable abstractions and components for developing artificial intelligence applications.

An AI framework provides reusable APIs and abstractions for assembling language-model agents into workflows and applications. Frameworks can accelerate experimentation, but flexibility, overhead, and switching costs make framework choice a practical risk decision rather than a feature race. section 9.2.3 section 9.5

Common framework choices emphasize different kinds of agent work:

  • LangChain supports commercial and open-source language-model APIs, chains, workflow logic, and custom or repository-based tools; its breadth can also feel overengineered. section 9.2.3
  • LangGraph targets sophisticated stateful agents through graph-based workflows, state management, multi-turn conversations, and LangChain integration. section 9.2.3
  • LlamaIndex focuses on search and retrieval applications, offering a simple interface for querying language models and retrieving relevant documents, with emphasis on large-data efficiency. section 9.2.3

A framework does not remove the underlying constraints of agent systems: finite context, unpredictable outputs, difficult task decomposition, and limited autonomy remain. Start with a lean prompt-and-tools setup, then add planning, memory, and other complexity incrementally; use human review when confidence is low or errors could be catastrophic. section 9.3 section 9.5

Figure 9.14 Agents need short-term memory for the current session and long-term memory for learning and improvement over time.
A diagram of a computer process

AI-generated content may be incorrect.

Relates framework-based agents to short-term session memory and long-term memory for learning and improvement. section 9.2.3

How The Art of AI Product Development covers it

How deep it goes
Compares framework architectures and trade-offs, then defers detailed implementation to incremental experimentation and risk management.
Examples
Compares LangChain, LangGraph, and LlamaIndex as frameworks for general integration, stateful agents, and search or retrieval.
What it assumes
Assumes familiarity with language-model agents and their tools, planning, memory, and context constraints.
What you can do after
Evaluate framework fit, prototype an agent incrementally, and manage autonomy with human review and bounded tasks.
How it connects
Connects language models with agents, tool use, planning, memory, retrieval, state management, and human-in-the-loop processes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of AI Product Development. The section links point to the parts of the book it draws on.