Commit a640d66b authored by alex yao's avatar alex yao

feat:优化知识库提示词

parent a8c2eb89
......@@ -651,10 +651,9 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
StringBuilder knowledgePromptBuilder = new StringBuilder("");
if (CollectionUtils.isNotEmpty(knowledgeContentResults)) {
for (int i = 1; i <= knowledgeContentResults.size(); i++) {
knowledgePromptBuilder.append("<Chunk ").append(i).append(">").append(":<")
knowledgePromptBuilder.append("### Chunk ").append(i).append(":")
.append(StringUtils.LF)
.append(knowledgeContentResults.get(i - 1).getContent())
.append(">")
.append(StringUtils.LF);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment