SLM Playbook: Small Language Models Architecture in Go

← 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. 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

Executive Summary: Building an AI-Native Organization

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%. 1. The Architectural Shift: From AI-Assisted to AI-Native Engineering The software engineering domain has passed the threshold of simple code autocomplete. While first-generation tools provided localized inline suggestions, enterprise engineering organizations in 2026 operate on AI-Native Software Development Lifecycle (SDLC) architectures. In an AI-Native organization, non-deterministic language model agents actively participate as first-class collaborators alongside human architects and SDETs. ...

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. ...

May 22, 2026 · 10 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. ...

March 16, 2026 · 9 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. ...

March 17, 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. ...

May 15, 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. ...

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

Magento AI Integration: Modernize Without Rebuilding

Magento AI Integration: Modernize Without Rebuilding Queue-based worker systems that isolate Magento from LLM latency. Writing robust fallback routes when third-party AI translation services go offline. The hype surrounding artificial intelligence in e-commerce is deafening. Every SaaS platform promises “one-click AI personalization,” leaving legacy Magento (Adobe Commerce) merchants feeling trapped. Facing the choice of a multi-million dollar replatforming project or falling behind the AI curve, many e-commerce leaders make a critical mistake: they attempt to force AI workloads directly into Magento’s monolithic core. ...

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 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: Topology & Orchestration: Master-worker agent swarms managed by explicit state machines. Memory System Architecture: Working memory (context window), short-term memory (Redis session), and long-term memory (Vector/Graph RAG). Tool Calling & MCP: Protocol-driven tool execution via Model Context Protocol. AgentOps & Governance: Tracing, fallback cascades, evaluation gates, and hardware Wake-on-LAN power optimization. 1. Agent System Topology & State Machine A resilient pipeline replaces stateless cron scripts with an explicit Finite State Machine (FSM). By encapsulating pipeline operations within state transitions, every step—from hardware boot to scraping, filtering, and drafting—is recorded with atomic rollback safety. ...

May 18, 2026 · 8 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. ...

May 11, 2026 · 6 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. ...

May 11, 2026 · 6 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. For decades, software development bootcamps and university CS programs trained engineers to memorize language syntax, master IDE keyboard shortcuts, and type out repetitive boilerplate code line by line. ...

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

The AI-Driven Engineer: Executive Summary Blueprint

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

LeaseInVietnam: AI-Powered Expat Rental & B2B Lead Engine

LeaseInVietnam: AI-Powered Expat Rental & B2B Lead Engine 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? The system is an autonomous relocation hub targeting expats and digital nomads renting in Southern Vietnam — Ho Chi Minh City, Nha Trang, Phú Quốc. It produces content in American English, publishes daily via GitOps, and routes every reader interaction toward a B2B lead funnel that pays commission on moving services, cleaning bookings, furniture rentals, and legal consultations. ...

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