rag_api icon indicating copy to clipboard operation
rag_api copied to clipboard

Create a vector search index for Atlas MongoDB initially

Open waldemarschmalz opened this issue 1 year ago • 2 comments

Would it feasible to generate the vector search index upon startup? This approach may simplify deployments, as the API could establish a connection with MongoDB and instantiate the index.

Have I overlooked something or is there a specific reason this wouldn't be advisable?

waldemarschmalz avatar May 13 '24 09:05 waldemarschmalz

Should be possible, I’ve been researching what might be the best way.

danny-avila avatar May 13 '24 11:05 danny-avila

Just tried this, wasn't straightforward; also learned in the process that an M10+ cluster ($0.08/hr minimum) is required to create it programmatically.

Hopefully they change this in the future, especially when mongodb rolls vector search out for local installations

https://feedback.mongodb.com/forums/924868-atlas-search/suggestions/38761267-be-able-to-create-search-indexes-from-mongo-shell

danny-avila avatar May 13 '24 12:05 danny-avila