提交 c764dd30 作者: chenshiqiang

add param size in IntelligentQa

上级 11243ede
...@@ -177,6 +177,7 @@ public class KnowledgeController { ...@@ -177,6 +177,7 @@ public class KnowledgeController {
params.put("score_threshold", intelligentQaParam.getScoreThreshold()); params.put("score_threshold", intelligentQaParam.getScoreThreshold());
params.put("question", intelligentQaParam.getQuestion()); params.put("question", intelligentQaParam.getQuestion());
params.put("knowledge_base_id", intelligentQaParam.getKbKnowledgeIds().split(",")); params.put("knowledge_base_id", intelligentQaParam.getKbKnowledgeIds().split(","));
params.put("size", intelligentQaParam.getSize());
String result = HttpUtil.doPost(intelligentQaUrl, params, 120000); String result = HttpUtil.doPost(intelligentQaUrl, params, 120000);
if (!result.isEmpty()) { if (!result.isEmpty()) {
JSONObject jsonObject = JSON.parseObject(result); JSONObject jsonObject = JSON.parseObject(result);
......
...@@ -16,5 +16,6 @@ public class IntelligentQaParam { ...@@ -16,5 +16,6 @@ public class IntelligentQaParam {
private String question; private String question;
private String kbKnowledgeIds; private String kbKnowledgeIds;
private Integer scoreThreshold=700; private Integer scoreThreshold=700;
private Integer size=20;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论