Skip to main content
Applied AI & RAG Engineering Engineering Study P0 Medium

LLMs, tokens, embeddings and context windows

Explain embeddings, attention tradeoffs, sampling and context limits.

Official Reference

Model Answer & Explanation

LLMs operate on subword tokens rather than characters or words. Prefill processes the input prompt in parallel (bound by compute and quadratic attention cost), while autoregressive decode generates one token per step (memory-bandwidth bound, aided by KV caching). Embeddings map text to dense vectors for semantic similarity.

Follow-up Interview Question · What is the difference between Time-to-First-Token (TTFT) and inter-token latency?

Module Context & References

Applied AI · 80/20 Core Foundations Core LLM, RAG, tool-calling and evaluation concepts for AI product engineers
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.