Skip to content
RED SAG Skills

Medium AI Engineer (LLM & Generative AI) questions

279 questions · 10 points each for a correct first answer.

  1. 1.Choosing a chunking strategymedium
  2. 2.Getting reliable JSON outputmedium
  3. 3.Knowledge that changes every daymedium
  4. 4.Embeddings miss exact product codesmedium
  5. 5.Adding a rerankermedium
  6. 6.Who runs the toolmedium
  7. 7.Making prompt caching workmedium
  8. 8.Pairwise LLM judge biasmedium
  9. 9.Cosine similarity by handmedium
  10. 10.Temperature changes probabilitiesmedium
  11. 11.How many tokens top-p keepsmedium
  12. 12.From logprobs to probabilitymedium
  13. 13.Computing recall at 5medium
  14. 14.Computing MRRmedium
  15. 15.Estimating monthly token costmedium
  16. 16.Savings from a cached prefixmedium
  17. 17.Why add jitter to backoffmedium
  18. 18.Tracing a retry helpermedium
  19. 19.What schema-constrained output guaranteesmedium
  20. 20.Two tool calls in one turnmedium
  21. 21.Counting chunks with overlapmedium
  22. 22.Keeping tenants apart in RAGmedium
  23. 23.Tuning HNSW search breadthmedium
  24. 24.Reciprocal rank fusion scoresmedium
  25. 25.Judge prefers longer answersmedium
  26. 26.Dot product on unit vectorsmedium
  27. 27.Cosine of a scaled vectormedium
  28. 28.Streaming tool-call argumentsmedium
  29. 29.Semantic cache gives wrong answersmedium
  30. 30.Debugging a bad agent answermedium
  31. 31.Which rate limit binds firstmedium
  32. 32.Memory for 4-bit weightsmedium
  33. 33.Running SQL that an LLM wrotemedium
  34. 34.Users start asking new thingsmedium
  35. 35.A gate between chained stepsmedium
  36. 36.Routing support ticketsmedium
  37. 37.Voting with parallel callsmedium
  38. 38.When subtasks are not known aheadmedium
  39. 39.Evaluator and optimizer loopmedium
  40. 40.A tool that returns 60,000 tokensmedium
  41. 41.Writing a helpful tool errormedium
  42. 42.Two tools both called searchmedium
  43. 43.IDs the model keeps getting wrongmedium
  44. 44.API error about a missing tool resultmedium
  45. 45.GST totals from the modelmedium
  46. 46.Meeting time from IST to Dubaimedium
  47. 47.A report that takes 20 minutesmedium
  48. 48.Where API keys should gomedium
  49. 49.Loading files only when neededmedium
  50. 50.What context compaction doesmedium
  51. 51.Old tool results filling contextmedium
  52. 52.Keeping progress across many hoursmedium
  53. 53.Grading an agent fairlymedium
  54. 54.User writes Dubai in Arabicmedium
  55. 55.An MCP server asking for a completionmedium
  56. 56.Server needs a detail from the usermedium
  57. 57.Tools that appear after loginmedium
  58. 58.Plain tools or an MCP servermedium
  59. 59.Handoff or agent as a toolmedium
  60. 60.Subagents doing duplicate workmedium
  61. 61.Two subagents edit one filemedium
  62. 62.Retrieval inside an agent loopmedium
  63. 63.Thinking between tool callsmedium
  64. 64.A clear way to finishmedium
  65. 65.Who retries a flaky APImedium
  66. 66.A payment charged twicemedium
  67. 67.The model calls a missing toolmedium
  68. 68.Prices in the wrong currencymedium
  69. 69.Letting the agent pick output detailmedium
  70. 70.Batch discounts for a chat agentmedium
  71. 71.Four lookups, one at a timemedium
  72. 72.A system prompt full of if-else rulesmedium
  73. 73.Choosing examples for an agentmedium
  74. 74.An optional parameter left outmedium
  75. 75.Three tools for one bookingmedium
  76. 76.Listing 40,000 contactsmedium
  77. 77.A tool with tricky input formatsmedium
  78. 78.Parallel calls that depend on each othermedium
  79. 79.Agent crashes at step 37medium
  80. 80.Previewing a bulk updatemedium
  81. 81.Marking fetched content as datamedium
  82. 82.Limiting where an agent can browsemedium
  83. 83.One user running up the billmedium
  84. 84.The current time in the system promptmedium
  85. 85.What to track for a live agentmedium
  86. 86.Asking the agent to review itselfmedium
  87. 87.An empty list that was really an errormedium
  88. 88.Telling a server which folders to usemedium
  89. 89.Says it will call a tool, but does notmedium
  90. 90.Whose permissions the agent usesmedium
  91. 91.Token counts across two modelsmedium
  92. 92.Why long sums go wrongmedium
  93. 93.What self-attention doesmedium
  94. 94.Doubling the input lengthmedium
  95. 95.What the KV cache storesmedium
  96. 96.How RLHF worksmedium
  97. 97.What makes DPO differentmedium
  98. 98.JSON versus plain text tokensmedium
  99. 99.A larger tokenizer vocabularymedium
  100. 100.Why transformers need positionsmedium
  101. 101.Fine-tuned model lost a skillmedium
  102. 102.Training a small model from a big onemedium
  103. 103.How reasoning models are trainedmedium
  104. 104.The model agrees too easilymedium
  105. 105.Cutoff and release datemedium
  106. 106.System prompt against user requestmedium
  107. 107.An image in the promptmedium
  108. 108.Feedback from AI with principlesmedium
  109. 109.Pushing past the trained lengthmedium
  110. 110.Why a 70B model is slowermedium
  111. 111.The same sentence over and overmedium
  112. 112.Why chat models skip beam searchmedium
  113. 113.How many tokens min-p keepsmedium
  114. 114.Probability after top-k filteringmedium
  115. 115.Banning one word from the outputmedium
  116. 116.Changing temperature and top-p togethermedium
  117. 117.Sampling several answers and votingmedium
  118. 118.Forcing output to fit a grammarmedium
  119. 119.Parsing JSON while streamingmedium
  120. 120.User clicks Stop mid-replymedium
  121. 121.Provider overloaded at peak timemedium
  122. 122.A bulk job hitting rate limitsmedium
  123. 123.Limits that refill over timemedium
  124. 124.Sending unsure labels to a personmedium
  125. 125.The model says it is 95% suremedium
  126. 126.Starting the reply for the modelmedium
  127. 127.Room to read but not to writemedium
  128. 128.Translating a 300-page manualmedium
  129. 129.Total wait across five retriesmedium
  130. 130.An empty reply from a reasoning modelmedium
  131. 131.An API bill with 18% GSTmedium
  132. 132.Overhead before the first tokenmedium
  133. 133.When caching starts to paymedium
  134. 134.A short prompt never cachesmedium
  135. 135.Users in Mumbai, endpoint in the USmedium
  136. 136.Steady high traffic and rate limitsmedium
  137. 137.Which task needs a reasoning modelmedium
  138. 138.Tokens for one imagemedium
  139. 139.How to grade model outputsmedium
  140. 140.Whole manual or retrieved partsmedium
  141. 141.Picking matches from a listmedium
  142. 142.Renting a GPU or paying per tokenmedium
  143. 143.A few replies take a minutemedium
  144. 144.Picking a model on cost and qualitymedium
  145. 145.Latency numbers that look too goodmedium
  146. 146.Summarising a 900-page reportmedium
  147. 147.A batch job due in four hoursmedium
  148. 148.Two calls where one would domedium
  149. 149.Retrieved pages full of menusmedium
  150. 150.Which feature costs the mostmedium
  151. 151.Do cached prompts change the replymedium
  152. 152.Memory for one million float vectorsmedium
  153. 153.Memory after int8 quantisationmedium
  154. 154.Binary quantisation with rescoringmedium
  155. 155.Truncating Matryoshka embeddingsmedium
  156. 156.L2 versus cosine on unit vectorsmedium
  157. 157.Squared distance from a cosine scoremedium
  158. 158.Raising nprobe in an IVF indexmedium
  159. 159.Raising M when building HNSWmedium
  160. 160.Forgetting the query prefixmedium
  161. 161.Short questions against long passagesmedium
  162. 162.Insert fails with a dimension errormedium
  163. 163.How product quantisation saves memorymedium
  164. 164.Fine-tuning embeddings for your domainmedium
  165. 165.Batch size in contrastive trainingmedium
  166. 166.How ColBERT scores documentsmedium
  167. 167.What SPLADE adds to keyword searchmedium
  168. 168.Cost to embed a document corpusmedium
  169. 169.Shards versus replicas in a vector DBmedium
  170. 170.Index slows after many deletesmedium
  171. 171.Picking an embedding modelmedium
  172. 172.What k1 controls in BM25medium
  173. 173.Setting BM25 b to zeromedium
  174. 174.Working out an IDF weightmedium
  175. 175.How HyDE searchesmedium
  176. 176.Splitting a compound questionmedium
  177. 177.Retrieve small, return the parentmedium
  178. 178.Adding document context to each chunkmedium
  179. 179.What maximal marginal relevance doesmedium
  180. 180.Turning words into metadata filtersmedium
  181. 181.Routing questions to different sourcesmedium
  182. 182.Chunking well-structured documentationmedium
  183. 183.Splitting a long tablemedium
  184. 184.Chunking a code repositorymedium
  185. 185.Favouring newer documentsmedium
  186. 186.Reranking time for 100 candidatesmedium
  187. 187.Using an LLM as a rerankermedium
  188. 188.What late chunking doesmedium
  189. 189.Making nightly re-indexing cheapermedium
  190. 190.Queries full of local acronymsmedium
  191. 191.Letting the model search againmedium
  192. 192.What context recall measuresmedium
  193. 193.What context precision rewardsmedium
  194. 194.Eval questions generated from chunksmedium
  195. 195.Judge prefers whichever answer is firstmedium
  196. 196.Can you trust the LLM judge?medium
  197. 197.Offline versus online RAG evaluationmedium
  198. 198.Small change, broken answersmedium
  199. 199.Adding up time to first tokenmedium
  200. 200.Trimming retrieved chunksmedium
  201. 201.Two sources that disagreemedium
  202. 202.Cost of one RAG answermedium
  203. 203.A deletion request for indexed datamedium
  204. 204.Spotting gaps in the knowledge basemedium
  205. 205.The bot says "I don't know" too oftenmedium
  206. 206.Citations users can actually checkmedium
  207. 207.Arabic question, English sourcesmedium
  208. 208.Measuring a support bot in productionmedium
  209. 209.Building an eval set from logsmedium
  210. 210.Parameters in the embedding matrixmedium
  211. 211.Tying input and output embeddingsmedium
  212. 212.Working out the head dimensionmedium
  213. 213.Size of one attention score matrixmedium
  214. 214.Doubling context lengthmedium
  215. 215.Property of sinusoidal positionsmedium
  216. 216.Limit of learned position embeddingsmedium
  217. 217.How ALiBi encodes positionmedium
  218. 218.Where cross-attention gets its inputsmedium
  219. 219.KV cache saving from GQAmedium
  220. 220.Multi-query versus grouped-query attentionmedium
  221. 221.Computing an attention outputmedium
  222. 222.Model paired with the wrong tokenizermedium
  223. 223.Chat model given raw textmedium
  224. 224.Why LLMs stumble on arithmeticmedium
  225. 225.The space before a wordmedium
  226. 226.What ## means in WordPiecemedium
  227. 227.How SentencePiece handles spacesmedium
  228. 228.Choosing a vocabulary sizemedium
  229. 229.Causal mask filled with zerosmedium
  230. 230.Padding side for batched generationmedium
  231. 231.Monthly input-token bill in rupeesmedium
  232. 232.Parameters in one transformer blockmedium
  233. 233.Why the FFN hidden size is 11,008medium
  234. 234.RMSNorm instead of LayerNormmedium
  235. 235.Pre-norm versus post-norm blocksmedium
  236. 236.Turning a loss into perplexitymedium
  237. 237.Loss of an untrained modelmedium
  238. 238.Compute-optimal training tokensmedium
  239. 239.Estimating training FLOPsmedium
  240. 240.Memory for full fine-tuning with Adammedium
  241. 241.LoRA parameters for one 4,096 matrixmedium
  242. 242.What QLoRA quantisesmedium
  243. 243.Which tokens get loss in SFTmedium
  244. 244.How DPO differs from PPO-based RLHFmedium
  245. 245.Why RLHF adds a KL penaltymedium
  246. 246.Active parameters in an MoE modelmedium
  247. 247.Why MoE training needs load balancingmedium
  248. 248.What gradient checkpointing tradesmedium
  249. 249.Why training starts with warmupmedium
  250. 250.Packing short examples into one sequencemedium
  251. 251.What tensor parallelism splitsmedium
  252. 252.Counting tokens in the nucleusmedium
  253. 253.Probabilities after top-kmedium
  254. 254.Which tokens min-p keepsmedium
  255. 255.Beam search for open-ended chatmedium
  256. 256.Presence versus frequency penaltymedium
  257. 257.What limits prefill and decode speedmedium
  258. 258.Upper bound on decode speedmedium
  259. 259.What continuous batching improvesmedium
  260. 260.What PagedAttention solvesmedium
  261. 261.Reusing a long shared system promptmedium
  262. 262.Memory for a 70B model at 4-bitmedium
  263. 263.How speculative decoding speeds things upmedium
  264. 264.Guaranteeing valid JSON outputmedium
  265. 265.Banning a token with logit biasmedium
  266. 266.Different answers at temperature 0medium
  267. 267.Sampling several reasoning pathsmedium
  268. 268.Bigger batches on an LLM servermedium
  269. 269.Why step-by-step reasoning helpsmedium
  270. 270.Why 4-bit weights speed up decodingmedium
  271. 271.What the KV cache savesmedium
  272. 272.Patch tokens in a 224 × 224 imagemedium
  273. 273.Doubling image resolutionmedium
  274. 274.How Whisper-style speech models workmedium
  275. 275.Positives and negatives in CLIP trainingmedium
  276. 276.Pooling a decoder model into one vectormedium
  277. 277.Reading predictions from middle layersmedium
  278. 278.One neuron, many unrelated conceptsmedium
  279. 279.What sparse autoencoders findmedium