Skip to content
Discussion options

You must be logged in to vote

Q1: Can Milvus do exact KNN search with HNSW index?

No, HNSW is an ANN (approximate nearest neighbor) algorithm by design, so exact KNN is not supported with HNSW. However, you can absolutely push recall beyond 97% — achieving 99% or even 99.5% is
realistic by tuning your search parameters (e.g. increasing ef). The 97% you're seeing likely has room for improvement depending on your query parameters and data distribution.

Q2: Is it fair to compare OpenSearch KNN results with Milvus ANN results?

Not really — this isn't an apples-to-apples comparison. KNN (brute-force exact search) is significantly slower than ANN, so comparing them directly isn't fair to either system. The right way to
benc…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xiaofan-luan
Comment options

@dmitriivahrushev
Comment options

Answer selected by dmitriivahrushev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants