Skip to main content

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 Python asyncio and Tornado 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

Was this page helpful?


You can also leave detailed feedback on GitHub.