修复对话背景信息配置
This commit is contained in:
@@ -222,12 +222,13 @@ def create_structured_retrieval_tool(workspace_dir):
|
||||
indent=2
|
||||
)
|
||||
|
||||
json_path = json_path.replace(workspace_dir, "")
|
||||
# ── 6. 只回傳摘要 ──────────────────────────────────────────────
|
||||
return {
|
||||
"status": "success",
|
||||
"items_count": len(top_items),
|
||||
"json_path": json_path,
|
||||
"summary": f"已提取 {len(top_items)} 個高相關片段,儲存於 {json_path}"
|
||||
"summary": f"{len(top_items)} highly relevant fragments have been extracted and stored in {json_path}"
|
||||
}
|
||||
|
||||
return structured_retrieval
|
||||
|
||||
Reference in New Issue
Block a user