Polish project documentation and runtime config

This commit is contained in:
2026-06-09 10:22:59 +08:00
parent 5f061295d8
commit 0594fc9f8c
43 changed files with 1001 additions and 97 deletions

View File

@@ -16,10 +16,11 @@ from falkordb import FalkorDB
from psycopg.rows import dict_row
from psycopg.types.json import Jsonb
from common_paths import PROJECT_ROOT, TRAVEL_AGENCY_SOURCE_ROOT, TRAVEL_KG_EXPORT_ROOT
SOURCE_DIR = Path("/Users/xuexue/Downloads/旅行社业务")
OUT_DIR = Path("/Users/xuexue/Downloads/图谱数据/旅行社项目入库")
SCHEMA_DIR = Path("/Users/xuexue/new2/schema搭建/travel_agency_business")
SOURCE_DIR = TRAVEL_AGENCY_SOURCE_ROOT
OUT_DIR = TRAVEL_KG_EXPORT_ROOT / "旅行社项目入库"
SCHEMA_DIR = PROJECT_ROOT / "schema搭建/travel_agency_business"
DB_URL = "postgresql://admin:password@localhost:5433/kg_admin"
DB_SCHEMA = "kg_admin_new2"
TENANT_ID = "travel_agency"
@@ -1829,7 +1830,7 @@ def write_outputs(builder: KGBuilder, schema: dict[str, Any], qa: list[dict[str,
f"生成时间:{datetime.now().strftime('%Y-%m-%d %H:%M:%S')}",
"",
"## 数据来源",
"- `/Users/xuexue/Downloads/旅行社业务/2026年新行程打包`:既有线路产品、每日行程、费用包含/不含、自费项、风险提示。",
"- `TRAVEL_AGENCY_SOURCE_ROOT/2026年新行程打包`:既有线路产品、每日行程、费用包含/不含、自费项、风险提示。",
"- `滨海国旅2-8人拼小团计划...xlsx`2-8人拼小团团期、房型、成人/儿童/单房差、景区小交通、证件退费政策。",
"- `20-25人独立成团.xlsx`独立成团产品、季节价、20/25人报价、泰语导游和2+1大巴服务。",
"- `住宿资源库(四钻及以上).xlsx`、`餐厅资源库.xlsx`:酒店/餐厅资源、区域、价格、适用场景。",