|
|
@@ -474,6 +474,8 @@ class KnowledgeProcessor:
|
|
|
limit=10
|
|
|
)
|
|
|
candidates = [c for c in candidates if c["id"] != kid]
|
|
|
+ # 只保留相似度 >= 0.75 的候选,低于阈值的 task 语义差异太大,直接视为 none
|
|
|
+ candidates = [c for c in candidates if c.get("score", 0) >= 0.75]
|
|
|
|
|
|
if not candidates:
|
|
|
milvus_store.update(kid, {"status": "approved", "updated_at": now})
|