We are currently doing single inserts into mongoDB using pymongo, doing those inserts in batch (or doing async with the other driver we have) will significantly improve performance
A similar exercise was covered by Pinecone in their blog (https://www.pinecone.io/blog/langchain-pinecone-upsert-faster)
- related to
-
PYTHON-4222 [langchain] Increase DEFAULT_INSERT_BATCH_SIZE to 100,000
-
- Closed
-