A similarity metric supports search by comparing a user-query vector with vectors representing searchable items. Production design separates vector generation and index querying because they have different operational constraints. section 15.5.2
Treat the two sides of vector similarity as separate serving paths:
- Update the index in batches, including daily refreshes and on-demand creation or recreation after a core-model update. section 15.5.2
- Query the index in real time, minimizing latency and preparing for uneven traffic and sudden peaks. section 15.5.2
- Reuse one model, converted to ONNX, for batch and real-time inference when simplifying the design is valuable. section 15.5.2
Photo search
A photo-search service refreshes its index daily, supports on-demand reindexing, processes large item volumes, and handles query spikes of roughly 100 requests per second. section 15.5.2









