Commit d65ef99e authored by alex yao's avatar alex yao

fix:知识库检索

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