fix(knowledge_fs): format research threshold metrics

This commit is contained in:
Stephen Zhou 2026-08-25 17:48:28 +08:00
parent e8a8a8fda2
commit 644e8f99bc
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,7 @@
## What changed
- Updated the score-threshold retrieval test plan to use the supported `direct` research intent.
- Applied the repository formatter's required layout to the associated retrieval metric expression.
## Why
@ -12,6 +13,7 @@
- `pnpm --filter @knowledge/api typecheck`
- `pnpm --filter @knowledge/api test -- research-evidence-retrieval.test.ts`
- `pnpm lint:backend`
## Risks and follow-up

View File

@ -831,9 +831,7 @@ function combineResearchMetrics({
researchStrategyVersion: "research-evidence-v3",
researchSufficiencyReached: sufficiencyReached,
researchSupplementalSearches: supplementalSearches,
...(scoreThresholdFilteredCandidates === undefined
? {}
: { scoreThresholdFilteredCandidates }),
...(scoreThresholdFilteredCandidates === undefined ? {} : { scoreThresholdFilteredCandidates }),
totalMs,
};
}