Engineering primitives
Weeks 31–45 in the cookiecutter learner repo (02_engineering_primitives/). Each primitive is a small module plus tests. On this mirror, do the matching problems and treat the table as the contract.
| Folder | Topic |
|---|---|
retrieval |
Cosine similarity, KNN, Top-K, reranking, chunking fusion |
rate_limiting |
Token bucket, sliding window, leaky bucket |
caching |
LRU, TTL, semantic, embedding cache |
chunking |
Token-aware, recursive, sentence-aware |
pii |
PII span merging, regex/NER redaction |
metrics |
Recall@K, MRR, NDCG, ECE, Brier |
batching |
Thread-safe inference batcher |
resilience |
Retry/backoff, circuit breaker |
sketches |
Count-Min, Bloom, HyperLogLog |
routing |
Consistent hashing, load balancing |
ids |
Snowflake IDs, traffic shaping |
See the operating model for evidence rules.
Back to the syllabus.