Introduction to LLM
This page provides an easy-to-understand guide on LLMs (Large Language Models) from basics to applications for AI enthusiasts.
Chapter 14 — Benchmarking, Testing, and Performance
Fifteenth and final post of the LLM Primer IV walkthrough. The MCP-Universe Benchmark on real servers, the two systemic failure modes it exposed, the ten-times throughput gap between session-per-request and shared session pools, and the bridge to Volume V.
2026-04-12Chapter 13 — Frameworks and Cloud Integration
Fourteenth post of the LLM Primer IV walkthrough. Strands with Bedrock, the AWS state-layer pattern, the Microsoft Agent Framework, LangChain, Semantic Kernel — and the three production integration shapes teams keep arriving at independently.
2026-04-11Chapter 12 — Protocol Hardening and Defenses
Thirteenth post of the LLM Primer IV walkthrough. The four defense clusters — cryptographic attestation, OAuth scope discipline with bounded sessions, runtime sandboxing, and human-in-the-loop gates — compose into a posture that does not depend on the model behaving correctly under adversarial conditions.
2026-04-10Chapter 11 — Attack Surfaces and Protocol Vulnerabilities
Eleventh post of the LLM Primer IV walkthrough. The classical attacks adapted to MCP — Confused Deputy, Token Passthrough, Session Hijacking — the protocol-level flaws around capability escalation and unauthenticated sampling, and the implicit trust propagation that makes context poisoning a structural problem rather than a hygiene one.
2026-04-09Chapter 10 — Long-Horizon Task Memory
Tenth post of the LLM Primer IV walkthrough. Short-term memory through windows and ReAct scratchpads, long-term memory through episodic vectors and semantic stores, and the compaction techniques that keep an agent productive over hours and days.
2026-04-08Chapter 9 — Managing the Attention Budget
Ninth post of the LLM Primer IV walkthrough. Context rot, the lost-in-the-middle cliff, tool-loadout rot, and the three architectural answers — MCP, RAG, fine-tuning — to the question of where a model's missing knowledge actually belongs.
2026-04-07Chapter 8 — Architectural Deployment Layouts
Eighth post of the LLM Primer IV walkthrough. The three deployment layouts that have emerged in the MCP ecosystem — reusable agent, strict purity, hybrid — and the four binding constraints that determine which one fits which project.
2026-04-06Chapter 7 — Advanced Collaborative and Dynamic Patterns
Seventh post of the LLM Primer IV walkthrough. Roundtable consensus, handoff routing, and magentic orchestration — the patterns that emerge when the topology has to be built per request, with the failure modes (non-termination, mis-routing, runaway planning) the simpler patterns avoid.
2026-04-05Chapter 5 — Transport Protocols and Discovery
Fifth post of the LLM Primer IV walkthrough. The three transports MCP supports, the .well-known discovery layer with Server Cards, and the boring operational concerns — CORS, origin validation, caching — that decide whether a server is a cooperative network citizen or a liability.
2026-04-03Chapter 4 — Client Primitives: Agentic Behaviors and Control
Fourth post of the LLM Primer IV walkthrough. Sampling, Roots, and Elicitation are the three small, controlled holes MCP punches through the host-server wall — each a capability granted back, each a risk accepted on the user's behalf.
2026-04-02Chapter 3 — Server Primitives: Exposing Context and Capabilities
Third post of the LLM Primer IV walkthrough. The three nouns an MCP server can offer — Resources (read state), Prompts (reusable scaffolding), Tools (write actions) — their schemas, their lifecycles, their error models, and the discipline of choosing the right primitive.
2026-04-01Chapter 2 — Unveiling the Model Context Protocol (MCP)
Second post of the LLM Primer IV walkthrough. What MCP actually standardizes, the three-role split of Host, Client, and Server, why dynamic discovery and bidirectional messaging differ from REST in the cases that matter, and the session lifecycle that opens with capability negotiation.
2026-03-31Chapter 1 — The AI Integration Crisis and the Rise of Agentic Architecture
First post of the LLM Primer IV walkthrough. Why monolithic agents fray as system prompts grow, the N times M integration problem hiding underneath, and the move from prompt engineering to context engineering that MCP was built to enable.
2026-03-30LLM Primer IV — Series Introduction & Index
Kicking off the chapter-by-chapter walkthrough of Book IV in the LLM Primer series — Designing AI Cognition with MCP. Why agents need a protocol layer to scale past demoware, who this book is for, and the schedule for the fourteen posts that follow, March 30 through April 12.
2026-03-29Chapter 6 — RAG Threat Models and Vulnerabilities
Sixth post of the LLM Primer III walkthrough. The expanded attack surface of retrieval — corpus poisoning, adversarial chunks, indirect prompt injection, embedding inversion, and the confused-deputy problem in agentic RAG. Concrete attacks, each demonstrated, each reproducible.
2026-03-23Chapter 9 — Performance, Scaling, and Costs: The Real Engineering Trade-offs
Chapter 9 of the LLM Primer I series. The operational realities of running LLMs at scale — model size vs capability, the latency–throughput trade-off, cost economics, quantization, and edge deployment. Why frontier-tier models are often the wrong choice even when you can afford them.
2026-02-265.3 Real-Time Deployment Challenges
A preview from Chapter 5.3: Explore latency, scalability, and optimization techniques for deploying large language models in real-time applications.
2024-10-01