Spaces:
Paused
Paused
File size: 438 Bytes
6ab28e5 227586c 9bc4a6c 6ab28e5 9bc4a6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import os
SAAS = False
def get_db_config():
url = os.environ["QDRANT_URL"]
api_key = os.environ["QDRANT_API_KEY"]
collection_name = "nvdajp-book"
return url, api_key, collection_name
def get_local_db_congin():
url = "localhost"
# api_key = os.environ["QDRANT_API_KEY"]
collection_name = "nvdajp-book"
return url, None, collection_name
DB_CONFIG = get_db_config() if SAAS else get_local_db_congin()
|