Skip to content

Part VIII โ€” AI Engineering Frameworks & Tooling

Master the modern frameworks, orchestration platforms, SDKs, and development tools used to build, evaluate, deploy, and operate production-ready Enterprise AI applications.

 AI Engineering Frameworks & Tooling Banner


๐Ÿ“– Overview

Modern AI applications extend far beyond calling Large Language Models through APIs. Building production-ready Enterprise AI systems requires a rich ecosystem of frameworks, orchestration platforms, SDKs, evaluation tools, and development utilities that simplify the creation, deployment, and operation of intelligent applications.

This module provides a production-focused introduction to the AI engineering ecosystem, covering the industry's leading frameworks and tooling for developing LLM-powered applications, Retrieval-Augmented Generation (RAG) pipelines, AI Agents, Agentic AI systems, and enterprise AI platforms.

Designed for software engineers, backend developers, cloud engineers, solution architects, and AI engineers, this module equips you with the practical knowledge required to select, integrate, and leverage the right frameworks for building scalable, maintainable, and production-ready AI systems.


๐ŸŽฏ Learning Outcomes

After completing this module, you will be able to:

  • Understand the modern AI Engineering ecosystem
  • Compare popular AI orchestration frameworks
  • Build LLM applications using industry-standard SDKs
  • Develop RAG applications using specialized frameworks
  • Build AI Agents and Agentic AI systems using modern orchestration platforms
  • Understand workflow orchestration and execution models
  • Compare framework capabilities and trade-offs
  • Select the appropriate framework for different enterprise use cases
  • Design modular, maintainable, and scalable AI applications
  • Apply production best practices when building Enterprise AI systems

๐Ÿงญ Framework Ecosystem

The modern AI Engineering ecosystem can be viewed as multiple layers:

flowchart TD

    A[Enterprise AI Applications]

    A --> B[AI Application Frameworks]
    A --> C[Agent & Workflow Frameworks]
    A --> D[RAG & Data Frameworks]
    A --> E[AI Provider SDKs]
    A --> F[AI Programming & Optimization]

    B --> B1[LangChain]
    B --> B2[Semantic Kernel]

    C --> C1[LangGraph]
    C --> C2[CrewAI]
    C --> C3[AutoGen]

    D --> D1[LlamaIndex]
    D --> D2[Haystack]

    E --> E1[OpenAI SDK]
    E --> E2[Anthropic SDK]
    E --> E3[Google GenAI SDK]

    F --> F1[DSPy]

    A --> G[Framework Comparisons]

The objective is not simply to learn APIs.

The objective is to understand:

Framework
   โ†“
Abstractions
   โ†“
Capabilities
   โ†“
Architecture
   โ†“
Production Trade-offs

Section 1 โ€” LangChain

Build LLM-powered applications using LangChain's abstractions for models, prompts, tools, retrieval, agents, and application workflows.

Chapter Status
01. LangChain Fundamentals โœ…
02. LangChain Models & Prompts โœ…
03. LangChain Tools & Function Calling โœ…
04. LangChain Retrieval & RAG โœ…
05. LangChain Memory & State โœ…
06. LangChain Agents โœ…
07. LangChain Production Patterns โœ…
08. LangChain Limitations & Trade-offs โœ…

LangChain Coverage

The LangChain section covers:

  • LangChain architecture
  • Core abstractions
  • Model integration
  • Prompt abstractions
  • Message handling
  • Tool integration
  • Function calling
  • Retrieval
  • RAG pipelines
  • Agent integration
  • Memory and state
  • Production patterns
  • Framework limitations and trade-offs

LangChain Architecture

flowchart LR

    A[Application] --> B[LangChain]

    B --> C[Models]
    B --> D[Prompts]
    B --> E[Tools]
    B --> F[Retrieval]
    B --> G[Agents]
    B --> H[Memory / State]

    C --> I[LLM Providers]
    D --> I
    E --> J[Enterprise APIs]
    F --> K[Vector Stores]
    G --> C
    G --> E
    H --> L[State Store]

