mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
refactor: knowledge as msg
This commit is contained in:
@@ -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 ? `
|
||||
|
||||
Reference in New Issue
Block a user