MongoDB
Overview
Usage
1. Make MongoDB Instance with Your MongoDB
from RAGchain.DB import MongoDB
mongo_db = MongoDB(
mongo_url="mongodb://localhost:27017", # replace with your MongoDB server URL
db_name="my_database", # replace with your database name
collection_name="my_collection" # replace with your collection name
)2. Use create_or_load
mongo_db.create_or_load()3. Save Passage
4. Fetch Data
5. Search Data
Last updated