mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
refactor: knowledge as msg
This commit is contained in:
parent
8fe0d50ecc
commit
d305d89f6c
@ -78,10 +78,6 @@ function composeMsgs(messages: CoreMessage[], knowledge: KnowledgeItem[], questi
|
||||
const msgs = [...messages, ...BuildMsgsFromKnowledge(knowledge)];
|
||||
|
||||
const userContent = `
|
||||
${knowledge.length>0 ? `
|
||||
Based on what you learned from our previous messages, what is your answer to the question below?
|
||||
`: ''}
|
||||
|
||||
${question}
|
||||
|
||||
${finalAnswerPIP ? `
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user