For a Physical Intelligence embedding-pipeline mock, make every vector traceable to its input and encoder revision. Two vectors of the same length can still belong to different feature spaces after a model release.
What to prepare for Physical Intelligence
Physical Intelligence publishes roles and research material for robotics software and ML. Its SWE bank directly includes an embedding pipeline and a bounded cache. The examples below use a synthetic offline feature store and do not operate any hardware. Physical Intelligence engineering roles Physical Intelligence research context
Determine which examples need embedding again
An example has ID and content revision. The target encoder has a version. The cache stores the content and encoder versions used for each ID. Rebuild a vector when either version differs or the example has not been embedded. Related PracHub question
def stale(examples, cache, encoder):
return [key for key, revision in examples if cache.get(key) != (revision, encoder)]
assert stale([('a', 2), ('b', 1), ('c', 1)], {'a': (1, 'v2'), 'b': (1, 'v2')}, 'v2') == ['a', 'c']
assert stale([('b', 1)], {'b': (1, 'v1')}, 'v2') == ['b']
The pass is O(n) over input examples. Persist the embedding version and the normalized-input version together when preprocessing changes. A production queue also needs operation keys and version checks before publishing results, especially if old workers can finish after replacements.
A follow-up to work through
For a follow-up, run an offline similarity query against results encoded using two versions. Reject an incompatible result rather than merging its score into a shared rank. Demonstrate which vectors were reprocessed and how a stopped job resumes without recomputing completed items.
def publish(current, requested, result):
return result if requested == current else None
assert publish((2, 'm2'), (1, 'm2'), [1, 0]) is None
assert publish((2, 'm2'), (2, 'm2'), [1, 0]) == [1, 0]
What to bring to a mock interview
Rehearse a demo consisting of a minimum runnable input, an output manifest and an explanation of what fails when the encoder version changes. Be specific about which parts you measured.