Guide : Vector Search

How AI search trouve relevant content by comparing embedding vectors — ANN algorithms (HNSW, ScaNN), distance metrics, hybrid search, and Ce que cela signifie pour le SEO.

Première publication : 24 juin 2026 · Dernière mise à jour : 3 août 2026 · Advanced
Langues

Vector search trouve content by comparing the meaning of a requête contre stored content as embedding vectors, retrieving the closest ones in a high-dimensional space. At scale it uses approximate nearest neighbor (ANN) algorithms — HNSW, IVF, FAISS, ScaNN — que trade a sliver of recall pour huge speed gains, parce que exact comparison over billions of vectors is impossible in réel temps. It's a méthode pour achieving semantic search, pas a synonym pour it, and it's the retrieval step à l’intérieur every RAG system, notamment ce que feeds AI Overviews. Production search rarely runs it alone: the réel pattern is hybrid (keyword BM25 + vector + reranking). Pour le SEO there's aucun knob to turn — vector proximity is the nouveau gate into the candidate pool, and it rewards topically coherent, passage-level depth over keyword density.

TL;DR — Vector search retrieves the closest vectors to a requête vector in a high-dimensional embedding space, en utilisant approximate nearest neighbor (ANN) algorithms — HNSW, IVF, FAISS, ScaNN — parce que exact comparison over billions of vectors is impossible in réel temps. ANN is approximate by design: it trades a sliver of recall pour orders-of-magnitude speed. Vector search is a mechanism pour semantic search, pas a synonym pour it, and it’s the retrieval step à l’intérieur every RAG system (AI Overviews inclus). Production rarely runs it alone — the réel pattern is hybrid: BM25 + vector + reranking. Pour le SEO there’s aucun knob to turn; vector proximity is the gate into the candidate pool, and it rewards topically coherent, passage-level depth.

Où vector search sits

Vector retrieval is un component que peut feed ranking or generation; it n’est pas a complet search system by itself. Evidence for this claim HNSW is an approximate nearest-neighbor method that organizes vectors in a multilayer navigable graph for efficient search. Scope: The HNSW algorithm and reported evaluations; production indexes may use different ANN methods and parameters. Confidence: high · Verified: Malkov and Yashunin: HNSW Aucun fixed distance threshold or index algorithm is universally meilleur. Evidence for this claim Embedding vectors can be compared by distance to retrieve related items. Scope: OpenAI embedding guidance; retrieval quality depends on model choice, corpus, index, filters, and evaluation. Confidence: high · Verified: OpenAI: Embeddings guide

Embeddings give vous the vectors — vector search is ce que vous do with les. Si embeddings are the “what is a vector” half of the story, ce is the “now find the closest ones” half. And it’s worth being precise à propos de a distinction the industry blurs constantly: semantic search is the goal; vector search is un méthode pour reaching it. Semantic search peut aussi lean on knowledge graphs, entity recognition, and intent matching. Vector search specifically signifie ANN retrieval over an embedding space — so the two aren’t synonyms, même though they’re utilisé as si ils were.

How vector search fonctionne, step by step

The pipeline is the même si you’re Google or a weekend RAG project:

The query is embedded into the same representation as indexed content before nearby candidates are retrieved. Source : Vector Search

Documents are embedded and indexed before the search. At query time, the system embeds the query, searches an approximate-nearest-neighbor index, finds nearby vectors, and returns their corresponding documents as candidates.

© Patrick Stox LLC · CC BY 4.0 ·

  1. Embed le contenu. An encoder model converts chaque chunk of content into a vector. Remarque chunk — vector search doesn’t comparer whole pages; it compares passages. Chunking is the unit of retrieval, qui is pourquoi passage-level density matters plus que page-level keyword presence.
  2. Construire an index. The vectors go into a vector index construit pour fast nearest- neighbor lookups (an ANN index — plus ci-dessous).
  3. Embed the requête. At requête temps the même model turns the user’s requête into a vector in the même space.
  4. Run ANN search. The index renvoie the top-k vectors closest to the requête vector — the candidate définir.
  5. Rank and retourner. Ceux candidates obtenir scored, souvent reranked, and the meilleur are served (or, in RAG, réussi to an LLM to generate from).

Approximate nearest neighbor — pourquoi “approximate”

Finding the exact nearest neighbors signifie comparing the requête to every stored vector — O(N) per requête. At billions of vectors, in milliseconds, that’s a non-starter. So production search uses ANN: indexation structures que trouver the nearest neighbors almost perfectly pendant que skipping the vast majority of comparisons.

As Elastic puts it, ANN “sacrifices perfect accuracy in exchange pour executing efficiently in élevé dimensional embedding spaces, at scale.” Weaviate frames the même tradeoff as trading “a bit of accuracy for a huge gain in speed.” Ce is pas a bug — it’s the engineering choice que rend vector search possible at tout. The metric pour “how good is the approximation” is recall: Google defines it as “the percentage of nearest neighbors renvoyé by the index que are en réalité vrai nearest neighbors.” Google’s own Vector Search service — rebranded from “Vertex AI Vector Search” and now documented sous the Gemini Enterprise Agent Platform — reports recall of 95–98% — vous give up a couple of percent of the vrai neighbors and obtenir search at web scale in retourner.

Clé ANN algorithms

Vous don’t besoin to implement ces, but knowing the noms demystifies a lot of AI- search discussion.

  • HNSW (Hierarchical Navigable Petit World) — the industry par défaut. A multi- couche graph où the top layers are sparse “express lanes” with long-range connections pour fast traversal, and the bottom layers are dense “local roads” pour precise navigation. It achieves roughly logarithmic search complexity, qui is pourquoi it dominates production. Utilisé by Weaviate, Pinecone, pgvector, Qdrant, and plus. The catch is memory: HNSW indexes are RAM-hungry. Pinecone’s verdict — “HNSW donne us great search-quality at very fast search-speeds — but there’s toujours a catch — HNSW indexes prendre up a significant amount of memory.”
  • IVF (Inverted Fichier Index) — partitions the space into clusters (k-means), alors at requête temps seulement searches the few clusters nearest the requête (nprobe). Pinecone calls it “a very popular index as it’s facile to utiliser, with élevé search- quality and reasonable search-speed… a bon scalable option.”
  • FAISS — Facebook AI’s library (Johnson, Douze, Jégou) pour billion-scale similarity search. It’s a toolbox, pas a unique algorithm: a flat exact baseline (IndexFlatL2), clustered IVF, product-quantized IVFPQ pour 4–64x memory compression, and an HNSW implementation. Its GPU adaptation reported an 8,5x speedup on k-NN search.
  • ScaNN (Scalable Nearest Neighbors) — Google’s library, open-sourced, the même family of tech behind Google Recherche d’images, YouTube, and Google Play. Its innovation is anisotropic vector quantization: au lieu de minimizing average distance, it “plus heavily penalizes quantization error que is parallel to the original vector,” parce que directional error disproportionately harms the élevé- inner-product (la plupart relevant) results. The payoff: it “outperforms autre vector similarity search libraries by a factor of two” on ann-benchmarks.com — roughly twice the requêtes per second at a donné accuracy.
  • Flat (exact) index — aucun approximation at tout; brute-force, la plupart accurate, slowest. Pinecone notes flat indexes “produce the most accurate results” and are the correct appel quand search quality is paramount or the index is petit (sous ~10K vectors). Ci-dessus que scale, vous déplacer to ANN.

The through-line: every ANN index is a dial entre recall, latency, throughput, and memory. As Weaviate puts it, la plupart vector databases let vous “configurer how votre ANN algorithm devrait behave… to trouver the correct balance.”

Distance metrics

“Closest” nécessite a definition. Three are courant:

  • Cosine similarity — the par défaut pour text. It measures the angle entre two vectors, ignoring magnitude, so a short document and a long un on the même topic score alike. Weaviate: “Cosine similarity is commonly utilisé in Natural Language Processing… It measures the similarity entre documents regardless of the magnitude.”
  • Dot product (inner product) — utilisé quand relevance is défini by inner product (the MIPS problem ScaNN optimizes pour).
  • Euclidean distance (L2) — straight-line distance; utilisé quand magnitude carries meaning.

Here’s the practical shortcut: pour normalized vectors, cosine similarity and dot product give identical rankings, and la plupart modern embedding models normalize leur output to unit length. OpenAI dit it plainly — “We recommend cosine similarity. The choice of distance function typically doesn’t matter beaucoup” — precisely parce que leur embeddings are length-1. The réel rule, per Weaviate: “Utiliser the distance metric que matches the model que you’re en utilisant… Là is aucun ‘un size fits tout’.”

Vector databases

A vector database stores vectors and runs ANN over les so vous don’t construire the index infrastructure yourself. The courant noms — Pinecone (managed), Weaviate (hybrid search construit in), Chroma and FAISS (great pour prototyping/in-process), Qdrant, Milvus (self-hosted scale), and pgvector (a Postgres extension, pour teams déjà on SQL). I’m listing, pas ranking — the correct choice dépend on scale, si vous vouloir managed vs. self- hosted, and si vous besoin hybrid search out of the box. At Google/Bing scale, the “database” is internal ScaNN/ANN infrastructure plutôt que quelconque of ces.

Hybrid search — how production en réalité fonctionne

The “keyword search vs. vector search” framing is a faux binary. Pure vector search misses exact-match requêtes — error codes, SKUs, proper nouns — and pure keyword search misses semantic variants. So serious systems run hybrid search: keyword (BM25) and vector retrieval in parallel, results fused (commonly with Reciprocal Rank Fusion), alors the top candidates reranked by a cross-encoder. Microsoft defines hybrid search as “the execution of vector search and keyword search in the même requête… The requêtes execute in parallel, and le résultats are merged into a unique réponse and ranked accordingly.” Google’s Vector Search supports the même three modes — dense (semantic), sparse (keyword), and hybrid. Si vous prendre un chose from ce section: production retrieval is almost jamais vector-only. It’s the combination que wins.

Ce n’est pas a 2023 ChatGPT-era novelty. The infrastructure predates the LLM wave by années:

  • ScaNN (ICML 2020, open-sourced) powers Google Recherche d’images, YouTube, and Google Play, and underpins Google’s Vector Search product (the service formerly branded Vertex AI Vector Search) — qui “shares the same backend” as ceux consumer products. Google’s Kaz Sato appelé the technology “one of the most important components of Google’s core services.” Performances spec: “tens of thousands of requêtes per second… in moins que 10 ms pour the 90th percentile with a recall rate of 95–98%.”
  • Bing was running 100B+ vector indexes by 2019. In Microsoft’s propre words, Bing pourrait “search via ce giant index of 100 billion-plus vectors to trouver the la plupart connexe results in 5 milliseconds.” That’s six-plus années ago.
  • Dense Passage Retrieval (DPR, EMNLP 2020) proved dense vector retrieval pourrait beat Lucene-BM25 by 9–19% absolute in top-20 passage retrieval accuracy with a simple dual-encoder. DPR is the blueprint modern RAG retrieval follows — the retrieval step behind AI Overviews is a descendant of ce pattern.
  • MUVERA (2025) rend multi-vector retrieval as fast as single-vector search — roughly “10% higher recall with ~90% lower latency” que prior méthodes.
  • TurboQuant (ICLR 2026) compresses vectors pour nearest-neighbor search with reported 6x memory reduction and effectively zero accuracy loss.

The point isn’t to memorize the roadmap — it’s que embedding-based retrieval is how the big engines trouver relevant content, and has been pour années.

Ce que cela signifie pour le SEO

Let me faites attention ici, parce que ce is où SEO advice usually overreaches.

Vector proximity is the nouveau gate into the candidate pool. In RAG-based réponses, retrieval se produit avant generation. Si votre passage isn’t semantically fermer to the requête embedding, it jamais enters the shortlist the model writes from — so it can’t be cited. That’s the mechanism.

But là is aucun “vector search optimization” knob. The underlying signal is semantic coherence and topical depth — qui is ce que quality content toujours requis. Vector search doesn’t reward a nouveau trick; it penalizes contenu pauvre and keyword stuffing (qui don’t formulaire a coherent neighborhood in embedding space) and rewards genuinely comprehensive, well-structured coverage. As I put it in the embeddings piece, echoing Danny Sullivan on BERT: there’s largely nothing to “optimize for” ici — vous faire votre content cluster cleanly near the requêtes it devrait réponse.

Two concrete implications que do follow:

  • Chunking matters. Retrieval operates on passages, pas whole pages. Une page peut rank pour nothing si aucun individual passage is a clean semantic match. Écrire passages que stand on leur propre.
  • Topical depth and entity coverage are how vous occupy the correct neighborhood in embedding space. Shallow, scattered content embeds into a fuzzy region near nothing in particulier.

Vector search is the retrieval engine behind RAG and AI réponses; passage ranking is ce que se produit to the candidates après retrieval; and the AI robots d’exploration feeding ces systems embed and vector-index ce que ils récupérer. Pour the wider pipeline, voir How Search Fonctionne.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.