Practice
1. In a production-scale image embedding pipeline, should you use a pre-trained model or train a model from scratch, given limited computational resources?
medium
Solution
Step 1: Consider resource constraints.
Pre-trained models are efficient and require less computational power.Step 2: Eliminate wrong options.
Training from scratch is resource-intensive, and pre-trained models are not only for scarce data.Final Answer:
Option A -> Option AQuick Check:
Pre-trained saves resources. [OK]
Hint: Pre-trained saves resources. [OK]
Common Mistakes:
2. In an ML monitoring platform, when should you prioritize retraining the model over just alerting the team?
medium
Solution
Step 1: Identify scenarios for retraining
Retraining is crucial when there's a significant drift in input data, indicating the model may no longer be valid.Step 2: Eliminate wrong options
Minor accuracy drops or consistent incorrect predictions may not require retraining. False positives in alerts suggest tuning the alert system, not retraining.Final Answer:
Option A -> Option AQuick Check:
Significant drift = Retrain [OK]
Hint: Significant drift = Retrain [OK]
Common Mistakes:
3. A RAG system is generating irrelevant responses. What is the most likely failure mode?
medium
Solution
Step 1: Identify the source of irrelevance.
If the retriever fetches irrelevant documents, the generator will produce irrelevant responses.Step 2: Eliminate wrong options.
Fetching too few documents or overfitting would affect response quality, not relevance.Final Answer:
Option A -> Option AQuick Check:
Irrelevant input = irrelevant output. [OK]
Hint: Irrelevant input = irrelevant output. [OK]
Common Mistakes:
4. In a two-stage retrieval system, what is a likely failure mode if the candidate generation stage has a low recall?
medium
Solution
Step 1: Understand the impact of low recall
Low recall in candidate generation means not enough relevant items are passed to the ranking stage.Step 2: Eliminate wrong options
The ranking stage will have too many candidates to process. is incorrect because low recall means fewer candidates, not more. The system will return irrelevant results to the user. is incorrect because irrelevant results are more about precision issues. The system will have high computational costs in the ranking stage. is incorrect because low recall reduces computational costs, not increases them.Final Answer:
Option C -> Option CQuick Check:
Low recall means not enough relevant items. [OK]
Hint: Low recall means not enough relevant items. [OK]
Common Mistakes:
5. As the number of LLMs evaluated increases tenfold, which component of the evaluation system is most likely to fail first?
hard
Solution
Step 1: Analyze scalability of components
Human evaluators are a bottleneck as scaling requires more human resources.Step 2: Eliminate wrong options
Data storage and processing power can be scaled with infrastructure, and task diversity is not a direct scalability issue.Final Answer:
Option A -> Option AQuick Check:
Human evaluators are the bottleneck in scaling. [OK]
Hint: Human evaluators are the bottleneck in scaling. [OK]
Common Mistakes:
