MongoDB Motor
MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a
NoSQLdatabase product,MongoDButilizes JSON-like documents with optional schemas.Motor is a full-featured, non-blocking
MongoDBdriver for PythonasyncioandTornadoapplications.Motorpresents a coroutine-based API for non-blocking access to MongoDB.
Installation and Setupβ
We need to set up the configuratin parameters for the MongoDB database. See instructions here.
We also need to install motor python package.
pip install motor
Document Loaderβ
See a usage example.
from langchain_community.document_loaders.mongodb import MongodbLoader
API Reference:MongodbLoader