Significant difference in results quality between vectorized and non-vectorized retrieval
Hi.
Thank you for the detailed response to my previous questions in #15 .
We continue experimenting with your project. We indexed a set of short encyclopedic articles totaling ~32 MB, split into ~7,000 chunks (passages). The NER model identified ~162,000 sentences and ~216,000 entities. The final graph contained ~223,000 vertices and ~1,200,000 edges.
We noticed that the retrieval results significantly differ between vectorized and non-vectorized search for the same input query and (thus) the same seed_entities. The relevance of retrieved chunks in vectorized search turns out to be much worse.
Have you encountered such an effect before, and if so, what might be causing it?
Dear Kekuaka,
Across several datasets we have tested, the experiments show similar results. We appreciate your pointing out this practical difference in our method, as it helps us double‑check the reliability of the code.
After reviewing the implementation, we identified a likely cause related to the Top‑K selection mechanism, which is not equivalent between the two approaches:
- BFS search: Each entity independently selects the Top‑K of its associated sentences (local selection).
- Matrix search: A global selection is applied over all activated sentences, choosing Top‑(num_active × K) (global approximation).
When multiple entities are linked to the same sentence, the matrix method may drop sentences that are locally important for a specific entity due to global competition. In some datasets, this can become a noticeable factor.
We will address this issue and update the code soon.