Practice
1. In the context of a Guardrails System for LLMs, which component is primarily responsible for detecting inappropriate content in user-generated text?
easy
Solution
Step 1: Identify the role of each component
The content filtering module is designed to detect and filter inappropriate content.Step 2: Eliminate wrong options
Data augmentation is for enhancing training data, model training is for learning patterns, and user feedback loop is for improving system iteratively.Final Answer:
Option B -> Option BQuick Check:
Content filtering detects inappropriate content. [OK]
Hint: Content filtering detects inappropriate content. [OK]
Common Mistakes:
2. For a vector search system using HNSW, which metric should be optimized to ensure fast retrieval times?
easy
Solution
Step 1: Understand the goal of fast retrieval.
Latency measures the time taken for retrieval, crucial for speed.Step 2: Eliminate wrong options.
Precision, recall, and F1 score relate to accuracy, not speed.Final Answer:
Option B -> Option BQuick Check:
Optimize latency for fast retrieval. [OK]
Hint: Optimize latency for fast retrieval. [OK]
Common Mistakes:
3. In a pairwise learning to rank system, what is a common failure mode if the model is not performing well?
medium
Solution
Step 1: Identify the failure mode specific to pairwise ranking.
Pairwise models can fail if they don't capture the relative order of item pairs.Step 2: Eliminate wrong options.
Overfitting and inappropriate loss functions are generic issues, and pairwise doesn't consider the entire list, making C incorrect.Final Answer:
Option B -> Option BQuick Check:
Pairwise = focus on item pairs [OK]
Hint: Pairwise = focus on item pairs [OK]
Common Mistakes:
4. When transitioning from traditional collaborative filtering to neural collaborative filtering, which trade-off is most significant?
medium
Solution
Step 1: Understand neural collaborative filtering.
Neural CF models are more flexible but require more data to train effectively.Step 2: Eliminate wrong options.
Options A and D are incorrect as neural models are less interpretable and more complex. Increased computational cost vs. improved scalability is incorrect as neural models are computationally expensive and not necessarily more scalable.Final Answer:
Option B -> Option BQuick Check:
Neural CF = more data, more flexibility [OK]
Hint: Neural CF = more data, more flexibility [OK]
Common Mistakes:
5. As a news feed system scales to 10x more users, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze scaling challenges
The Recommendation Engine processes user data to generate personalized feeds, which becomes computationally intensive as user numbers grow.Step 2: Consider other components
B: Content Delivery Network scales well with caching. C: User Interface is less affected by user count. D: Data Storage can be expanded more easily than processing power.Final Answer:
Option B -> Option BQuick Check:
Recommendation Engine struggles first with user scale. [OK]
Hint: Recommendation Engine struggles first with user scale. [OK]
Common Mistakes:
