Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. RAG /
  4. What is Vector Search?
RAG

What is Vector Search?

Updated October 2, 2026 Read 3 min

Vector search is the operation of finding the embeddings closest to a query vector. At scale it uses approximate nearest neighbour indexes, which trade a small amount of accuracy for very large speed gains.

Contents 11
  1. 01Key takeaways
  2. 02Vector search explained in simple terms
  3. 03Similarity measures
  4. 04Main ANN index types
  5. 05Recall: the metric that matters
  6. 06Filtering and search together
  7. 07Tuning vector search
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

Vector search is the operation of finding the stored embeddings closest to a query vector. Comparing a query against every stored vector is exact but slow, so production systems use approximate nearest neighbour (ANN) indexes that find almost all the right results in a fraction of the time. Vector search is the engine inside a vector database.

Key takeaways

  • Similarity is measured with cosine similarity, dot product or Euclidean distance.
  • Exact search is O(n); ANN indexes make search sublinear.
  • HNSW is the most widely used ANN index.
  • The key trade-off is recall versus speed and memory.
  • Filtering by metadata alongside search needs careful index support.

Vector search explained in simple terms

Finding the nearest restaurant by checking the distance to every restaurant in the country works, but it is slow. In practice you use a map with neighbourhoods and roads, so you only check nearby candidates. ANN indexes build that road network in vector space.

Similarity measures

MeasureWhat it capturesNotes
Cosine similarityAngle between vectorsMost common for text embeddings
Dot productAngle and magnitudeEquivalent to cosine when vectors are normalised
Euclidean (L2) distanceStraight-line distanceCommon in image and geometric data

Use whatever the embedding model was trained for; most text models expect cosine or normalised dot product.

Main ANN index types

IndexHow it worksStrengthsTrade-offs
HNSWA multi-layer graph where search hops between neighboursExcellent recall and speedHigh memory use
IVFVectors are clustered; only the nearest clusters are searchedMemory efficientRecall depends on clusters probed
Product quantization (PQ)Compresses vectors into small codesHuge memory savingsLower precision
IVF-PQClustering plus compressionScales to billionsAccuracy loss
Flat (exact)Compare with everythingPerfect recallOnly for small collections

HNSW, described by Yury Malkov and Dmitry Yashunin, is the default in most vector databases because of its strong speed-to-recall balance.

Recall: the metric that matters

Recall@k is the share of true nearest neighbours that the approximate search actually returns. A recall of 0.95 at k = 10 means 9.5 of the 10 genuinely closest items are found on average.

Worked example: raising HNSW’s search parameter (often `ef_search`) from 50 to 200 might raise recall from 0.92 to 0.99, while increasing query latency from 3 ms to 12 ms. For RAG, where a reranker refines results anyway, 0.92 is often fine. For legal discovery, missing 8% of relevant items may be unacceptable.

Filtering and search together

Real queries usually include conditions: only this customer’s documents, only the current policy version, only the last year. Combining filters with ANN search is harder than it sounds. Pre-filtering can leave too few candidates in the graph; post-filtering can throw away most results. Good vector databases implement filtered search natively, and this is often a key differentiator.

Tuning vector search

  • Choose the index type by collection size and memory budget.
  • Tune build parameters for index quality and search parameters for recall.
  • Retrieve more candidates than you need, then rerank.
  • Measure recall on a labelled sample, not just latency.

Limitations

  • Approximate results mean occasional misses.
  • High-dimensional distances become less discriminative.
  • Index building takes time and memory.
  • Similarity does not guarantee relevance to the question asked.

Common Use Cases

01

RAG retrieval

Find candidate chunks for grounded answers.

02

Semantic search

Return results matching meaning rather than keywords.

03

Recommendations

Retrieve similar items for users in real time.

04

Image similarity

Find visually similar photos or products.

05

Deduplication

Detect near-duplicate documents at scale.

06

Anomaly detection

Find records far from any cluster of normal behaviour.

Frequently Asked Questions

Finding the stored embeddings closest to a query vector, usually with approximate nearest neighbour indexes.

A graph-based approximate nearest neighbour index widely used for its strong balance of speed and recall.

The share of the true nearest neighbours that an approximate search actually returns.

Whatever the embedding model expects, usually cosine similarity or normalised dot product for text.

Filters interact with the index structure, so naive pre- or post-filtering can hurt recall or performance.

Related Terms

  • Vector Database
  • Vector Embedding
  • Semantic Search
  • Hybrid Search
  • Reranker
  • Retriever in RAG

Related AI Terms

What is Retrieval-Augmented Generation (RAG)?Retrieval-augmented generation (RAG) is a technique where relevant documents are retrieved from a knowledge source and added to…What is a RAG Pipeline?A RAG pipeline is the end-to-end system that turns raw documents into grounded answers, covering ingestion, chunking, embedding,…What is a Vector Database?A vector database is a database built to store vector embeddings and find the most similar vectors to…What is Semantic Search?Semantic search finds results based on meaning rather than exact word matching, so a search for 'can't log…What is Hybrid Search?Hybrid search combines keyword search, which excels at exact terms, with vector search, which captures meaning, then merges…What is Document Chunking?Document chunking is the process of splitting documents into smaller passages so they can be embedded, retrieved and…

Contents

  1. 01Key takeaways
  2. 02Vector search explained in simple terms
  3. 03Similarity measures
  4. 04Main ANN index types
  5. 05Recall: the metric that matters
  6. 06Filtering and search together
  7. 07Tuning vector search
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • RAG

Related Terms

  • What is Retrieval-Augmented Generation (RAG)?
  • What is a RAG Pipeline?
  • What is a Vector Database?
  • What is Semantic Search?
  • What is Hybrid Search?
  • What is Document Chunking?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
October 2, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}