Find answers from the community

Updated 4 months ago

Does llama-index use KNN or HNSW for

At a glance

The post asks whether the llama-index library uses KNN or HNSW for its automerge engine. The community members discuss this, with some indicating that the default vector store in llama-index is a simple numpy array with pairwise cosine similarity, and that HNSW would only be available if the vector store used supports it. One community member suggests that if Chroma, which uses HNSW by default, is integrated with the llama-index engine, then HNSW could be used. However, there is no explicitly marked answer in the comments.

Does llama-index use KNN or HNSW for automerge engine? πŸ€”
L
L
5 comments
Not unless the vector store you are using supports that
so I suppose that a nope for native hnsw. But if I am able to hook up Chroma to the engine, which uses HNSW by default, that should be the case right?
Yup exactly πŸ‘
The default vector store is very simple -- just a numpy array of vectors and pairwise cosine similarity
Add a reply
Sign up and join the conversation on Discord