mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 08:48:10 +08:00
fix(knowledge_fs): use supported research intent in threshold test
This commit is contained in:
parent
1a7a90a307
commit
a562d9517b
@ -0,0 +1,18 @@
|
||||
# Research score-threshold test intent
|
||||
|
||||
## What changed
|
||||
|
||||
- Updated the score-threshold retrieval test plan to use the supported `direct` research intent.
|
||||
|
||||
## Why
|
||||
|
||||
- The test fixture used the removed `lookup` intent, causing the KnowledgeFS API TypeScript gate to fail.
|
||||
|
||||
## Verification
|
||||
|
||||
- `pnpm --filter @knowledge/api typecheck`
|
||||
- `pnpm --filter @knowledge/api test -- research-evidence-retrieval.test.ts`
|
||||
|
||||
## Risks and follow-up
|
||||
|
||||
- No production behavior changed; this only aligns the test fixture with the production query-plan contract.
|
||||
@ -183,7 +183,7 @@ describe("Research evidence retrieval V3", () => {
|
||||
}),
|
||||
plan: async () => ({
|
||||
evidenceDimensions: ["renewal"],
|
||||
intent: "lookup" as const,
|
||||
intent: "direct" as const,
|
||||
modelCalled: true,
|
||||
subqueries: [],
|
||||
useGraph: false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user