Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HNSW_PRQ range search recall too low for IP & COSINE #1070

Open
cydrain opened this issue Feb 12, 2025 · 1 comment
Open

HNSW_PRQ range search recall too low for IP & COSINE #1070

cydrain opened this issue Feb 12, 2025 · 1 comment
Assignees

Comments

@cydrain
Copy link
Collaborator

cydrain commented Feb 12, 2025

Need check whether HNSW_PRQ range search recall is expected for IP & COSINE
recall: 1.0 (L2), 0.016(IP), 0.014 (COSINE)

33097:[2025-02-12 14:33:45 - INFO - test_func.py:337]: CYD - index=HNSW, metric=L2, recall=1.0, base=0.99
33102:[2025-02-12 14:33:46 - INFO - test_func.py:337]: CYD - index=HNSW_SQ, metric=L2, recall=0.9921, base=0.99
33107:[2025-02-12 14:33:50 - INFO - test_func.py:337]: CYD - index=HNSW_PQ, metric=L2, recall=0.8878, base=0.88
33112:[2025-02-12 14:34:14 - INFO - test_func.py:337]: CYD - index=HNSW_PRQ, metric=L2, recall=1.0, base=0.99
33117:[2025-02-12 14:34:15 - INFO - test_func.py:337]: CYD - index=HNSW, metric=IP, recall=1.0, base=0.99
33122:[2025-02-12 14:34:17 - INFO - test_func.py:337]: CYD - index=HNSW_SQ, metric=IP, recall=0.9901, base=0.99
33127:[2025-02-12 14:34:21 - INFO - test_func.py:337]: CYD - index=HNSW_PQ, metric=IP, recall=0.6662, base=0.66
33132:[2025-02-12 14:34:32 - INFO - test_func.py:337]: CYD - index=HNSW_PRQ, metric=IP, recall=0.016, base=0.01
33137:[2025-02-12 14:34:34 - INFO - test_func.py:337]: CYD - index=HNSW, metric=COSINE, recall=1.0, base=0.99
33142:[2025-02-12 14:34:36 - INFO - test_func.py:337]: CYD - index=HNSW_SQ, metric=COSINE, recall=0.9914, base=0.99
33147:[2025-02-12 14:34:40 - INFO - test_func.py:337]: CYD - index=HNSW_PQ, metric=COSINE, recall=0.6691, base=0.66
33152:[2025-02-12 14:34:51 - INFO - test_func.py:337]: CYD - index=HNSW_PRQ, metric=COSINE, recall=0.0146, base=0.01

run case

pytest -v -m L0 test_func.py::TestFunc::test_float_index
@cydrain
Copy link
Collaborator Author

cydrain commented Feb 12, 2025

/assign @alexanderguzhva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants