fix: 修复 txt 索引 content_list 变量未定义 + 简化示例对齐
GraphRAG CI/CD / build-and-deploy (push) Successful in 5m12s

- txt 流程中 content_list 不存在导致 stats 阶段崩溃
- Few-shot 示例简化,使用短句精确匹配避免对齐失败
This commit is contained in:
2026-06-18 17:10:05 +08:00
parent 71676dba9e
commit 005fe504ad
2 changed files with 5 additions and 25 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ def _run_pipeline(job_id: str) -> None:
elapsed = round(time.time() - start_time, 1)
stats = {
"blocks": len(content_list),
"blocks": total_pages if ext in ("txt",) else len(content_list),
"block_types": block_types,
"pages": total_pages,
"raw_extractions": len(records),