Section 2 โ€” LlamaIndex

Build data-centric AI applications using LlamaIndex for document ingestion, indexing, retrieval, RAG, agents, and workflows.

Chapter Status
09. LlamaIndex Fundamentals โœ…
10. LlamaIndex Data & Document Ingestion โœ…
11. LlamaIndex Indexes & Retrieval โœ…
12. LlamaIndex RAG Pipelines โœ…
13. LlamaIndex Agents & Tools โœ…
14. LlamaIndex Workflows โœ…
15. LlamaIndex Production Patterns โœ…
16. LlamaIndex Limitations & Trade-offs โœ…

LlamaIndex Coverage

The LlamaIndex section covers:

  • LlamaIndex architecture
  • Data ingestion
  • Document processing
  • Indexing
  • Retrieval
  • RAG pipelines
  • Agents
  • Tools
  • Workflows
  • Production architecture
  • Framework limitations and trade-offs

LlamaIndex Architecture

flowchart TD

    A[Enterprise Data] --> B[Data Connectors]
    B --> C[Document Processing]
    C --> D[Nodes / Chunks]

    D --> E[Indexing]
    E --> F[Retrieval]

    F --> G[Context]
    G --> H[LLM]

    H --> I[Response]

    D --> J[Metadata]
    J --> F

    F --> K[RAG Pipeline]
    K --> H

Section 3 โ€” LangGraph

Build stateful, controllable, and production-oriented AI Agent workflows using graph-based orchestration.

Chapter Status
17. LangGraph Fundamentals โœ…
18. Graph-Based Agent Architecture โœ…
19. LangGraph State & Checkpointing โœ…
20. LangGraph Nodes, Edges & Routing โœ…
21. LangGraph Human-in-the-Loop โœ…
22. LangGraph Tool Execution โœ…
23. LangGraph Agent Workflows โœ…
24. LangGraph Memory & Persistence โœ…
25. LangGraph Production Patterns โœ…
26. LangGraph Limitations & Trade-offs โœ…

LangGraph Coverage

The LangGraph section covers:

  • Graph-based orchestration
  • Agent state
  • Nodes and edges
  • Routing
  • Conditional execution
  • Checkpointing
  • Persistence
  • Human-in-the-loop workflows
  • Tool execution
  • Stateful Agent workflows
  • Production deployment patterns
  • Framework limitations and trade-offs

LangGraph Architecture

flowchart TD

    A[User Request] --> B[Agent State]

    B --> C[Planner / Agent Node]

    C --> D{Decision}

    D -->|Tool Required| E[Tool Node]
    D -->|Need More Information| F[Retrieval Node]
    D -->|Complete| G[Final Response]

    E --> B
    F --> B

    B --> H[Checkpoint]
    H --> C

    G --> I[User]

Section 4 โ€” Enterprise AI Frameworks

Explore additional frameworks used for enterprise AI applications, Agent orchestration, multi-agent systems, and AI application development.

These frameworks are planned and will be developed later.

Framework Planned Coverage Status
Semantic Kernel Enterprise AI orchestration, plugins, memory, Agents, and workflows ๐Ÿšง
CrewAI Role-based Agents and multi-agent workflows ๐Ÿšง
AutoGen Conversational Agents and multi-agent orchestration ๐Ÿšง
Haystack Production RAG, pipelines, Agents, and retrieval systems ๐Ÿšง

Planned Framework Relationship

flowchart LR

    A[Enterprise AI Frameworks]

    A --> B[Semantic Kernel]
    A --> C[CrewAI]
    A --> D[AutoGen]
    A --> E[Haystack]

    B --> F[Enterprise Orchestration]
    C --> G[Role-Based Agents]
    D --> H[Multi-Agent Conversations]
    E --> I[RAG & Pipelines]

