|
|
|
@ -158,7 +158,7 @@ public class MaxKbImpl {
|
|
|
|
|
* @param documentId 文档id
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static JSONObject generateQuestion(String zskId, String modelId, String documentId) {
|
|
|
|
|
public static JSONObject genQuestion(String zskId, String modelId, String documentId) {
|
|
|
|
|
String authCode = MaxKbImpl.getAuthorization();
|
|
|
|
|
String url = baseUrl + "/api/dataset/" + zskId + "/document/batch_generate_related";
|
|
|
|
|
JSONObject jo = new JSONObject();
|
|
|
|
@ -168,9 +168,6 @@ public class MaxKbImpl {
|
|
|
|
|
list.add(documentId);
|
|
|
|
|
jo.put("document_id_list", list);
|
|
|
|
|
|
|
|
|
|
System.out.println("modelId=" + modelId);
|
|
|
|
|
System.out.println(jo.toString());
|
|
|
|
|
|
|
|
|
|
HttpResponse response = HttpRequest.put(url)
|
|
|
|
|
.header("Accept", "application/json, text/plain, */*")
|
|
|
|
|
.header("Accept-Encoding", "gzip,deflate")
|
|
|
|
|