Retrieval

Vector Search with OpenAI Embeddings

First page
Vector Search with OpenAI Embeddings
Paper summary

Argues, via empirical analysis, that dedicated vector databases aren't necessarily required for modern AI-stack search applications.

Ask this paper

Key points
01

Cost-benefit framing: "From a cost-benefit analysis, there does not appear to be a compelling reason to introduce a dedicated vector store into a modern 'AI stack'" - a pointed critique of the vector-DB explosion.

02

Existing infrastructure suffices: Shows that widely deployed search infrastructure (Elasticsearch, Lucene) can handle OpenAI embeddings adequately for most applications.

03

Performance characterization: Benchmarks OpenAI embeddings on standard retrieval tasks using existing search infrastructure, providing hard numbers.

04

Industry pushback: Part of a broader debate about the necessity of specialized vector databases, offering empirical ammunition to the skeptics.

Abstract

We provide a reproducible, end-to-end demonstration of vector search with OpenAI embeddings using Lucene on the popular MS MARCO passage ranking test collection. The main goal of our work is to challenge the prevailing narrative that a dedicated vector store is necessary to take advantage of recent advances in deep neural networks as applied to search. Quite the contrary, we show that hierarchical navigable small-world network (HNSW) indexes in Lucene are adequate to provide vector search capabilities in a standard bi-encoder architecture. This suggests that, from a simple cost-benefit analysis, there does not appear to be a compelling reason to introduce a dedicated vector store into a modern "AI stack" for search, since such applications have already received substantial investments in existing, widely deployed infrastructure.

Every Monday
Get next week’s papers.
Subscribe on Substack