Commit d65ef99e authored by alex yao's avatar alex yao

fix:知识库检索

parent 2d5571da
......@@ -527,11 +527,11 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
knowledgeIds.add(knowledgeDocumentEntity.getKnowledgeId());
}
Object content = messages.get(messages.size() - 1);
Object content = messages.get(messages.size() - 1).getContent();
String query = "";
if (content instanceof List) {
query = ((List<MultiContent>) content).get(0).getText();
query = ((List<HashMap>) content).get(0).get("text").toString();
} else {
query = content.toString();
}
......
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