fix(quick-qa): distinguish web and knowledge base retrieval in pipeline UI
Emit search_source metadata from RAG progress events so quick-answer steps, summaries, and IM labels no longer mislabel web-only results as knowledge base search.
This commit is contained in:
@@ -66,3 +66,13 @@ test('getRagPipelineStepTitle uses query-aware search labels', () => {
|
||||
})
|
||||
assert.equal(title, 'searching 讯飞开放平台')
|
||||
})
|
||||
|
||||
test('getRagPipelineStepTitle uses web labels when search_source is web', () => {
|
||||
const title = getRagPipelineStepTitle(t, {
|
||||
tool_name: 'knowledge_search',
|
||||
pending: false,
|
||||
success: true,
|
||||
arguments: { search_source: 'web' },
|
||||
})
|
||||
assert.equal(title, 'agentStream.toolStatus.webSearch')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user