"""Configurable data paths (local `data/` or Hugging Face persistent `/data`).""" from __future__ import annotations import os from pathlib import Path def get_data_dir() -> Path: return Path(os.environ.get("DATA_DIR", "data")) def docs_root() -> Path: return get_data_dir() / "enterprise_accounting_docs" def index_path() -> Path: return get_data_dir() / "accounts_docs.index" def metadata_path() -> Path: return get_data_dir() / "metadata.json" def lora_path() -> Path: return Path(os.environ.get("LORA_PATH", "models/codet5_lora_finetuned"))