Vector search is now a database operator with many physical implementations. Index families, parameter settings, and compression levels each trade cost against fidelity, the fraction of a query's exact top-k neighbors that a configuration returns. Deployments nevertheless choose one configuration offline and run every query on it. They are sized for their hardest queries and overpay for the rest. On 5.8M LAION image-caption pairs with four embedding models, running each query on the cheapest configuration that suffices for it would roughly halve the cost in a typical setting. Capturing this saving requires predicting, before any search runs, how each configuration will do on a query. This is hard, because fidelity is defined by the exact search that approximate indexes avoid. We show that a query's position in the embedding space predicts it, and that the prediction must be kept per configuration. We study two estimators trained once on a labeled sample. A small neural network maps the query vector to a probability per configuration. A fidelity synopsis records, like an optimizer histogram, how often each configuration met the target in each region of the space. A budget rule turns either estimate into a per-query choice, tuned so that the workload misses the target no more often than a static deployment is allowed to. Against the best static choice among the 11 configurations we built, selection costs a median of 0.59x with the network and 0.70x with the synopsis. An advisor in the style of relational index advisors chooses which configurations to build. Three configurations keep the saving, at a fraction of the memory and labeling cost of the full catalog. Costs are estimated from per-configuration latencies measured with full batches.
翻译:暂无翻译