Quản lý dữ liệu (readiness & chất lượng)

VuaNem Forecasting Pipeline

2026-07-29 11:09
Báo cáoquản lý dữ liệu (readiness & chất lượng)
Dùng đểĐảm bảo mọi dữ liệu liên quan đã được lấy, chuẩn hóa và kiểm định sẵn sàng trước khi pipeline chạy — cổng kiểm soát đầu vào của toàn hệ thống.
Câu hỏi trả lờiDM
Tạo lúc2026-07-29 11:09
Dữ liệu đến ngày2026-07-29
Phương pháp tính (kỹ thuật)
Chế độ check (thụ động): đối chiếu trạng thái file nguồn/master/validation với chính sách trong data_management.yaml (required/optional, min_rows, SLA độ mới) để ra verdict READY/DEGRADED/BLOCKED và xuất data_readiness.json + báo cáo HTML. Chế độ prepare (chủ động, chạy qua run_pipeline.py --prepare-data hoặc trực tiếp): probe nguồn với retry + vòng chờ, chạy m0, kiểm định, rồi mới cho pipeline chạy.
sizing dung lượngprobe nguồnm0 chuẩn hóavalidation gatereadiness verdict

Kết luận

Trạng thái dữ liệu: DEGRADED
Pipeline chạy được nhưng có cảnh báo (nguồn cũ / thiếu dữ liệu tùy chọn / lỗi validation nhẹ).
Nguồn dùng được
7
tổng 8 nguồn
Thực thể bắt buộc OK
6
tổng 6 bắt buộc
Lỗi validation
0
Vòng chờ đã dùng
0
attempts=3/nguồn

Dung lượng & kế hoạch nạp dữ liệu (sizing)

Tổng rows ước tính
302
Tổng dung lượng
13.4 KB
Thời gian nạp ~
0s
theo throughput cấu hình trong data_management.yaml → sizing
NguồnChế độConnectorRows ước tínhDung lượngThời gian nạp ~Ghi chú
actual_salesfilefile1808.0 KB0sincremental từ 2026-07-29
sales_targetsfilefile18650 B0s
inventoryfilefile14487 B0s
leadtimefilefile12492 B0s
sku_metadatafilefile6324 B0s
sales_historyfilefile723.4 KB0sincremental từ 2026-07-01
chat_messagesfilefilekhông rõthiếu file
crm_interactionsfilefile0154 B
Kế hoạch nạp (history windows + incremental patching)
Full reload chỉ khi chạy m0 --full (hoặc ABN_FULL_RELOAD=1). Watermark lưu tại data/{company}/state/master_watermarks.json.
Thực thểChính sáchChi tiết
sales_transactionsincrementalupsert theo khóa ['date', 'sku_id', 'channel'] · watermark date · hiện tại: 2026-07-29 · overlap 3 ngày
sales_history_monthlyincrementalupsert theo khóa ['sku_id', 'channel', 'date'] · watermark date · hiện tại: 2026-07-01 · overlap 3 ngày

Trạng thái nguồn (fetch)

NguồnChế độAPIFileDùng
actual_salesfile180 dòng
0.0h trước
file
sales_targetsfile18 dòng
0.0h trước
file
inventoryfile14 dòng
0.0h trước
file
leadtimefile12 dòng
0.0h trước
file
sku_metadatafile6 dòng
0.0h trước
file
sales_historyfile72 dòng
0.0h trước
file
chat_messagesfilekhông cónone
crm_interactionsfile0 dòng
0.0h trước
file

Readiness theo thực thể

Thực thểVai tròSố dòngTối thiểuNguồnTrạng tháiGhi chú
sales_transactionsrequired18030actual_salesOK
sales_history_monthlyrequired7212sales_historyOK
inventory_snapshotsrequired111inventoryOK
leadtime_moqrequired121leadtimeOK
sku_catalogrequired61sku_metadataOK
sales_targetsrequired181sales_targetsOK
customer_profilesoptional61customer_profilesOK
customer_matched_productsoptional61customer_matched_productsOK
crm_interactionsoptional01crm_interactionsCảnh báochỉ 0 dòng (< min 1)
customer_segmentsoptional61OK
customer_criteria_tagsoptional61OK
customer_purchasesoptional01Cảnh báokhông có dữ liệu
purchase_segmentsoptional3011OK
campaign_recommendationsoptional91OK
product_affinityoptional231OK