LLM Development Cheat Sheet: Key Terms, Settings, Patterns, Formulas and Checklists in One Page

LLM Development 25 min min read Updated: Nov 21, 2026 Beginner
LLM Development Cheat Sheet: Key Terms, Settings, Patterns, Formulas and Checklists in One Page
Beginner Topic 3 of 3

Key Terms

TermMeaning
TokenSmall piece of text the model reads
Context windowToken limit for one request
EmbeddingVector that represents meaning
RAGRetrieve text, then generate a grounded answer
AgentLoop of think, act and observe using tools
LoRATrain small adapters, freeze the base
MCPOpen standard for connecting AI apps to tools and data
HallucinationConfident but unsupported output

Settings

SettingRule of thumb
temperatureLow for facts and code, higher for ideas
top-p / top-kLimit unlikely tokens
max tokensCap reply length and cost
stop sequencesEnd output at a marker

Prompt Checklist

  • Task, context, rules, format, examples
  • Say what to do, not only what to avoid
  • Ask for JSON and validate it
  • Version prompts and keep tests

API Pattern

  • Send messages with history
  • Stream long replies
  • Retry only temporary errors with backoff
  • Set timeouts and limits
  • Keep keys in environment variables

RAG Steps

  1. Ingest and clean
  2. Chunk with overlap and metadata
  3. Embed and store
  4. Retrieve (hybrid, filter, rerank)
  5. Build a grounded prompt with citations
  6. Answer or say I do not know
  7. Evaluate retrieval and answers

Useful Formulas

FormulaUse
tokens ~ characters / 4Rough English token estimate
cost = in x price_in + out x price_outPer request cost
weights GB = params (billions) x bits / 8Weight memory
LoRA params = r x (d + k)Adapter size per matrix
KV cache = 2 x layers x kv_heads x head_dim x tokens x bytesCache memory per sequence
hit@k = questions with right chunk in top k / totalRetrieval quality

Agent and Security Rules

  • Allow list and argument validation
  • Step and cost budgets
  • Human approval for risky actions
  • Treat tool and document text as untrusted
  • Least privilege for keys and tools
  • No secrets in prompts

Launch Checklist

  • Evaluation set passes
  • Injection and leak tests done
  • Budget alerts set
  • Timeouts, retries and fallback tested
  • Logs redacted and owner on call
  • Rollback plan ready

Conclusion

Keep this page open while you build. Everything here is explained in the lessons.

Quick Summary: Terms; settings; patterns; formulas; checklists.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators