Tag: GenAI – Approximate Nearest Neighbors (ANN)


  • GenAI – Approximate Nearest Neighbors (ANN)

    GenAI – Approximate Nearest Neighbors (ANN)

    GenAI – Approximate Nearest Neighbors (ANN) Table Of Contents: Foundational Concepts What is Nearest Neighbor Search (NNS)? Exact vs Approximate Nearest Neighbors Trade-offs: Speed vs Accuracy vs Memory Use cases in GenAI: Semantic Search, RAG, Recommendation Systems Distance Metrics Euclidean Distance Cosine Similarity Manhattan (L1) Distance Dot Product Similarity Choosing the right metric based on data and task Core ANN Algorithms & Techniques Locality-Sensitive Hashing (LSH) Concept and hash function families MinHash, SimHash Hierarchical Navigable Small World Graphs (HNSW) Graph-based ANN Navigation and hierarchy Product Quantization (PQ) Vector compression for large-scale retrieval IVF (Inverted File Index) + PQ Clustering +

    Read More