Find answers from the community

Updated 12 months ago

Has anyone succeeded with using `BM25`

At a glance

The community member is having trouble using the BM25 retriever with a VectorStoreIndex, as the index.docstore is empty, causing a ZeroDivisionError. Another community member suggests that the docstore is not populated when using a remote vector database, and recommends passing in the nodes directly or maintaining and persisting a docstore to use with this.

Has anyone succeeded with using BM25 retriever using a VectorStoreIndex? The documentation says it can receive nodes, docstore or index, but when using Index (from PGVectorStoreIndex), it throws ZeroDivisionError (rightfully as index.docstore is empty).
Attachment
image.png
L
1 comment
the docstore is not populated when using a remove vector db

You can pass in the nodes directly, or maintain and persist a docstore to use with this
Add a reply
Sign up and join the conversation on Discord