Practice
1. For an entity extraction system, which metric is most appropriate to evaluate the system's performance?
easy
Solution
Step 1: Understand the importance of balancing precision and recall.
Entity extraction requires a balance between precision and recall to ensure both correctness and completeness.Step 2: Evaluate each metric.
Accuracy: Accuracy can be misleading in imbalanced datasets. Precision: Precision alone ignores recall. Mean Squared Error: Mean Squared Error is irrelevant for classification tasks. F1 Score: F1 Score balances precision and recall, making it suitable for entity extraction.Final Answer:
Option D -> Option DQuick Check:
F1 Score balances precision and recall. [OK]
Hint: F1 Score balances precision and recall. [OK]
Common Mistakes:
2. In a Retrieval-Augmented Generation (RAG) system, which component is responsible for fetching relevant documents from a large corpus?
easy
Solution
Step 1: Identify the role of each component.
The retriever model is designed to fetch relevant documents from a large corpus based on a query.Step 2: Eliminate wrong options.
The generator model creates text based on retrieved documents, the encoder processes input data, and the decoder generates output from encoded data.Final Answer:
Option A -> Option AQuick Check:
Retriever fetches, generator creates. [OK]
Hint: Retriever fetches, generator creates. [OK]
Common Mistakes:
3. For a recommendation system using collaborative filtering, which metric is most appropriate to evaluate the model's performance?
easy
Solution
Step 1: Identify the goal of recommendation systems.
Recommendation systems aim to suggest relevant items, making precision a key metric.Step 2: Eliminate wrong options.
Accuracy is too generic, MSE is for regression, and recall focuses on finding all relevant items, not precision.Final Answer:
Option D -> Option DQuick Check:
Precision = relevant recommendations [OK]
Hint: Precision = relevant recommendations [OK]
Common Mistakes:
4. In a two-stage retrieval system, what is the primary role of the candidate generation stage?
easy
Solution
Step 1: Understand the candidate generation role
The candidate generation stage is responsible for quickly filtering out irrelevant items to reduce the dataset size for the ranking stage.Step 2: Eliminate wrong options
To rank the candidates based on relevance scores. is incorrect because ranking is done in the second stage. To apply complex models for precise ranking. is incorrect because complex models are typically used in the ranking stage. To ensure all items are considered for ranking. is incorrect because not all items are considered for ranking, only the filtered candidates.Final Answer:
Option A -> Option AQuick Check:
Candidate generation filters, not ranks. [OK]
Hint: Candidate generation filters, not ranks. [OK]
Common Mistakes:
5. As a content-based filtering system scales to 10x more items, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze scaling impact
Scaling to more items increases the demand for computing and updating item embeddings, making it a potential bottleneck.Step 2: Eliminate wrong options
A: User profile storage scales with users, not items. C: Recommendation generation is more affected by user scale. D: Interaction logging is more about user activity than item count.Final Answer:
Option A -> Option AQuick Check:
More items strain embedding computation. [OK]
Hint: More items strain embedding computation. [OK]
Common Mistakes:
