The Modern AI Ecosystem: How 10 Layers Work Together
An architectural map of all 10 AI stack layers, from foundation models and unified agent frameworks through RAG, MCP, state, guardrails, observability, and durable workflows.
Prompt → Plan
01OpenAI GPTAnthropic ClaudeGoogle GeminiMeta LlamaMistralvLLMOllama
Loop & Handoff
02LangGraphClaude Agent SDKOpenAI Agents SDKGoogle ADKPydanticAICrewAIAutoGen
Docs → Chunks
03LlamaIndexHaystackDSPyRAGFlowDocling
Semantic Score
04OpenAI EmbeddingsCohere Embed & RerankVoyage AIBGE
Evidence Index
05PostgreSQL pgvectorQdrantWeaviatePineconeElasticsearch
Typed Tools
06MCP SDKFastMCPPostgreSQL MCPFilesystem MCPGitHub / Slack MCP
Checkpoints
07RedisPostgreSQLLangGraph CheckpointerZepMem0
Policy & Mask
08ACL / SandboxMicrosoft PresidioNeMo GuardrailsLakera Guard
Trace & Eval
09LangSmithLangfuseArize PhoenixPromptfooOpenTelemetry
Queue & Retry
10TemporalCloudflare WorkflowsPrefectApache AirflowMake
Signal Flow Across Layers in a Single Customer Request
01RequestCustomer order or return inquiry enters
02(08) Input GuardrailAuth, prompt-injection & PII checks run
03(02+01) Agent & Model PlanFramework + LLM draft step-by-step plan
04(03+04+05) RAG EvidenceHybrid search retrieves cited policy clauses
05(06) ERP Read via MCPLive order & stock read via typed schema
06(07) Checkpoint SaveIntermediate state persisted to SQL/Redis
07(10) Approval QueueWrite action pauses in durable human queue
08(09) Trace & Cost LogSpans, latency, and eval cost recorded