Spaces:
Sleeping
Sleeping
Download src/databases/test_mongo.py from ashishninehertz/ConvoBot: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/databases/test_mongo.py
- Command line
-
hf download hf://spaces/ashishninehertz/ConvoBot/src/databases/test_mongo.py
-
curl -L -o test_mongo.py https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/databases/test_mongo.py
209 Bytes
| from pymongo import MongoClient | |
| client = MongoClient("mongodb+srv://mehulxy21:bETCO7iP1hYl0924@amazondb.6ploi6k.mongodb.net/") | |
| db = client["rag_chat_history"] | |
| print("Databases:", client.list_database_names()) |