mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 00:31:19 +08:00
fix(knowledge_fs): format research threshold metrics
This commit is contained in:
parent
e8a8a8fda2
commit
644e8f99bc
@ -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
|
||||
|
||||
|
||||
@ -831,9 +831,7 @@ function combineResearchMetrics({
|
||||
researchStrategyVersion: "research-evidence-v3",
|
||||
researchSufficiencyReached: sufficiencyReached,
|
||||
researchSupplementalSearches: supplementalSearches,
|
||||
...(scoreThresholdFilteredCandidates === undefined
|
||||
? {}
|
||||
: { scoreThresholdFilteredCandidates }),
|
||||
...(scoreThresholdFilteredCandidates === undefined ? {} : { scoreThresholdFilteredCandidates }),
|
||||
totalMs,
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user