Fan’s Blog
  • System Design
  • AIML Wizard
  • Algorithm
  • Coding
  • Index
System Design
AIML Wizard
Algorithm
Coding
Index

Category

System Design

  • Jan 16, 2026

    Building a Simple Invoice-processing Agent

    This post walks through the implementation of a minimal invoice-processing agent. The agent parses an invoice, verifies it against a ledger, requests approval when needed, and writes the final entry only after validation. The core pattern is simple: state constrains actions, the planner proposes one, validation gates it, tools return observations, the reducer updates state, and the runtime decides whether to stop. Before adopting complex orchestration frameworks, build this loop first.

    #AI Agent#Applied AI#System Design#ML coding
  • Dec 16, 2025

    Search Is Becoming Agent Infrastructure

    Search is no longer just a user-facing answer interface. In production agent systems, it is becoming the context acquisition layer of the agent runtime. Traditional search returned ranked documents and left the user to interpret results. Early RAG systems followed a similar pattern: retrieve evidence, inject it into the prompt, and generate a response. But agents use search differently. They invoke search as an internal workflow step to clarify intent, retrieve evidence, choose tools, verify state, inspect logs, and recover from failures.

    #AI Agent#AI Infra#Search#Production AI
←PrevNext→
Fan Luo

Fan’s Blog

Fan Luo
Info
About
Contact
Links
GitHub
LinkedIn
© 2026 Fan Luo. All rights reserved.