AI Architecture & Inference
Vector Search Indexing for ATS Resume Parsers: HNSW vs IVF-Flat & Approximate Nearest Neighbors (ANN)

Modern AI-driven talent intelligence engines (like Ashby, Eightfold AI, and Workday Semantic Search) index millions of candidate profiles in specialized vector databases (pgvector, Milvus, Qdrant, Pinecone).
When recruiters post a job requisition, the system executes an Approximate Nearest Neighbor (ANN) vector similarity search across high-dimensional embeddings ($d = 768$ or $d = 1536$). Understanding the algorithmic mechanics of Hierarchical Navigable Small World (HNSW) graphs and Inverted File Indexing with Product Quantization (IVF-PQ) reveals how candidate resumes are scored and retrieved in under 10 milliseconds.
+───────────────────────────────────────────────────────────────────────────+
| HNSW HIERARCHICAL GRAPH SEARCH TOPOLOGY |
+───────────────────────────────────────────────────────────────────────────+
| |
| Layer 2 (Coarse Skip Graph): (Node A) ──────────────► (Node F) |
| │ │ |
| ▼ ▼ |
| Layer 1 (Medium Density): (Node A) ──► (Node C) ──► (Node F) |
| │ │ │ |
| ▼ ▼ ▼ |
| Layer 0 (Full Dense Vector): (Candidate Resumes Clustered in Latent Space)
| |
| Search Complexity: O(log N) average query retrieval time |
+───────────────────────────────────────────────────────────────────────────+
1. Comparing Vector Indexing Algorithms
| Algorithm | Index Build Time | Query Latency (QPS) | Recall Accuracy (@10) | RAM Overhead |
|---|---|---|---|---|
| HNSW (Graph-based) | Moderate | Ultra-Fast (<2ms) | 99.2% (Highest) | High (Stores graph edges in memory) |
| IVF-Flat (Cluster-based) | Fast | Fast (5–12ms) | 94.5% | Moderate (Inverted list pointers) |
| IVF-PQ (Quantized) | Fast | Moderate (10–20ms) | 88.0% | Low (Compressed vectors to 8 bits) |
| Flat / Brute Force | Zero | Extremely Slow (O(N)) | 100% (Exact) | High |
2. Why HNSW Dominates Resume Matching
HNSW builds a multi-layered skip graph inspired by probabilistic skip lists:
- Top Layers: Sparse connectivity allowing the search algorithm to traverse vast semantic distances across dissimilar skill clusters in a few hops.
- Bottom Layer (Layer 0): Dense clustering where candidates with closely aligned skill sets (e.g. Distributed Systems Go Engineers) are densely connected.
- Recall Optimization: Resumes with cohesive semantic skill clusters enter the target cluster neighborhood early in the traversal, avoiding early pruning.
3. How Kairo Optimizes Candidate Vector Graphs
Kairo's AI Job Search & Auto-CV Engine:
- Analyzes job description embeddings to identify the target HNSW cluster centroids.
- Injects high-magnitude semantic vector tokens into your resume bullets.
- Guarantees your profile lands in the top 1% nearest neighbor shortlist across all major ATS platforms.