Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Cheat sheet · Specialise

AI engineering cheat sheet (TypeScript)

Opens with credits

A quick-revision companion to the AI engineering roadmap in its TypeScript edition: how LLMs work, prompting, RAG, evals, tool calling, MCP, agents and production, with snippets using the official SDKs and Zod. Skim a chapter before a project or a technical conversation.

Curated by Tauseef Fayyaz9 chapters70 concepts185 glossary terms

Chapters

9 chapters · 70 concepts

  1. 1How LLMs work: tokens and contextWhat a model does when it answers: text becomes tokens, the model predicts one token at a time inside a fixed context window, and every token costs money and time.9 concepts
  2. 2Prompting and model APIsCalling a model well: the request shape, system prompts, clear instructions and examples, streaming, handling failures and treating prompts as code.9 concepts
  3. RAG: embeddings, chunking and retrievalGiving a model your own knowledge: embed and chunk documents, retrieve the best passages with vector and keyword search, then answer only from them with citations.11 conceptsOpens with credits
  4. Evals: measure before you add moreHow you know a change helped: read real outputs, build a small labelled test set, check with code first, use a judge model only once it agrees with you, and run it all in CI.8 conceptsOpens with credits
  5. Tool calling and structured outputLetting a model act and return data your code can trust: tool definitions, the tool calling loop, schemas, validation and errors the model can recover from.7 conceptsOpens with credits
  6. MCP: Model Context ProtocolThe open standard for plugging tools and data into AI applications: who talks to whom, what a server exposes, how it connects and how to build one.5 conceptsOpens with credits
  7. Agents and durable executionWhen to let the model drive, and how to keep it safe and affordable: the agent loop, context engineering, hard limits, checkpoints, human approval and multiple agents.7 conceptsOpens with credits
  8. Running AI systems in productionWhat it takes to run an LLM feature for real users: tracing, guardrails and injection defence, caching, routing and fallbacks, latency and cost budgets, and when to fine-tune or self-host.10 conceptsOpens with credits
  9. Put it together: ship a production GenAI appHow the parts of a real GenAI app fit together, where each lives in the repo, and what must be true before launch. The GenAI app architecture cheat sheet goes deeper.4 conceptsOpens with credits
  10. 10Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.185 terms

About this sheet

Build products on LLMs and generative AI.

Picked from the other libraries by shared topics.

Work with me

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