faiss icon indicating copy to clipboard operation
faiss copied to clipboard

where is python documentation? I confuse a parameter about index.search?

Open ciaoyizhen opened this issue 2 years ago • 1 comments

In the code prompt, the input parameters of index.search are n, x, k and others. I saw that the input parameters in some tutorials directly write index.search(xq, k), but the corresponding relationship is n->xq. , x->k And when I pass parameter k=k through keywords, the results are consistent? I'm very confused. Can you give me an answer or provide python documentation? Thank you so much

ciaoyizhen avatar Dec 24 '23 13:12 ciaoyizhen

Please use the index.search docstrings in Python, eg. with ?index.search in a notebook.

mdouze avatar Dec 26 '23 07:12 mdouze