Practice
1. For evaluating an LLM's ability to generate coherent text, which metric is most appropriate?
easy
Solution
Step 1: Identify metrics for text generation
BLEU score measures text generation quality by comparing n-grams.Step 2: Eliminate wrong options
Accuracy, precision, and recall are more suited for classification tasks, not text coherence.Final Answer:
Option C -> Option CQuick Check:
BLEU for text coherence, not classification. [OK]
Hint: BLEU for text coherence, not classification. [OK]
Common Mistakes:
2. In a feed ranking system, should you prioritize using collaborative filtering or content-based filtering when user data is sparse?
medium
Solution
Step 1: Analyze data sparsity
When user data is sparse, collaborative filtering struggles due to lack of interaction data.Step 2: Eliminate wrong options
Collaborative filtering needs user interactions. Content-based filtering uses item features, making it suitable for sparse data.Final Answer:
Option B -> Option BQuick Check:
Content-based works with sparse data. [OK]
Hint: Content-based works with sparse data. [OK]
Common Mistakes:
3. In a semantic search system using a Bi-Encoder, what is a likely failure mode if the document embeddings are not updated regularly?
medium
Solution
Step 1: Identify the impact of outdated embeddings
Outdated embeddings can lead to decreased retrieval accuracy as they may not reflect current document content.Step 2: Eliminate wrong options
Increased computational cost and latency are not directly related to outdated embeddings, and overfitting is a training issue.Final Answer:
Option C -> Option CQuick Check:
Outdated embeddings = accuracy drop [check]
Hint: Outdated embeddings = accuracy drop [check]
Common Mistakes:
4. As an agent system scales to handle 10x more tasks, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Consider scaling impact
Handling more tasks increases data and state storage requirements.Step 2: Identify potential bottlenecks
Memory Architecture is likely to struggle with increased storage demands, while other components are less directly affected by task volume.Final Answer:
Option A -> Option AQuick Check:
Scaling = Memory bottleneck risk [OK]
Hint: Scaling often stresses memory first. [OK]
Common Mistakes:
5. As the user base of a Guardrails System for LLMs scales 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze component scalability
Content filtering must process each request, becoming a bottleneck as requests increase.Step 2: Eliminate wrong options
Feedback loops and model training are less frequent, and data storage scales more linearly.Final Answer:
Option D -> Option DQuick Check:
Content filtering scales with user requests. [OK]
Hint: Content filtering scales with user requests. [OK]
Common Mistakes:
