MongoDB as a vector Database?

I’ve been using MongoDB since early 2012. I have loved it since. We manage several self-hosted clusters with a few terabytes of data, used for search, analytics, and other use cases.

But recently, we started building PDF RAG apps (Retrieval Augmented Generation) as well. For the RAG, we use Qdrant Cloud, which is good. However, I’m interested in exploring the possibility of migrating it to a self-hosted or cloud-hosted MongoDB setup.

Does anyone have experience using MongoDB as a main vector database for storage and search?

1 Like

Hi @Oleksandr_Gamaniuk,

I want to caveat my response with the note that this is coming from the perspective of how the MongoDB product team thinks about this question, and that I definitely am curious to hear what other users think.

Generally we see success with folks who have a lot of familiarity with MongoDB and are looking to integrate search functionality into their apps, whether it’s lexical or vector, without needing to manage another system. We got a lot of positive feedback about the automatic syncing between your collection and your vector search index, and are always looking to help folks be more productive in more ways on Atlas. There are also newcomers to MongoDB who are looking for a single system of record for their different indexing needs and find that they can build AI or search functionality into their apps faster on top of Atlas.

Hopefully that’s helpful context for starting to think about your use case on Atlas. Another user asked more specific questions about why us vs a dedicated vector db on the OpenAI forums a few months ago, that might be a helpful resources as well as you explore your options. I’m also happy to answer specific questions you might have as you deploy and query against your first vector index.