November 2019 Summaries
2 posts from Qdrant
Filter
Month:
Year:
Post Summaries
Back to Blog
Andrei Vasnetsov explores the potential of enhancing the Hierarchical Navigable Small World (HNSW) algorithm to incorporate constraints directly during the search process, rather than applying conditions post-search, which is common with other approximate nearest neighbor (ANN) search libraries like Annoy and FAISS. The modified approach involves applying filter criteria to the nodes within the HNSW navigation graph, allowing for searches that adhere to specific conditions such as categorical filtering, numerical ranges, or geographical constraints. This method leverages principles from Percolation theory to maintain graph connectivity despite node removal and aims to ensure the search remains effective by adjusting parameters like the number of edges per node. Vasnetsov suggests that, for categorical filtering, additional edges within each category can maintain connectivity, while geographical searches can utilize geohashing to connect graph nodes. The article acknowledges that implementing these modifications in real-world systems would require a more efficient version, such as NMSLib, to meet production-level performance demands.
Nov 24, 2019
1,062 words in the original blog post.
Andrei Vasnetsov discusses the challenges and potential solutions for applying constraints during approximate nearest neighbor (ANN) searches in vector spaces, specifically focusing on the Hierarchical Navigable Small World (HNSW) algorithm. While traditional libraries like Annoy, FAISS, or NMSLib offer fast approximate searches, they struggle with incorporating constraints such as category or label filtering directly into the search process. Vasnetsov proposes modifying the HNSW algorithm by applying filter criteria to graph nodes, allowing for category-specific connections and enhancing graph connectivity to maintain search efficiency. This approach is applicable to categorical filtering, numerical ranges, and geographical searches, with the potential for further optimization in real production systems using faster implementations like NMSLib. Through experiments and theoretical insights, Vasnetsov highlights the method's effectiveness, although challenges remain in ensuring connectivity across categories and optimizing for different filtering scenarios.
Nov 24, 2019
1,062 words in the original blog post.