-
Hi there, is there a way to know how many elements are visited in a graph index (e.g. HNSW or NSG) during a kNN search for a query? I didn't find it so I'm asking your help. |
Beta Was this translation helpful? Give feedback.
Answered by
SilvioM97
Sep 11, 2023
Replies: 1 comment
-
An admin of Facebook FAISS' group gave me this answer: ivf_stats = faiss.cvar.indexIVF_stats hnsw_stats = faiss.cvar.hnsw_stats |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SilvioM97
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An admin of Facebook FAISS' group gave me this answer:
ivf_stats = faiss.cvar.indexIVF_stats
ivf_stats.reset()
[query]
ivf_stats.ndis
hnsw_stats = faiss.cvar.hnsw_stats
hsnw_stats.reset()
[query]
hnsw_stats.ndis