same function in my response would work. Your data list will only have the new document info that you want to add. Basically a list with one Document instead of going through the for loop. The MongoDBAtlasVectorSearch.from_documents function will add the new Document to the collection. It won’t overwrite anything.
1 Like