提交 f5f0b9b2 作者: chenshiqiang

add scoreThreshold as param

上级 995c944e
......@@ -169,6 +169,7 @@ public class KnowledgeController {
@PostMapping(value = "/IntelligentQa")
public Result<?> intelligentQa(@RequestBody IntelligentQaParam intelligentQaParam) throws IOException {
JSONObject params = new JSONObject();
params.put("score_threshold",intelligentQaParam.getScoreThreshold() );
params.put("question", intelligentQaParam.getQuestion());
params.put("knowledge_base_id", intelligentQaParam.getKbKnowledgeIds().split(","));
String result = HttpUtil.doPost(intelligentQaUrl, params, 120000);
......
......@@ -15,5 +15,6 @@ public class IntelligentQaParam {
*/
private String question;
private String kbKnowledgeIds;
private Integer scoreThreshold=700;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论