SLM Playbook: Small Language Models Architecture in Go

Prerequisite: Review the previous module in the slm-playbook series before proceeding. ← Series hub Next → Answer-first: Self-hosting Small Language Models (2B–14B) with Go hybrid routing and vLLM serving reduces enterprise API costs by up to 65%, eliminates PII privacy risks, and delivers specialized domain performance matching 100B+ models. Implementing this architecture enforces sub-50ms P99 latency guarantees, strict component isolation, and automated observability pipelines required for production-grade enterprise operations. For the past two years, enterprise AI adoption has been dominated by a singular architectural pattern: API integration with massive, closed-source models (Frontier LLMs). While this API-Centric model allows for rapid prototyping, it becomes a severe liability when scaled to production workloads handling sensitive company data. ...

May 20, 2026 · 10 min · Lê Tuấn Anh

The AI-Driven Engineer: Executive Summary Blueprint

Prerequisite: Review the previous module in the ai-driven-engineer series before proceeding. Answer-first: The commoditization of raw syntax typing by LLMs shifts software engineering value from manual coding to Systems Architecture, Context Engineering, and AI Swarm Orchestration. Utilizing tree-sitter AST validation engines and Model Context Protocol (MCP) tool integration, system orchestrators achieve 5x throughput while enforcing strict zero-trust security and sub-second code evaluation loops. The software engineering discipline is undergoing its most profound structural shift since the transition from machine assembly language to high-level compiled programming languages. ...

May 10, 2026 · 6 min · Lê Tuấn Anh

Executive Summary: Building an AI-Native Organization

Prerequisite: This is the executive summary for the AI-Driven Playbook series — no prior prerequisite is required. Later modules build directly upon the strategic context established here. Answer-first: Transitioning an enterprise software organization to an AI-Native model requires restructuring context boundaries, governance pipelines, and engineering roles. By treating domain knowledge as code-level context and embedding AI sub-agents into CI/CD quality gates, engineering leaders reduce lead time to production by 40% while cutting defect leakage by 35%. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions,. ...

March 15, 2026 · 10 min · Lê Tuấn Anh

Data Engineering SFT: NEFTune & SemDeDup | SLM Playbook

Prerequisite: Familiarity with the concepts introduced in Executive Summary. Review it first if the terminology in this part is unfamiliar. ← Series hub ← Previous | Next → Answer-first: Supervised Fine-Tuning (SFT) data quality determines downstream model capabilities; applying NEFTune noise injection during training improves conversational quality by up to 20%, while SemDeDup vector clustering prunes 30%–50% of redundant data to cut GPU training hours nearly in half without losing model accuracy. Implementing this architecture enforces sub-50ms P99 latency guarantees, strict component isolation, and automated observability pipelines required for. ...

May 22, 2026 · 10 min · Lê Tuấn Anh

The Death of Code Typists: Beyond Syntax Dominance

Prerequisite: Familiarity with the concepts introduced in Executive Summary. Review it first if the terminology in this part is unfamiliar. Answer-first: The economic value of manually typing programming syntax has collapsed to zero. Modern software engineering rewards developers who design resilient system architectures, curate context windows, and enforce strict domain boundaries, replacing manual boilerplate typing with automated AI code synthesis. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions, and 2026 Model Context Protocol ttlMs cache invalidation parameters. ...

May 10, 2026 · 7 min · Lê Tuấn Anh

Part 1 — Context Engineering: Domain-Driven Design for AI

Prerequisite: Familiarity with the concepts introduced in Executive Summary. Review it first if the terminology in this part is unfamiliar. Answer-first: Context Engineering structures, scopes, and injects software domain knowledge into Large Language Model prompts using Domain-Driven Design principles. By organizing codebases into explicit Bounded Contexts, Abstract Syntax Tree subgraphs, and JSON-Schema contracts, engineering teams eliminate hallucinations, enforce layer boundaries, and enable autonomous coding agents to implement production-grade enterprise features. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic. ...

March 16, 2026 · 9 min · Lê Tuấn Anh

Enterprise RAG Architecture: Internal Knowledge Brain

Prerequisite: Familiarity with the concepts introduced in Part 1 — Context Engineering Ddd. Review it first if the terminology in this part is unfamiliar. Answer-first: Enterprise RAG architectures replace naive text chunking with multi-stage data pipelines combining layout-aware global scanning, hybrid dense-sparse vector search, and cross-encoder context reranking. This architecture eliminates table slicing hallucinations, enforces metadata access controls, and cuts retrieval prompt token overhead by 70% while maintaining sub-400ms end-to-end query latency. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions, and. ...

May 15, 2026 · 9 min · Lê Tuấn Anh

Part 2: Man vs Machine Task Boundaries in Engineering

