107Your prompts are enormous and repetitive. How do you compress context without losing accuracy?▼mediumAnthropicOpenAICursor◆ premiumMost teams reach for a token-dropping compressor and pay an accuracy tax for tokens they could have had for almost nothing. The ranking of levers matters more than any single technique, and the top of the list is not compression at all.Open full answer →
131The prompt itself is your biggest cost line. How do you optimize it without losing quality?▼mediumOpenAIAnthropicDatabricks◆ premiumEvery request pays for the prompt and almost nobody has looked at where the tokens actually go. It is rarely the part you can read: thirty tool schemas and seven stale examples usually outweigh the system prompt, and the output side costs several times more per token.Open full answer →
135When should a request hit a reasoning model, and how do you stop it from overthinking?▼hardOpenAIAnthropicGoogle◆ premiumMost candidates answer 'use the reasoning model for hard problems' and stop. The interviewer wants it framed as an eval and a budget problem: how you prove the extra thinking tokens paid off, and what you do when the model talks itself out of a correct answer.Open full answer →
33How do you optimize a RAG or agent system for cost and latency in production?▼mediumCohereMicrosoftGlean2 replies◆ premiumRAG and agents turn expensive and slow quickly: retrieval plus reranking plus big-model calls, multiplied across agent steps. The signal is naming the dominant cost first, then the levers that genuinely move it. Here is the playbook.Open full answer →
09How do you optimize the cost of large-scale ML training and inference?▼mediumAmazonMicrosoftDatabricks2 repliesunlockedGPU spend is typically the largest line item in an AI org, and this question tests whether you reason in utilization rather than just capacity. The signal is wringing out per-unit cost (utilization, right-sizing, spot, quantization) before scaling out.Open full answer →
12How do prompt caching and semantic caching cut LLM cost and latency, and what are the risks?▼mediumAnthropicOpenAIMicrosoft2 replies○ sign inCaching is one of the biggest LLM cost levers, but 'cache the response' is naive for a non-deterministic system. What counts is telling prompt (prefix) caching apart from semantic caching and knowing when each is safe.Open full answer →
14What is LLM routing (model cascades / semantic routing), and how do you implement it?▼mediumMicrosoftDatabricksCohere1 replies○ sign inRouting each request to the right model is one of the biggest LLM cost/latency levers in production. What counts is matching query difficulty to model capability and knowing when the cascade pattern beats a classifier.Open full answer →
69What actually drives cost and latency when you serve a multimodal model?▼mediumOpenAIAnthropicNVIDIA◆ premiumAn image is not one input, it is a large prompt. Once you internalize that image tokens dominate prefill, the cost levers stop being model choices and start being resolution, tiling, and cache placement.Open full answer →