Section 5 โ€” AI Programming & Optimization

Explore frameworks that approach AI application development from a programming, optimization, and declarative perspective.

Framework Planned Coverage Status
DSPy Declarative AI programming, prompt optimization, and LM pipelines ๐Ÿšง

Planned DSPy Coverage

Topics will include:

  • Declarative AI programming
  • Signatures
  • Modules
  • Optimization
  • Prompt optimization
  • Demonstration optimization
  • Evaluation-driven development
  • Production considerations

Section 6 โ€” AI Provider SDKs

Learn how to build AI applications directly using provider-native SDKs and APIs.

SDK Planned Coverage Status
OpenAI SDK Models, Responses, tools, structured outputs, Agents and APIs ๐Ÿšง
Anthropic SDK Claude APIs, tool use, messages, and application integration ๐Ÿšง
Google GenAI SDK Gemini models, multimodal AI, tools, and application integration ๐Ÿšง

Provider SDK Architecture

flowchart TD

    A[Enterprise AI Application] --> B[Provider Abstraction]

    B --> C[OpenAI SDK]
    B --> D[Anthropic SDK]
    B --> E[Google GenAI SDK]

    C --> F[OpenAI Models]
    D --> G[Claude Models]
    E --> H[Gemini Models]

    B --> I[Common Application Contract]

The SDK chapters will emphasize:

  • Direct provider integration
  • Authentication
  • Model invocation
  • Structured outputs
  • Tool calling
  • Streaming
  • Error handling
  • Retries
  • Rate limits
  • Observability
  • Production integration
  • Provider-specific capabilities

Section 7 โ€” AI Framework Comparisons

Compare frameworks and SDKs from an enterprise architecture and production engineering perspective.

Chapter Status
Framework Architecture Comparison ๐Ÿšง
LangChain vs LlamaIndex vs LangGraph ๐Ÿšง
AI Agent Framework Comparison ๐Ÿšง
RAG Framework Comparison ๐Ÿšง
Framework vs Direct SDK ๐Ÿšง
AI Framework Selection Guide ๐Ÿšง
Production AI Framework Architecture ๐Ÿšง

Framework Comparison Model

flowchart TD

    A[Business Requirement] --> B[Architecture Requirements]

    B --> C[RAG]
    B --> D[Agents]
    B --> E[Workflows]
    B --> F[Data]
    B --> G[Provider Integration]

    C --> H[Framework Selection]
    D --> H
    E --> H
    F --> H
    G --> H

    H --> I[LangChain]
    H --> J[LlamaIndex]
    H --> K[LangGraph]
    H --> L[Semantic Kernel]
    H --> M[CrewAI]
    H --> N[AutoGen]
    H --> O[Haystack]
    H --> P[Direct SDK]

The comparison section will focus on:

  • Architecture
  • Abstractions
  • Extensibility
  • Integration
  • RAG capabilities
  • Agent capabilities
  • Workflow orchestration
  • State management
  • Observability
  • Evaluation
  • Production readiness
  • Performance
  • Operational complexity
  • Vendor / framework lock-in
  • Enterprise adoption considerations

๐Ÿข Enterprise Architecture Perspective

The purpose of Part VIII is not simply to teach framework APIs.

The goal is to understand how frameworks fit into a production Enterprise AI architecture.

flowchart TD

    A[Enterprise AI Application]

    A --> B[Application Services]

    B --> C[Model Layer]
    B --> D[RAG Layer]
    B --> E[Agent Layer]
    B --> F[Tool Layer]
    B --> G[Workflow Layer]

    C --> H[Provider SDKs]

    D --> I[LlamaIndex]
    D --> J[Haystack]

    E --> K[LangGraph]
    E --> L[CrewAI]
    E --> M[AutoGen]

    F --> N[Enterprise APIs]
    F --> O[Databases]

    G --> P[LangChain]
    G --> Q[Semantic Kernel]

    B --> R[Observability]
    B --> S[Security]
    B --> T[Governance]

Framework selection should therefore be driven by:

Business Requirements
        โ†“
Architecture Requirements
        โ†“
AI Capabilities
        โ†“
Operational Requirements
        โ†“
Framework / SDK Selection

๐Ÿ”„ Frameworks vs Direct SDKs

One of the important architectural questions covered later in this module will be:

Should we use a framework?

        OR

Should we use the provider SDK directly?

Frameworks can provide:

  • Higher-level abstractions
  • Reusable components
  • Workflow orchestration
  • Tool integration
  • Retrieval integration
  • Agent abstractions
  • Ecosystem integrations

Direct SDKs can provide:

  • Lower abstraction overhead
  • Direct access to provider capabilities
  • Greater control
  • Simpler dependency graphs
  • Easier access to provider-specific features

The correct choice depends on the application's requirements.


๐Ÿงฉ Framework-Agnostic Architecture

Enterprise applications should avoid allowing framework-specific abstractions to leak unnecessarily throughout the entire business domain.

A conceptual architecture can be:

flowchart TD

    A[Business Application] --> B[AI Application Service]

    B --> C[Capability Interfaces]

    C --> D[ModelProvider]
    C --> E[RetrievalProvider]
    C --> F[AgentProvider]
    C --> G[ToolProvider]
    C --> H[WorkflowProvider]

    D --> I[Provider SDK Adapter]
    E --> J[RAG Framework Adapter]
    F --> K[Agent Framework Adapter]
    G --> L[Tool Framework Adapter]
    H --> M[Workflow Framework Adapter]

    I --> N[External AI Providers]
    J --> O[Vector Stores / Data]
    K --> P[Agent Runtime]
    L --> Q[Enterprise APIs]
    M --> R[Workflow Runtime]

This approach can help maintain:

  • Portability
  • Testability
  • Maintainability
  • Replaceability
  • Clear architectural boundaries

๐Ÿ—๏ธ Framework Abstraction Strategy

A production-oriented AI platform can separate:

Business Logic
        โ†“
AI Capabilities
        โ†“
Framework Adapters
        โ†“
Provider / Infrastructure

For example:

Application
    โ†“
LLMProvider
    โ†“
OpenAIAdapter
    โ†“
OpenAI SDK

Or:

Application
    โ†“
AgentProvider
    โ†“
LangGraphAdapter
    โ†“
LangGraph Runtime

This keeps framework-specific implementation details closer to the infrastructure boundary.


๐Ÿ“Š Framework Selection Criteria

There is no universally "best" AI framework.

Selection should depend on:

Consideration Questions
Use Case What are we building?
RAG How complex is retrieval?
Agents How complex is Agent execution?
Workflow Do we need deterministic orchestration?
State How much state must be persisted?
Integration What enterprise systems are involved?
Scale What production scale is required?
Observability How deeply must execution be traced?
Governance What security and compliance controls are required?
Portability How important is framework independence?
Team Skills What does the engineering team already know?
Operations How complex is the resulting platform?

๐Ÿ”ฌ Production Engineering Focus

Every framework chapter in this module should go beyond basic API usage.

Each framework note should cover:

Architecture

How is the framework structured?

Core Abstractions

What concepts does the framework introduce?

Sample Code

Each note should contain practical implementation examples.

Example:

from framework import Model

model = Model(
    model="example-model"
)

response = model.invoke(
    "Explain enterprise AI architecture."
)

print(response)

The exact API will depend on the framework being discussed.


Mermaid Architecture

Framework notes should include architecture diagrams where they improve understanding.

Example:

flowchart LR

    A[Application] --> B[Framework]
    B --> C[Model]
    B --> D[Tools]
    B --> E[Retrieval]
    B --> F[State]

Sample / Worked Example

Each major concept should include a realistic example such as:

Customer Support Agent
        โ†“
Retrieve Customer Context
        โ†“
Call Order Service
        โ†“
Generate Response
        โ†“
Audit Interaction

Graph / Visual Representation

Where useful, framework notes should include graphs or visual representations for:

  • Execution flow
  • State transitions
  • Retrieval pipelines
  • Agent workflows
  • Tool invocation
  • Framework architecture
  • Performance characteristics
  • Component relationships

Text Flow

Simple concepts can use text diagrams when they communicate the architecture more clearly:

Request
  โ†“
Framework
  โ†“
Prompt
  โ†“
Model
  โ†“
Tool
  โ†“
Response

๐Ÿงช Testing & Evaluation

Framework chapters should also cover how the framework integrates with:

Unit Testing
      โ†“
Integration Testing
      โ†“
AI Evaluation
      โ†“
Regression Testing
      โ†“
Production Monitoring

Where applicable, examples should demonstrate:

  • Mock models
  • Mock tools
  • Deterministic tests
  • Integration tests
  • Evaluation datasets
  • Output validation
  • Failure testing

โšก Performance & Optimization

Framework notes should address production performance where relevant.

Areas include:

  • Latency
  • Token usage
  • Concurrency
  • Streaming
  • Batching
  • Caching
  • Connection reuse
  • Async execution
  • Retrieval performance
  • Tool execution overhead
  • Framework overhead

Example production flow:

flowchart LR

    A[Request] --> B[Framework Runtime]
    B --> C[Optimization Layer]
    C --> D[Model]
    C --> E[Cache]
    C --> F[Tools]

    D --> G[Response]
    E --> G
    F --> G

โš ๏ธ Common Pitfalls

Framework notes should identify common problems such as:

  • Excessive abstraction
  • Framework lock-in
  • Hidden network calls
  • Uncontrolled retries
  • Poor error handling
  • State management issues
  • Difficult debugging
  • Dependency complexity
  • Version compatibility problems
  • Production observability gaps
  • Excessive framework coupling

๐Ÿงญ Relationship With Previous Parts

Part VIII builds on the engineering concepts covered earlier in the handbook.

flowchart LR

    A[Part III<br/>Foundation Models & LLMs]
        --> B[Part IV<br/>Generative AI]

    B --> C[Part V<br/>Production RAG Engineering]

    C --> D[Part VI<br/>AI Agents]

    D --> E[Part VII<br/>Agentic AI & Multi-Agent Systems]

    E --> F[Part VIII<br/>AI Engineering Frameworks & Tooling]

The distinction is important.

Earlier parts explain primarily:

WHAT
+
WHY

Part VIII focuses more heavily on:

HOW

using modern AI engineering frameworks and SDKs.


๐Ÿ“š Part VIII Technology Map

flowchart TD

    A[Part VIII<br/>AI Engineering Frameworks & Tooling]

    A --> B[Application Frameworks]
    A --> C[Agent Frameworks]
    A --> D[RAG / Data Frameworks]
    A --> E[AI Programming]
    A --> F[Provider SDKs]
    A --> G[Framework Comparisons]

    B --> B1[LangChain]
    B --> B2[Semantic Kernel]

    C --> C1[LangGraph]
    C --> C2[CrewAI]
    C --> C3[AutoGen]

    D --> D1[LlamaIndex]
    D --> D2[Haystack]

    E --> E1[DSPy]

    F --> F1[OpenAI SDK]
    F --> F2[Anthropic SDK]
    F --> F3[Google GenAI SDK]

    G --> G1[Framework Selection]
    G --> G2[Framework vs SDK]
    G --> G3[Production Architecture]

๐Ÿšฆ Current Development Status

โœ… Completed

