Delve · Public field guides
AI Engineering
Building, evaluating, and operating software with AI models.
Guides in this cluster
- Why AI code sounds certain and still breaks — Plausibility and correctness are different targets, and the model that writes the code also writes the reassurance.
- How RAG actually works in a customer support bot — Retrieval finds the passage, the model writes the answer, and the hard part is everything between the two.
- Why AI Struggles With Basic Math: Tokens, Not Stupidity — AI's math failures come from tokenized numbers and a prediction objective meeting a task that demands exact procedure.
- Why AI gives different answers to the same question — Randomness is the first layer. Context drift and a serving stack that never repeats itself exactly are the other two.
- MCP 和 function calling:一层是协议,一层是模型能力 — 把两者当成竞品是最常见的误解。它们串在同一条调用链上,各自解决完全不同的问题。
- The Real Unit Economics of an AI Agent — Token price is a supplier metric. What decides whether an agent works is cost per successful outcome, after retries and human rescue.
- When to route between small and large models — Route per query, not per product: the arithmetic, the router designs, and the failure modes that make a single model the safer choice.
- Reliable JSON from LLMs: constrain the decoder, verify the values — Grammar-level enforcement kills malformed JSON; schema design and semantic checks are what stop wrong-but-well-shaped data.
- What Vector Databases Actually Do — They are approximate similarity indexes wrapped in ordinary database machinery — and the approximation is where every real decision lives.
- RAG 与微调:别选边站,按三条轴分工 — RAG 把会变的事实放进上下文,微调把稳定的行为写进权重;选错的代价,通常埋在评测集和运维里。
- 上下文工程:把上下文窗口当成稀缺预算来分配 — 它管理对象是进入模型的全部 token,而不只是提示词怎么写;核心工作是选择、压缩、写入与隔离。
- Context Engineering: Deciding What the Model Sees — Prompt engineering tunes the sentence. Context engineering budgets the window — what enters, in what form, in what order, and what gets evicted.
- Why RAG still hallucinates: evidence is not a verifier — Retrieval changes what the model reads, not whether it verifies; failures live in retrieval recall, context handling, and the decoder.
- RAG vs fine-tuning: pick the lever that matches your failure — Retrieval edits what the model reads; tuning edits what the model is. A decision procedure for builders, with the evidence and its limits.
- How to evaluate an AI agent: grade the trace, not the answer — Evaluation is instrument design: pick the grading surface, harvest real failure modes, then choose reliability metrics that survive production.
- MCP vs function calling: two contracts, not rivals — Function calling is how a model emits a structured request; MCP is how an application publishes tools and context to any AI client.