MongoDB Motor
MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a
NoSQL
database product,MongoDB
utilizes JSON-like documents with optional schemas.Motor is a full-featured, non-blocking
MongoDB
driver for Pythonasyncio
andTornado
applications.Motor
presents 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