Vector Search in Production

Lessons from the front-line

London Search & AI User Group · November 2026

Simon Hearne
solutions architect · zilliz

The production lifecycle

01When you needvector searchnames or needs? 02Proof ofconcept designmeasure real use 03Validation& tuningwhat does it cost? 04Going livesurvive the writes 05Keeping itrunningwatch the drift 100%started −10% −45%never leavethe PoC −10% −5% −5% 25%still running Values inferred, not measured. Anchor: Gartner, July 2024, “30% of generative AI projects will be abandoned after proof of concept by end of 2025”.

The checklist I've settled on

Sixteen checks, on any engine:

Measure the right thing

  • Real search logs
  • Relevance + recall
  • Judged coverage
  • Drift monitoring

Tune the features you ship

  • Production filters
  • Partition tax
  • Facet counts
  • Business rules

Know what it costs

  • Resident RAM
  • nDCG per GB
  • 10× sizing
  • Re-embed price

Survive writes

  • Write bursts
  • Update path
  • Model swap
  • Time to searchable

You need vectors when shoppers... Probe


exact match anything else, in rank order, top 5


…describe a need

“nurse accessories for work”

BM25tumblers, stickers, a sign
Vectornurse bags, belts, penlights

…want the product, not its accessories

“chromebooks laptops”

BM25cases and chargers
VectorChromebooks

…use another language

“radios de comunicacion”

BM25a bed lift, a book, radio cables
Vectorwalkie talkies

…but keep BM25 for exact attributes

“cabinet chrome handles”

BM25polished chrome pulls
Vectornickel, gold and black pulls

Neither is perfect in all scenarios...

Tune hybrid on your own searches Probe


exact matches, top 5

“chromebooks laptops”

BM25cases, chargers
VectorChromebooks
Hybrid, 10 deepthe lists alternate
Hybrid, 100 deepagreement wins

Proof of concept design

PoCs should match predict production

  1. When
  2. PoC
  3. Tune
  4. Go live
  5. Run

Measure · 3 checksFeatures · 1 check

Start from who reads the results


humans

A shopper scanning a page

  • Order matters most: the first page sets the bar
  • topK is a page, then deeper pages on demand
  • Merchandising rules shape what they see

LLM / RAG

A model reading everything

  • Every result lands in the context: recall over order
  • Small topK, often after a reranker
  • A wrong result becomes a wrong answer

The test bench B1c

INPUTSMODELSMILVUS 3.0.3 · 4 CPUs · 12 GB raw text, no model 448k productsAmazon US catalogue Qwen3-Embedding-0.6Bproduct text SigLIP ViT-L-16product image text vectors · 1,024 d image vectors · 1,024 d BM25 keyword index 1,000 searchesreal ESCI shoppers same two modelssearch side, raw text for BM25 search: top 10 results SCORED BY nDCG@10 against labelsESCI human labels: ~25% of top 10sClaude Haiku 5.5 the rest, κ 0.41 against humans recall@10against exact searchno labels needed p50 / p99 latencymilliseconds per search

Report relevance and recall B1b

Making HNSW search harder (ef from 10 to 256), on 1,000 judged searches over 448k products:

Even at recall 1.0, you only get what the embedding model ranks highest.

Setup Text vectors. All ten results labelled: ESCI's human labels, gaps filled by Claude Haiku 5.5.

Choose your eval set carefully B1a

100 random sets of 50 judged searches, and which search config wins


searches written for a PoC8 pt swing

Reword the same 50 searches PoC-style ("lazy susan" → "rotating turntable tray…") and text gains 3 points while image loses 5.

50 searches find big gaps. For close calls, use real searches, and lots of them.

Run the PoC on the full catalogue Probe

boombox
Dense vector search, no keywordsQwen3-Embedding-0.6B · HNSW, ef 256 · same on both
label by a humanothers: LLM judge
PoC · 20k Electronics slicenDCG@10 1.000
  1. 01Bumpboxx Bluetooth Boombox Flare6 Carbon Fiber | Retro Boombox with Bluetooth Speaker | Rechargeable Bluetooth SpeakerBumpboxx Bluetooth Boombox Flare6 Carbon Fiber | Retro Boombox with Bluetooth Speaker |…exact
  2. 02RipTunes CD player Boombox- Portable silver Aux-In CD Boombox, AM/FM Radio For Assured AmusementRipTunes CD player Boombox- Portable silver Aux-In CD Boombox, AM/FM Radio For Assured…exact
  3. 03Riptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in, BlackRiptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in…exact
  4. 04Riptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in, PinkRiptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in…exact
  5. 05Wireless Portable Bluetooth Boombox Speaker - 300 Watt Rechargeable Boom Box Speaker Portable Music Barrel Loud Stereo System with AUX Input, MP3/USB Port, Fm Radio, 2.5" Tweeter - Pyle PBMSPRG4Wireless Portable Bluetooth Boombox Speaker - 300 Watt Rechargeable Boom Box Speaker…exact
  6. 06Sony Portable Bluetooth CD Player Boombox Digital Tuner AM/FM Radio Mega Bass Reflex Stereo Sound System with AUX 3.5 to 3.5 Male WireSony Portable Bluetooth CD Player Boombox Digital Tuner AM/FM Radio Mega Bass Reflex…exact
  7. 07Magnavox MD6924-PL Portable Top Loading CD Boombox with AM/FM Stereo Radio in Purple | CD-R/CD-RW Compatible | LED Display | AUX Port Supported | Programmable CD Player |Magnavox MD6924-PL Portable Top Loading CD Boombox with AM/FM Stereo Radio in Purple |…exact
  8. 08Wireless Portable Bluetooth Boombox Speaker - 500W Rechargeable Boom Box Speaker Portable Barrel Loud Stereo System With AUX Input, USB/SD, 1/4" In, Fm Radio, 4" Subwoofer, DJ Lights - Pyle PBMKRG155Wireless Portable Bluetooth Boombox Speaker - 500W Rechargeable Boom Box Speaker…exact
  9. 09Sony Bluetooth NFC CD Player MP3 Boombox Combo Portable MEGA BASS Stereo| for Home Radio Use or at The Beach or Woods | Digital Radio AM/FM Tuner USB Playback Auxiliary Cable Cleaning ClothSony Bluetooth NFC CD Player MP3 Boombox Combo Portable MEGA BASS Stereo| for Home Radio…exact
  10. 10Victrola 1980s Retro Bluetooth Boombox with Cassette Player and AM/FM Radio, Wired and Wireless Streaming, Classic 80s Style with Modern Technology, SilverVictrola 1980s Retro Bluetooth Boombox with Cassette Player and AM/FM Radio, Wired and…exact
Production · 448k productsnDCG@10 0.720
  1. 01Bumpboxx Bluetooth Boombox Flare6 Carbon Fiber | Retro Boombox with Bluetooth Speaker | Rechargeable Bluetooth SpeakerBumpboxx Bluetooth Boombox Flare6 Carbon Fiber | Retro Boombox with Bluetooth Speaker |…exact
  2. 02RipTunes CD player Boombox- Portable silver Aux-In CD Boombox, AM/FM Radio For Assured AmusementRipTunes CD player Boombox- Portable silver Aux-In CD Boombox, AM/FM Radio For Assured…exact
  3. 03Riptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in, BlackRiptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in…exact
  4. 04Riptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in, PinkRiptunes Portable CD Player with AM FM Radio Potable radios Boom Box with Aux Line-in…exact
  5. 05Bible Boomers Volume 1 w/ CDBible Boomers Volume 1 w/ CDirrelevant
  6. 06BOOMWHACKERS Boomwhackers Tubes Treble Extension Set,Set of 7BOOMWHACKERS Boomwhackers Tubes Treble Extension Set,Set of 7irrelevant
  7. 07Kids CD Boombox Portable Audio CD Player, LONPOO FM Stereo Radio CD MP3 Player with AUX-IN丨USB Input丨Headphone Jack, AC丨Battery Powered (White)Kids CD Boombox Portable Audio CD Player, LONPOO FM Stereo Radio CD MP3 Player with…exact
  8. 08Wireless Portable Bluetooth Boombox Speaker - 300 Watt Rechargeable Boom Box Speaker Portable Music Barrel Loud Stereo System with AUX Input, MP3/USB Port, Fm Radio, 2.5" Tweeter - Pyle PBMSPRG4Wireless Portable Bluetooth Boombox Speaker - 300 Watt Rechargeable Boom Box Speaker…exact
  9. 09T.J. Wiseman Remote Controlled Fart Machine No. 2 - Pack of 2T.J. Wiseman Remote Controlled Fart Machine No. 2 - Pack of 2substitute
  10. 10Gejoy 2 Pieces Inflatable Radio Boombox Inflatable Mobile Phone Props for 80s 90s Party DecorationsGejoy 2 Pieces Inflatable Radio Boombox Inflatable Mobile Phone Props for 80s 90s Party…substitute

Slicing misleads both ways: of 63 fully labelled searches, production scored lower on 14 and higher on 40.

Test every index on narrow filters B2

watch dogs 2
CategoryVideo GamesPrice$5–20Rating 4+BrandUbisoft
23 of 447,880
products match
HNSW
10 of 10recall@10 1.0
  1. Watch Dogs xbox one
  2. Watch Dogs - PlayStation 4
  3. Just Dance 2 - Nintendo Wii (Renewed)
  4. Just Dance - Nintendo Wii (Renewed)
  5. Assassin's Creed Rogue Remastered - Playstation 4
  6. Just Dance 3 [Nintendo Wii] (Renewed)
  7. Just Dance Kids (Renewed)
  8. TrackMania Turbo - PlayStation 4
  9. Tom Clancy's The Division 2 PS4
  10. Trials Rising - PlayStation 4 Gold Edition
IVF_RABITQ · nprobe 8
0 of 10recall@10 0.0

Replay your production filters B2

200 searches, each with a filter that matches under 0.1% of 448k products, but at least 10 of them:

Searches returning all 10:

IVF_RABITQ · nprobe 863.5%

IVF_RABITQ · nprobe 6484.5%

HNSW100%

Bucket them by selectivity, score recall against exact filtered search, and count short pages.

Validation & Tuning

What does each point of relevance cost?

  1. When
  2. PoC
  3. Tune
  4. Go live
  5. Run

Cost · 4 checksFeatures · 2 checks

Find the slow stage before you tune

One search, adapted from a customer's trace: 466 ms

SQL filter26 ms
Vector database405 ms
network to model~17 ms
embed the search text~358 ms
network to database~11 ms
Hydrate rows14 ms
Matched chunk21 ms

Setup One request, timings adjusted. The split inside the span is estimated. On our own bench, embedding is 33 of 41 ms.

Over 90% of the "database" span was the embedding service.

Be mindful of merchandisers! B5

xbox one x
CampaignBlack Friday saleOn sale22k products, 6,323 random brandsThe boostsale products: score × weight
No boost
0.64nDCG@10
5.5%slots on sale
  1. 2019 Microsoft Xbox One X Robot White Special Edition 1TB Console (4K Ultra HD Blu-ray) With Wireless Controller And Fallout 76 Game Bundle
  2. Microsoft - Xbox One X 1TB Gears 5 Limited Edition Arctic Blue Console with Xbox One X Vertical Stand, 1 Month Xbox Live Gold and Game Pass - Games Not Included (Renewed)
  3. Microsoft Xbox One X Console w/ Accessories, 1TB HDD - White
  4. Microsoft Xbox One X 1TB Black (Console Only) (Renewed)
  5. Microsoft Xbox One X 1TB Console with Forza Horizon 4 Lego Speed Champions Bundle (1TB) - Xbox One
  6. Microsoft Xbox One X 1TB Console with Wireless Controller: Xbox One X Enhanced, HDR, Native 4K, Ultra HD (Renewed) (2017 Model)
  7. Xbox One X 1TB Limited Edition Console - Project Scorpio Edition [Discontinued]
  8. Microsoft Xbox One X Gold Rush Limited Edition 1TB Console with Wireless Controller - Xbox One X Enhanced, Native 4K Gaming, Ultra HDR
  9. Xbox One X 1TB Console - Tom Clancy's The Division 2 Bundle (Discontinued)
  10. Xbox One X 1TB Console - PLAYERUNKNOWN’S BATTLEGROUNDS Bundle [Digital Code] (Discontinued)
Boost ×1.1
0.61nDCG@10
25%slots on sale
  1. 2019 Microsoft Xbox One X Robot White Special Edition 1TB Console (4K Ultra HD Blu-ray) With Wireless Controller And Fallout 76 Game Bundle
  2. Microsoft - Xbox One X 1TB Gears 5 Limited Edition Arctic Blue Console with Xbox One X Vertical Stand, 1 Month Xbox Live Gold and Game Pass - Games Not Included (Renewed)
  3. Microsoft Xbox One X Console w/ Accessories, 1TB HDD - White
  4. Microsoft Xbox One X 1TB Black (Console Only) (Renewed)
  5. Microsoft Xbox One X 1TB Console with Forza Horizon 4 Lego Speed Champions Bundle (1TB) - Xbox One
  6. Microsoft Xbox One X 1TB Console with Wireless Controller: Xbox One X Enhanced, HDR, Native 4K, Ultra HD (Renewed) (2017 Model)
  7. Xbox One X 1TB Limited Edition Console - Project Scorpio Edition [Discontinued]
  8. MXRC Silicone Rubber Cover Skin Case Anti-Slip Water Transfer Customize Camouflage for Xbox One/S/X Controller x 2 (Cartoon&Beast) + FPS PRO Extra Height Thumb Grips x 8sale
  9. Microsoft Xbox One X Gold Rush Limited Edition 1TB Console with Wireless Controller - Xbox One X Enhanced, Native 4K Gaming, Ultra HDR
  10. Xbox One X 1TB Console - Tom Clancy's The Division 2 Bundle (Discontinued)
Boost ×1.5
0.26nDCG@10
93%slots on sale
  1. MXRC Silicone Rubber Cover Skin Case Anti-Slip Water Transfer Customize Camouflage for Xbox One/S/X Controller x 2 (Cartoon&Beast) + FPS PRO Extra Height Thumb Grips x 8sale
  2. MXRC Silicone Rubber Cover Skin case Anti-Slip Water Transfer Customize Camouflage for Xbox One/S/X Controller x 4(Black & White & red & Blue) + FPS PRO Extra Height Thumb Grips x 8sale
  3. Amazon Basics Xbox One Wired Controller - 9.8 Foot USB Cable, White, Version 2sale
  4. Compatible for Xbox One Controller Quick Charger Charging Cable, Micro USB 2.0 Data Sync Cord Compatible for Xbox One S/X Controller (9.2FT)sale
  5. Amazon Basics Xbox One Controller Thumb Grips And Trigger Extender Precision Pack - Blacksale
  6. Amazon Basics Controller Battery Pack Charger For Xbox One S Console - White (Not compatible with Xbox One S All-Digital Edition Console)sale
  7. Amazon Basics Xbox One Controller Thumb Grips - Pack of 2, Blacksale
  8. Silicon Power 2TB Game Drive External Hard Drive A62, Compatible with PS5 PS4 Xbox One PC and Macsale
  9. Amazon Basics Dual Charging Station for Xbox One, Xbox One Standard, And Xbox One Elite Controllers - Blacksale
  10. BlueFire Professional Stereo Gaming Headset for PS4, Xbox One Headphones with Mic and LED Lights for Playstation 4, Xbox One, PC (Red)sale

nDCG can't price a sale. Show the business the curve and let them pick the weight.

Setup Card numbers are over 1,000 judged searches. Text vectors, HNSW ef 512, 448k products, Milvus boost ranker over 200 results.

Build search facets from the top results B2c

xbox one x
All 447,880
products match
Count every matchignores the search

Category

  • Home and Kitchen56,155
  • Books37,872
  • Clothing, Shoes, Jewelry35,527

Brand

  • LEGO1,300
  • Nike1,098
  • HP820
9.0 msp50
59.2 msp99, 4.4× search alone
Count the top 100a sample, not totals

Category

  • Video Games83
  • Electronics17

Brand

  • Microsoft48
  • Avolusion15
  • YCCSKY3
3.1 msp50
21.5 msp99, 1.6× search alone

Searching: count the top 100, and hide the numbers. Browsing: count exactly, or precompute.

Setup Search plus facets over 1,000 searches, unfiltered to <0.1%, HNSW ef 192. Search alone: p50 3.1 ms, p99 13.5 ms.

Choose on nDCG per GB, not recall B3a


Cost it for production B3b

Setup Estimated resident RAM, 1,024 dims, scaled from 448k, row data counted once. AWS r8g on-demand, London: $6.31 per GiB a month, no headroom.

And the re-embed time

Every model change re-embeds 10M products: 135 h for text and 167 h for images on one laptop GPU.

Apple M5: 20.6 text / 16.6 images per second

Going Live

What happens to reads while you write?

  1. When
  2. PoC
  3. Tune
  4. Go live
  5. Run

Writes · 4 checksFeatures · 1 check

Where a write goes before it's searchable

INGESTINDEXSEARCH Proxy Streaming node Data node Query node Object storage PartitionAPartition A PartitionBPartition B

Keep measuring after writes stop B4d

Monitor for at least 30 min after tests, and use prod-like infra!

Setup 448k products, 20 searches/s, each write alone from an idle, indexed collection. Storm: 10% of prices at 150 rows/s for 5 min. 1%: 4,479 rows.

Measure time-to-searchable B4c


Measure freshness & visibility after upserts, don't over-optimise.

Setup 448k products, 5 min of updates at 150 rows/s, 150 tracked. No flush: most back 10.5 to 11.3 min after the writes, drawn as a ramp until a re-run.

Model changes: swap an alias B4b

insert, compact, index, loadCataloguenew embeddings App encoder: old model encoder: new model alias: products 0 of 33,259 failed products_v1 old modelservingkept for rollback products_v2 new modelbuildingreadyserving

Use prod-like infra!

Setup 448k products, 20 searches/s, 4 CPUs, HNSW to HNSW_SQ8. Our test re-indexed the same vectors, so it did not need an encoder change.

Ready for launch day?

paging

Iterators, not offsets

  • Deep offsets re-run the whole search
  • Score at the depth users reach

scaling

Autoscaling, exercised

  • Does it scale out before p99 breaks?
  • Does scaling in drop searches?

recovery

Backup and DR

  • A rehearsed restore, with agreed RPO and RTO
  • Model version stored with each backup

access

Security and RBAC

  • Least privilege, per-service credentials
  • Private networking, encryption, tenant isolation

Keeping it running

Vector search fails silently. How would you know?

  1. When
  2. PoC
  3. Tune
  4. Go live
  5. Run

Measure · 1 check

Watch technical drift

recall drift

Shadow exact search

Re-run a sample of live searches with exact search. Alert when ANN recall drops as the data and segments change.

relevance drift

Scheduled golden set

nDCG on a fixed judged set. Alert only when judged@10 ≥ 0.9; otherwise send new results for judging.

search drift

Refresh the golden set

What shoppers search for shifts with seasons, launches and new terms. Compare this month's top searches with the golden set, and add the new ones.

latency drift

p99 against growth

p99 creeps as rows and segments grow, and 5-minute averages hide the stalls. Alert on 30 s windows, and re-run the sizing as data grows.

nDCG is a proxy too. Users are the truth.


layermetricsscored againstcadencecatches
closer to the user
ModelnDCG@10, exact searchMTEBgraded labels, no indexmodel changeweak embeddings
Indexrecall@kfiltered recallp99 latencyexact searchevery deployANN params, data drift
RelevancenDCG@10, full pipelineMRRjudged@10graded human or LLM labelsevery pipeline changebad ranking, filters, boosts
BehaviourCTRzero resultsreworded searchesreal userslive, A/Branking users ignore
Businessconversionrevenue / searchreturnsthe P&LA/B, quarterlyrelevant that doesn't sell

Alert on the 'easy' metrics. Report on the top ones.

Keep the evidence coming

trace

Every search

Latency and cost per stage: embed, search, rerank

Slower or costlier than the sizing?

collect

Logged searches

Sampled and judged into the next eval set

Still testing what shoppers search?

test

Ephemeral cluster

Restore from production,
re-run the PoC tests

every restore is a DR rehearsal

Is this change safe?

ship

The change

Model, schema or index, with evidence

Did CTR and conversion move?

back into production traffic

How many can you tick now?

Measure the right thing

  • Real search logs
  • Relevance & recall
  • Judged coverage
  • Drift monitoring

Tune the features you ship

  • Production filters
  • Partition tax
  • Facet counts
  • Business rules

Know what it costs

  • Resident RAM
  • nDCG per GB
  • 10× sizing
  • Re-embed price

Survive writes

  • Write bursts
  • Update path
  • Model swap
  • Time to searchable

Clear the road to production

A solution design covering data residency, AI policy and HA/DR is approved early.

The real gotchas

You've cleared the technical blockers. That was the easy part.

  1. When
  2. PoC
  3. Tune
  4. Go live
  5. Run
  6. Gotchas

The tech is there... but the business isn't.

compliance

Review stalls everything

Get a solution design approved early: data residency, AI policy and HA/DR.

inertia

“We already have X”

Settle it against written requirements, with both options tested.

ownership

“Who owns this?”

Name the team that runs it: search product, general devops or specialists.

procurement

Legal starts after the PoC

For a commercial product, run procurement and legal alongside the PoC.

metrics

Why do we need this?

Tie it to a number the business knows: revenue, CSAT, efficiency or cost saving.

adoption

“These results are wrong”

Put the people who own the results on the team from the start: merchandising, content, support.

Ready to go live

Measure the right thing

  • Real search logs
  • Relevance + recall
  • Judged coverage
  • Drift monitoring

Tune the features you ship

  • Production filters
  • Partition tax
  • Facet counts
  • Business rules

Know what it costs

  • Resident RAM
  • nDCG per GB
  • 10× sizing
  • Re-embed price

Survive writes

  • Write bursts
  • Update path
  • Model swap
  • Time to searchable

Clear the road to production

A solution design covering data residency, AI policy and HA/DR is approved early.

Ready to go live

Thank you!

simon @ zilliz.com

milvus.io · zilliz.com

Simon Hearne
solutions architect · zilliz