2 / 4
Nov 2024

Chat GPT tells me that Mongo Db CAN NOT filter data before searching by vector index. Is it correct statement? If yes - did Mongo Db announced when they will implement it?

My use case - user stores their deals to one Deals collection and I have to make a vector search only for their data, not for all data with filtering result after. I don’t want to generate separate collection for each user.

Hi @Nikita_Polevoi,

Thank you for posting to the forums! We actually do support prefiltering as a component of vector search queries, where a filter is evaluated prior to vector similarity comparisons being performed. You can learn more about how to use this in the docs link you’ve shared.

I will flag the issue you’ve raised to our docs team who are working on improving the SEO/crawlability of our docs specifically so that users like yourself using chatbots to understand technologies have a better experience.