Pre filter for vector search

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.

I figure our that chat GPT has old data - ave mongo db!

1 Like

Thanks @Nikita_Polevoi for you quetion - and for answering it too!! That’s for numeric pre-filtering - but if you want to take it further, this tutorial from our Developer Day event might be of help - 🦸‍♂️ Pre-filtering Data | Creating Compelling Search Experiences

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.