| | |
| | | import java.util.Map; |
| | | |
| | | public class KnowledgeBaseUtil { |
| | | public static final String ACCESS_KEY_ID = "LTAI5tCyQRwhZ2eimxCFKbdq"; |
| | | public static final String ACCESS_KEY_SECRET = "fs1mEwLXg2j9XuKJsFoW8ThQbJFqHl"; |
| | | public static final String WORKSPACE_ID = "llm-4bcr09yfxlgz0b0t"; |
| | | public static final String DEFAULT_CATEGORY_ID = "cate_e6a47dd4d7cd4062a452eddccac76ad6_12629554"; |
| | | public static final String DEFAULT_KNOWLEDGE_ID = "9rxd16p56z"; |
| | | public static final String ACCESS_KEY_ID = "LTAI5tJdwRA8VukNC1Ngay2D"; |
| | | public static final String ACCESS_KEY_SECRET = "QjKETu9WzVJQ7D16Vj8oT4euWfuMTX"; |
| | | public static final String WORKSPACE_ID = "llm-rkslwa1gtpxv3pid"; |
| | | public static final String DEFAULT_CATEGORY_ID = "cate_51cc1279d3604d9190638c51e9d1c85c_14182530"; |
| | | public static final String DEFAULT_KNOWLEDGE_ID = "bxgapzq4kg"; |
| | | public static final String ENDPOINT = "bailian.cn-beijing.aliyuncs.com"; |
| | | |
| | | /** |
| | |
| | | String status = describeResponse.getBody().getData().getStatus(); |
| | | System.out.println("当前文件状态:" + status); |
| | | if ("PARSE_SUCCESS".equals(status)) { |
| | | state = 1; |
| | | state = 2; |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | String status = jobStatusResponse.getBody().getData().getStatus(); |
| | | System.out.println("当前索引任务状态:" + status); |
| | | if ("COMPLETED".equals(status)) { |
| | | state = 1; |
| | | state = 3; |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |