mirror of
https://github.com/microsoft/graphrag.git
synced 2025-08-06 07:43:06 +00:00

* unified search app added to graphrag repository * ignore print statements * update words for unified-search * fix lint errors * fix lint error * fix module name --------- Co-authored-by: Gaudy Blanco <gaudy-microsoft@MacBook-Pro-m4-Gaudy-For-Work.local>
21 lines
549 B
Python
21 lines
549 B
Python
# Copyright (c) 2024 Microsoft Corporation.
|
|
# Licensed under the MIT License
|
|
|
|
"""Data sources default module."""
|
|
|
|
import os
|
|
|
|
container_name = "data"
|
|
blob_container_name = os.getenv("BLOB_CONTAINER_NAME", container_name)
|
|
blob_account_name = os.getenv("BLOB_ACCOUNT_NAME")
|
|
|
|
local_data_root = os.getenv("DATA_ROOT")
|
|
|
|
LISTING_FILE = "listing.json"
|
|
|
|
if local_data_root is None and blob_account_name is None:
|
|
error_message = (
|
|
"Either DATA_ROOT or BLOB_ACCOUNT_NAME environment variable must be set."
|
|
)
|
|
raise ValueError(error_message)
|