Vector Search
A retrieval technique that maps queries and documents into high-dimensional dense vectors and measures semantic closeness using cosine similarity or dot product. It can find conceptually related content across differences in literal wording.
Core Facts
Timeline (last 90 days)
The core mechanism of vector search is nearest-neighbor search: as long as the vector store is non-empty, it will always return a result, and there is no built-in "no result" branch.
Vector search is one of the query capabilities supported by Cosmos DB, used to find the semantically most similar results in vectorized data; Cosmos DB stores vectors in an array property of the document and provides the VectorDistance function to compute distance in queries.
The second episode of the series will show how to make the application intelligent with vector, full-text, and hybrid search, with the goal of finding the truly right hotel in Barcelona on real-time operational data, not just a similar one.
Executing Cosmos DB vector queries usually requires a vector index (such as a DiskANN index) to ensure performance, and vector queries consume relatively many RUs.
On a self-built test set (120 real queries, 38 of which contain identifiers), pure vector retrieval hit 21/38 identifier queries, pure BM25 (with an identifier-preserving tokenizer) hit 36/38, and hybrid + RRF hit all 38.
For the E4012 query, BM25 ranks the correct page 1st (score 1/61) and vector search ranks it 14th (1/74); after RRF fusion the correct page scores about 0.030 while the E4021 page scores about 0.016, nearly doubling the correct page's score.
Pure vector search (embedding retrieval) tends to lose rare but precise tokens such as error codes, ticket IDs, SKUs, and function names, because embeddings blur rare tokens when compressing text into a single point.
If the queries are all fuzzy natural-language questions containing no IDs or terminology, pure vector retrieval may suffice; if the knowledge base is small enough to fit directly into the prompt (Anthropic suggests under 200,000 tokens), you can also try putting it in directly first.
The article plans to compare three strategies—BM25 only, vector search only, and hybrid search using RRF—on 15–20 questions.
In scenarios requiring exact keywords (such as the error code AUTH_403), vector search ranking may not be ideal.
20 more timeline events
All Facts (20)
混合检索(Hybrid Search)将向量检索与BM25关键词检索的结果通过RRF(倒数排名融合)等算法合并,兼顾语义理解与精确匹配
90%UnverifiedThe core mechanism of vector search is nearest-neighbor search: as long as the vector store is non-empty, it will always return a result, and there is no built-in "no result" branch.
50%UnverifiedExecuting Cosmos DB vector queries usually requires a vector index (such as a DiskANN index) to ensure performance, and vector queries consume relatively many RUs.
50%UnverifiedVector search is one of the query capabilities supported by Cosmos DB, used to find the semantically most similar results in vectorized data; Cosmos DB stores vectors in an array property of the document and provides the VectorDistance function to compute distance in queries.
50%UnverifiedFor the E4012 query, BM25 ranks the correct page 1st (score 1/61) and vector search ranks it 14th (1/74); after RRF fusion the correct page scores about 0.030 while the E4021 page scores about 0.016, nearly doubling the correct page's score.
50%UnverifiedOn a self-built test set (120 real queries, 38 of which contain identifiers), pure vector retrieval hit 21/38 identifier queries, pure BM25 (with an identifier-preserving tokenizer) hit 36/38, and hybrid + RRF hit all 38.
50%UnverifiedIf the queries are all fuzzy natural-language questions containing no IDs or terminology, pure vector retrieval may suffice; if the knowledge base is small enough to fit directly into the prompt (Anthropic suggests under 200,000 tokens), you can also try putting it in directly first.
50%UnverifiedPure vector search (embedding retrieval) tends to lose rare but precise tokens such as error codes, ticket IDs, SKUs, and function names, because embeddings blur rare tokens when compressing text into a single point.
50%UnverifiedIn scenarios requiring exact keywords (such as the error code AUTH_403), vector search ranking may not be ideal.
50%UnverifiedVector embeddings excel at text similarity retrieval but cannot effectively handle structured graph constraints, such as simultaneously satisfying multiple conditions like geographic distance, available ICU beds, on-duty specialists, and allergy contraindications.
50%UnverifiedVector representations are compressed semantic summaries that lose details such as exact identifiers, negations and numerical boundaries, and may also rank texts that are semantically similar but opposite in conclusion ahead of others.
50%UnverifiedVector search maps queries and documents into dense vectors in a high-dimensional space, measuring semantic closeness via cosine similarity or dot product.
50%UnverifiedBaruzzo's argument is not against vector search itself, but about the order of doing things: first establish a measurable baseline, and let error types drive technical decisions.
50%UnverifiedVector search compares semantic similarity and is inherently poor at exact matching (such as numbers, dates, and codes); directed queries are a weakness of vector search.
50%UnverifiedWithout a baseline, adding vector search can only be called a "change", not an "improvement"; any newly added technical solution must be able to beat the baseline to count as an improvement.
50%UnverifiedWhen the evaluation set shows that vocabulary-mismatch errors dominate, hybrid search (keyword plus vector) has sufficient justification, and the benefit can be quantified.
50%UnverifiedSemantic retrieval (vector search over stored knowledge) and state recovery (loading a checkpointed workflow) solve different problems; vector search can surface relevant context, but should never be the sole mechanism for restoring the exact state of an in-progress task.
50%UnverifiedVector search is a technique that encodes unstructured data such as text and images into high-dimensional vectors (embeddings), then uses approximate nearest neighbor (ANN) algorithms to retrieve semantically similar items; common implementations include FAISS, Milvus, Pinecone and pgvector.
50%UnverifiedCompared with keyword inverted indexes, vector search can capture expressions that are semantically identical but literally different, but it requires an additional embedding service and index maintenance costs.
50%UnverifiedVector search alone is powerless for exact matches (such as product numbers, error IDs, version numbers and names); when a user searches for 'error E4021', vector search loses the exact match.
50%