Cheat sheet · Specialise
AI evals cheat sheet
Opens with creditsA quick-revision book on measuring LLM features instead of guessing: what an eval is, how to build a golden dataset, which metric fits which task, how to trust an LLM judge, how to score RAG answers and agent runs, how to run evals offline, online and in CI, where humans fit, and a starter plan you can follow this week.
Chapters
10 chapters · 67 concepts
1What evals areThe parts every eval has, and why judging changes by feel stops working after the first week.5 concepts
- 1EvalA repeatable test of an AI feature: a fixed set of inputs, a way to grade each output, and a score you can compare between versions.
- 2Dataset, task, grader, scoreThe dataset holds cases; the task is your app or prompt producing an output; the grader decides pass, fail or a score; the score is aggregated across cases.
- 3Evals vs unit testsUnit tests expect one exact result.
- 4Public benchmarks vs your evalsBenchmarks score models on shared tasks; your evals score your feature on your users' tasks.
- 5Eval-driven developmentWrite a handful of cases before changing the prompt, run them, make the change, run them again.
5 in this chapterOpen this chapter2Golden datasetsWhere good cases come from, what each case needs and how to keep the set honest as it grows.8 concepts
- 1Golden datasetA versioned collection of inputs with the expected answer, or the rules a good answer must follow, chosen to represent real use.
- 2Where cases come fromReal traces and support tickets first, then bug reports, known hard cases, and cases written by domain experts.
- 3Case formatAn id, the input, the expected output or rubric, optional context (expected sources, allowed tools) and tags for the case type.
- 4CoverageCommon cases, each failure type you have seen, edge cases (empty, very long, other languages), out-of-scope requests and adversarial ones.
- 5Should-refuse casesInputs where the right behaviour is to say "I do not know", decline or ask a clarifying question.
- 6Synthetic casesCases generated by a model, for example questions written from your documents, then reviewed by a person.
- 7Keeping eval cases out of promptsEval cases must not appear as few-shot examples, in fine-tuning data or pasted into the system prompt.
- 8Versioning the setKeep the dataset in Git or a dataset tool with versions, and record which version every run used.
8 in this chapterOpen this chapter- Metrics by task typePick the cheapest metric that captures what "correct" means for the task. Code checks first, judges only where needed.7 conceptsOpens with credits
- LLM-as-judgeUsing a model to grade outputs: how to set it up, the biases it brings and how to check it before trusting it.9 conceptsOpens with credits
- RAG metricsScore retrieval and generation separately, so you know which half to fix.7 conceptsOpens with credits
- Agent and tool-use metricsAgents need scores for the end state, the path and the consistency across runs.6 conceptsOpens with credits
- Offline, online and in CIWhen each kind of eval runs, what it catches and how to keep it affordable.8 conceptsOpens with credits
- Human reviewPeople define what good means. Evals scale that judgement; they do not replace it.5 conceptsOpens with credits
- ToolsPopular open source and hosted options, as of October 2026. Learn the method first; any of these can run it.7 conceptsOpens with credits
- A starter eval planA first week for an app with no evals yet. Small, real and running in CI by Friday.5 conceptsOpens with credits
- 11Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.73 terms
About this sheet
Evals for LLM apps and agents: golden datasets, metrics, LLM-as-judge and its biases, RAG and agent metrics, offline and online evals, CI, human review, tools.
Related on Sefism
Picked from the other libraries by shared topics.
Roadmaps
See allBest practices
See all- Best Practices for Building LLM AppsHow to build LLM apps and agents that hold up in production: prompts, evals, prompt injection, tool permissions, cost, logging and privacy.
- Best Practices for AI Coding AssistantsHow to get reliable code from AI coding assistants and agents: instruction files, task prompts, verification, review, security, dependencies and session hygiene.
- Prompt Engineering Best PracticesHow to write prompts that work the same way on the hundredth input as on the first: clear instructions, structure, examples, reasoning, output control and testing.
Checklists
See all- LLM Evaluation ChecklistAn LLM evaluation checklist: success criteria, eval datasets, code and model graders, judge calibration, agent evals, safety tests and production monitoring, with how to verify each check.
- RAG Production ChecklistA RAG production checklist: chunking, embeddings, hybrid search, reranking, per-user permissions, citations, evals, re-indexing and cost, with how to verify each check.
- AI Feature Launch ChecklistAn AI feature launch checklist: use case fit, evals, UX for errors, disclosure, human override, abuse filters, rate limits, cost caps, prompt privacy, monitoring and rollback.
Project structures
See all- Python AI agent with LangGraph project structureFor Python developers moving from "call a model in a loop" to an agent that can pause, resume and be debugged. It starts from the official LangGraph template (langgraph.json, a src/agent package, unit and integration tests) and grows into a customer support agent with typed state, one file per node and tool, human approval before refunds, evals that score whole trajectories, tracing, auth and a deployable server image.
- GenAI RAG app (FastAPI) project structureFor developers turning a "chat with your documents" demo into an app people can rely on. A FastAPI backend where every layer has a home: ingestion workers, retrieval, prompts as versioned files, model clients with fallbacks and cost caps, guards, evals that gate CI, and tracing, so a wrong answer can be traced to the step that caused it.
- AI agent with an MCP server project structureFor developers who want to give AI assistants safe access to their own data or API. A TypeScript MCP server built on the official SDK, organised by feature (tasks, projects) with each feature owning its tools, resources and prompts, served over stdio for local hosts and Streamable HTTP with OAuth for remote ones, plus a small agent and the evals that prove a model can use it.
Career questions
See all- How do I start learning AI agents as a software engineer?Start with one LLM API and plain code: a loop that calls the model, lets it pick a tool, runs the tool and feeds the result back. Build one small agent that does a real task end to end, add evaluation and guardrails, and only then reach for a framework. Agents are software engineering first.
- Should I learn LangGraph, CrewAI or the OpenAI Agents SDK first, or build AI agents without a framework?Build one small agent without a framework first: the tool-calling loop is about fifty lines and every framework wraps it. Then learn one framework deeply, chosen by what your project needs: LangGraph for explicit state and approvals, the OpenAI Agents SDK for quick assistants with handoffs, the Claude Agent SDK for agents that work on files.
- What is MCP, and do I need to learn it?MCP, the Model Context Protocol, is an open standard for connecting AI applications to tools and data. You do not need to study it in depth, but if you build with LLMs, writing one small MCP server takes an afternoon and teaches you how agents really use tools. Learn the concepts; skip the hype.
Cheat sheets
See all- AI agents and MCP cheat sheetTool calling, MCP servers, evals.
- GenAI app architecture cheat sheetHow a production GenAI app fits together: request flow, layers, RAG, agent loop, memory, caching, guards, evals, tracing, folder layout and launch checklist.
- Coding with AI tools cheat sheetClaude Code, Cursor, Copilot, used well.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
- 1:1 Mentorship
- Fresh Graduate Mentorship
- Career Guidance
Brand deals, promos and partnerships: tauseeffayyaz@gmail.com