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
Hybrid Search combines the results of vector retrieval and BM25 keyword retrieval through algorithms such as RRF (Reciprocal Rank Fusion), balancing semantic understanding with exact matching.
Vector search works by embedding text into a high-dimensional space and using similarity measures to find the segments closest to the query.
Timeline (last 90 days)
Fuzzy matching is not suitable for scenarios where the meaning is similar but the literal text is completely different (such as car and automobile); semantic search capabilities such as vector search should be used instead.
Vector search and fuzzy matching address problems at different levels: vector search measures semantic closeness based on embedding models, while fuzzy matching measures character-level spelling closeness.
For teams running vector search, adjusting cache capacity in step with dataset growth so that it keeps matching the vector index size helps maintain low-latency search.
What determines vector search performance is often not the number of data rows but the degree to which cache and index size match.
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.
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.
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.
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.
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.
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.
24 more timeline events
All Facts (20)
Hybrid Search combines the results of vector retrieval and BM25 keyword retrieval through algorithms such as RRF (Reciprocal Rank Fusion), balancing semantic understanding with exact matching.
90%VerifiedVector search works by embedding text into a high-dimensional space and using similarity measures to find the segments closest to the query.
65%UnverifiedFuzzy matching is not suitable for scenarios where the meaning is similar but the literal text is completely different (such as car and automobile); semantic search capabilities such as vector search should be used instead.
50%UnverifiedVector search and fuzzy matching address problems at different levels: vector search measures semantic closeness based on embedding models, while fuzzy matching measures character-level spelling closeness.
50%UnverifiedFor teams running vector search, adjusting cache capacity in step with dataset growth so that it keeps matching the vector index size helps maintain low-latency search.
50%UnverifiedWhat determines vector search performance is often not the number of data rows but the degree to which cache and index size match.
50%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%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%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%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 search maps queries and documents into dense vectors in a high-dimensional space, measuring semantic closeness via cosine similarity or dot product.
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%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%