From a7fbbfd6f974631eadebc6effca8ce7982592786 Mon Sep 17 00:00:00 2001
From: ax_rd <ax_rd@aisim.cn>
Date: Thu, 03 Sep 2026 12:51:40 +0800
Subject: [PATCH] fix: explore 段落命中两级回退(原词→展开词)+ expandKeywords 去重 + HardBudget 接入

---
 cmd/explore.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cmd/explore.go b/cmd/explore.go
index 84152d6..eb808c3 100644
--- a/cmd/explore.go
+++ b/cmd/explore.go
@@ -78,8 +78,9 @@
 	if topN <= 0 && cfg.Explore.TopN > 0 {
 		topN = cfg.Explore.TopN
 	}
+	hardBudget := cfg.Explore.HardBudget // 0 = Explore 内部用缺省 32000
 
-	res, err := search.Explore(store, allKeywords, search.ExploreOptions{Budget: budget, TopN: topN})
+	res, err := search.Explore(store, allKeywords, search.ExploreOptions{Budget: budget, TopN: topN, HardBudget: hardBudget})
 	if err != nil {
 		return fmt.Errorf("explore 失败: %w", err)
 	}

--
Gitblit v1.10.0