LangChain

  • LangChain Fundamentals
  • LangChain Models & Prompts
  • LangChain Tools & Function Calling
  • LangChain Retrieval & RAG
  • LangChain Memory & State
  • LangChain Agents
  • LangChain Production Patterns
  • LangChain Limitations & Trade-offs

LlamaIndex

  • LlamaIndex Fundamentals
  • LlamaIndex Data & Document Ingestion
  • LlamaIndex Indexes & Retrieval
  • LlamaIndex RAG Pipelines
  • LlamaIndex Agents & Tools
  • LlamaIndex Workflows
  • LlamaIndex Production Patterns
  • LlamaIndex Limitations & Trade-offs

LangGraph

  • LangGraph Fundamentals
  • Graph-Based Agent Architecture
  • LangGraph State & Checkpointing
  • LangGraph Nodes, Edges & Routing
  • LangGraph Human-in-the-Loop
  • LangGraph Tool Execution
  • LangGraph Agent Workflows
  • LangGraph Memory & Persistence
  • LangGraph Production Patterns
  • LangGraph Limitations & Trade-offs

๐Ÿšง Planned

The following areas remain under development:

Enterprise AI Frameworks

  • Semantic Kernel
  • CrewAI
  • AutoGen
  • Haystack

AI Programming & Optimization

  • DSPy

Provider SDKs

  • OpenAI SDK
  • Anthropic SDK
  • Google GenAI SDK

Framework Comparisons

  • Framework Architecture Comparison
  • LangChain vs LlamaIndex vs LangGraph
  • AI Agent Framework Comparison
  • RAG Framework Comparison
  • Framework vs Direct SDK
  • AI Framework Selection Guide
  • Production AI Framework Architecture

๐Ÿข Enterprise AI Engineering Principle

Frameworks should be treated as engineering tools, not architectural dependencies that automatically define the entire system.

A strong enterprise architecture should follow:

flowchart TD

    A[Business Requirements]
        --> B[Architecture]

    B --> C[AI Capabilities]

    C --> D[Framework / SDK Selection]

    D --> E[Implementation]

    E --> F[Testing]

    F --> G[Evaluation]

    G --> H[Production Deployment]

    H --> I[Observability]

    I --> J[Continuous Improvement]

The framework should serve the architecture.

The architecture should not be forced to serve the framework.


๐Ÿš€ Start Learning

The framework journey begins with the completed LangChain section:

โžก๏ธ 01. LangChain Fundamentals

The completed learning path is:

LangChain
    โ†“
LlamaIndex
    โ†“
LangGraph

The future learning path will continue with:

Semantic Kernel
    โ†“
CrewAI
    โ†“
AutoGen
    โ†“
DSPy
    โ†“
Haystack
    โ†“
OpenAI SDK
    โ†“
Anthropic SDK
    โ†“
Google GenAI SDK
    โ†“
Framework Comparisons

๐Ÿšง Module Status

Status: ๐Ÿšง Under Active Development

The roadmap for this module has been finalized, with the LangChain, LlamaIndex, and LangGraph sections completed.

The remaining frameworks, SDKs, and comparison chapters will be developed progressively.

Each chapter will include

  • ๐Ÿ“– Production-focused explanations
  • ๐Ÿ—๏ธ Enterprise architecture diagrams
  • ๐Ÿ”ท Mermaid architecture and workflow diagrams
  • ๐Ÿ’ป Sample implementation code
  • ๐Ÿงช Testing and evaluation examples
  • ๐Ÿ“Š Graphs / visual representations where useful
  • ๐Ÿ”„ Text-based execution flows where appropriate
  • โšก Best practices & optimization techniques
  • โš ๏ธ Common pitfalls & troubleshooting guidance
  • ๐Ÿข Enterprise architecture considerations
  • โ“ Interview questions
  • ๐Ÿ“ Quick revision notes
  • ๐Ÿ“š References & further reading

Enterprise AI Engineering Handbook
Building Production-Grade Enterprise AI Systems โ€” One Chapter at a Time.