# Can MongoDB be used as vector database?

**URL:** <https://forums.percona.com/t/can-mongodb-be-used-as-vector-database/31130>\
**Category:** MongoDB\
**Tags:** mongodb\
**Created:** [June 21, 2024, 4:23am UTC](https://forums.percona.com/t/can-mongodb-be-used-as-vector-database/31130 "2024-06-21T04:23:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleksandr\_Gamaniuk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/oleksandr_gamaniuk/32/16976_2.png) [@Oleksandr\_Gamaniuk](https://forums.percona.com/u/Oleksandr_Gamaniuk)\
**Post date:** [June 21, 2024, 4:23am UTC](https://forums.percona.com/t/can-mongodb-be-used-as-vector-database/31130/1 "2024-06-21T04:23:59Z")

</div>

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](https://instafill.ai/) (Retrieval Augmented Generation) as well. For the RAG, we use [Qdrant Cloud](https://qdrant.tech/), 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?

---

<div class="post-metadata">

**Author:** ![Shafiq\_Ahmad](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shafiq_ahmad/32/15629_2.png) [@Shafiq\_Ahmad](https://forums.percona.com/u/Shafiq_Ahmad)\
**Post date:** [June 21, 2024, 7:28am UTC](https://forums.percona.com/t/can-mongodb-be-used-as-vector-database/31130/2 "2024-06-21T07:28:46Z")

</div>

Long-time MongoDB user (since 2012) wants to migrate RAG application’s vector data from Qdrant to MongoDB (self-hosted or cloud). They’re unsure if MongoDB is suitable for primary vector storage and search.
