HQ_Project_EN / src /db_connections.py
1mpreccable's picture
added llm analyse for web page
e44b3be
raw
history blame contribute delete
313 Bytes
from pymongo import MongoClient
from pymongo.server_api import ServerApi
from dotenv import load_dotenv
import os
load_dotenv()
mongodb_uri = os.getenv("MONGODB_URI")
client = MongoClient(mongodb_uri, server_api=ServerApi('1'))
db = client.get_database("HQ-EN")
collection = db.get_collection("VectorDB")