Skip to content
Eldan.ai

Engineering

Hands-on AI engineering: agents, evals, retrieval, and code you can run.

Caching LLM calls without fooling yourself

Two different mechanisms share the name. One saves money without changing answers. The other replays old answers and can quietly make your evals measure nothing.

7 min

Write the eval before the prompt

Most teams tune prompts by feel and learn about regressions from users. Reverse the order: define what right means, collect twenty real inputs, get a baseline, then write the prompt.

5 min

Most RAG bugs are search bugs

When a retrieval-augmented answer is wrong, the model is usually the last suspect. Measure what reached the prompt before you touch the prompt.

5 min

Tool output is untrusted input

An agent that reads text written by strangers can be talked into things. You cannot filter your way out of it, so design so that a persuaded model can do little harm.

5 min

Tokens are a budget

Every model call has a bill and a clock. Treat cost and latency as design constraints, the way you treat memory on a phone, and write the budget down before you write the feature.

5 min

Read the trace before you touch the prompt

When an agent goes wrong, the prompt is rarely the first suspect. The trace already shows which tool ran, with what, what came back and where the time went.

6 min

Structured output is a contract, not a prompt

A JSON schema is the interface between a model and your code. Treat it like one: write it first, check every response, and give it a version.

7 min

Get new writing by email

New pieces go out in the newsletter, with a note on why each one is worth your time. Unsubscribe in one click.

Issues in