Could RAG API work with other vector databases? #2304
Replies: 4 comments 8 replies
-
Yes it could. To truly have one database, you would have to use Atlas in the first place, and to benefit from vectors, some configurations need to be applied that I'm not sure could be applied programmatically. The local MongoDB Atlas features seem to be only for development purposes: https://www.mongodb.com/blog/post/introducing-local-development-experience-atlas-search-vector-search-atlas-cli Meilisearch also supports vectors but would require a bit of a refactor since it works quite differently from psql/pgvector Cassandra seems great, too. But in my opinion, for most users especially those using a local mongodb setup, this is always going to be a double database integration, no matter the additional support we add. I'm also much more keen to add PGVecto.rs and supabase support before anything else, and adding additional vector stores is not a priority at the moment. |
Beta Was this translation helpful? Give feedback.
-
@danny-avila as I look into implementing the My questions are
|
Beta Was this translation helpful? Give feedback.
-
Would using Ferretdb be an alternative to consolidate the databases somewhat? They say it "allows you to use MongoDB drivers seamlessly with PostgreSQL as the database backend". I think it's pretty fast and has a decent reputation too. |
Beta Was this translation helpful? Give feedback.
-
@danny-avila danny-avila/rag_api#21 is now ready. Please take a look. |
Beta Was this translation helpful? Give feedback.
-
From what I can read from https://github.com/danny-avila/rag_api, only PostgreSQL/pgvector is supported.
I wonder if we could support other vector databases. Particularly, since LibreChat already uses MongoDB and there are many recommendations to use the Atlas managed MongoDB such as https://github.com/danny-avila/LibreChat/blob/main/docs/install/configuration/mongodb.md. I recently found out that Altas has a vector search feature https://www.mongodb.com/products/platform/atlas-vector-search and we've been using it for a recommendation system nicely. The appeal here is to have a single database system rather than two in order to run LibreChat. What do you guys think?
Additionally, I am very intereted in the Cassandra vector features for very serious workloads: https://cassandra.apache.org/doc/latest/cassandra/vector-search/concepts.html.
Beta Was this translation helpful? Give feedback.
All reactions