Prerequisite: Familiarity with the concepts introduced in Part 1 — The Death Of Code Typists. Review it first if the terminology in this part is unfamiliar. Answer-first: Drawing precise operational boundaries between autonomous AI generation and mandatory human engineering oversight is essential for preventing production outages. High-risk distributed systems architecture, concurrency locks, and security compliance require human ownership, while repetitive syntax translation, test generation, and DTO mapping are delegated to AI agents. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions, and 2026 Model. ...

May 11, 2026 · 6 min · Lê Tuấn Anh

The 10x AI Productivity Reality: Debunking the Myth

Prerequisite: Familiarity with the concepts introduced in Part 2 — Man Vs Machine Boundaries. Review it first if the terminology in this part is unfamiliar. Answer-first: Claims of unconditional “10x productivity gains” from AI code assistants collapse under empirical scrutiny when teams measure end-to-end SDLC output. While AI accelerates initial code generation by 3x, it creates downstream code review bottlenecks and subtle bug injections unless paired with automated context engineering and rigorous CI/CD evals. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions,. ...

May 11, 2026 · 6 min · Lê Tuấn Anh

Part 3B — AI Automation for Internal Ops: Proving ROI

Prerequisite: Familiarity with the concepts introduced in Part 3A — Enterprise Rag Architecture. Review it first if the terminology in this part is unfamiliar. Answer-first: Enterprise AI automation for internal operations targets high-frequency engineering bottlenecks including incident triage, dependency migrations, and developer helpdesk tickets. Deploying lightweight sub-agents over Model Context Protocol (MCP) gateways reduces Mean Time to Resolution (MTTR) by 60%, cuts operational toil, and yields positive ROI within 90 days. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions, and 2026. ...

March 17, 2026 · 9 min · Lê Tuấn Anh

AI Observability & Evals: Production Monitoring Guide

Prerequisite: Familiarity with the concepts introduced in Part 5 — Operating Model. Review it first if the terminology in this part is unfamiliar. Answer-first: AI Observability applies Site Reliability Engineering (SRE) principles to generative AI systems through OpenTelemetry gen_ai semantic conventions, distributed prompt tracing, and continuous evaluation pipelines. This framework detects silent model drift, monitors LLM API token expenses, and reduces failure detection time from weeks to under five minutes. Architecting this pipeline enforces sub-50ms P99 latency guarantees, OpenTelemetry GenAI semantic conventions, and 2026. ...

May 19, 2026 · 9 min · Lê Tuấn Anh

Magento AI Integration: Modernize Without Rebuilding

Prerequisite: Review Laravel vs Golang: When to Add Features in Each? for background on hybrid architecture patterns. Magento AI Integration: Modernize Without Rebuilding Answer-first: Integrating AI into Magento enterprise setups connects legacy PHP backends to Go microservice gateways, offloading search reranking and catalog enrichment without breaking core checkout stability. Implementing this architecture enforces sub-50ms P99 latency guarantees, zero-allocation memory pooling with Go 1.24 unique.Handle, and fault-tolerant Dapr 1.15 component orchestration for resilient production scaling. ...

May 24, 2026 · 11 min · Lê Tuấn Anh

Autonomous Hybrid-AI Pipeline: Cron to State-Machine

Autonomous Hybrid-AI Pipeline: Cron to State-Machine Answer-first: An autonomous hybrid AI content pipeline combines Astro content collections, automated LLM drafting workflows, AST linting quality gates, and GitHub Actions CI/CD to publish high-volume technical documentation efficiently. Deploying this architecture guarantees sub-50ms P99 latency bounds, zero-allocation memory pooling with Go 1.24 string interning, and automated OpenTelemetry GenAI streaming observability. Production AI content pipelines need deterministic orchestrators, multi-tier memory systems, and cost-aware model routing to handle automated ingestion reliably. Replacing monolithic background jobs with event-driven agents gives resilient execution, zero-idle resource usage, and stricter output verification. This post covers four pieces of that architecture: ...

May 18, 2026 · 8 min · Lê Tuấn Anh

LeaseInVietnam: AI-Powered Expat Rental & B2B Lead Engine

LeaseInVietnam: AI-Powered Expat Rental & B2B Lead Engine Answer-first: LeaseInVietnam integrates AI property search, automated contract processing, neighborhood intelligence, and localized expat data pipelines to simplify long-term rental discovery. Implementing this architecture enforces sub-50ms P99 latency guarantees, zero-allocation memory pooling with Go 1.24 unique.Handle, and fault-tolerant Dapr 1.15 component orchestration for resilient production scaling. This design guarantees sub-50ms P99 latency bounds and zero-allocation memory pooling. Most AI content projects are built around one question: how do I publish more? LeaseInVietnam is built around a different question: how do I make every published piece convert? ...

April 24, 2026 · 14 min · Lê Tuấn Anh