华为云FLEXUS云服务_FLEXUS企业搜索服务-创建知识库:请求示例

时间:2024-08-27 15:25:56

请求示例

/v1/koosearch/repos

{
  "name" : "知识库-name",
  "language_id" : "zh",
  "detail" : "",
  "tags" : [ ],
  "file_extract" : {
    "parse_conf" : {
      "ocr_enabled" : true,
      "image_enabled" : false,
      "header_footer_enabled" : false,
      "catalog_enabled" : false
    },
    "split_conf" : {
      "split_mode" : "AUTO"
    }
  },
  "extend_config" : {
    "extend_context" : false,
    "effective_input_length" : 3
  },
  "embedding_model" : "pangu_embedding_dev",
  "rerank_model" : "pangu_rerank_dev",
  "search_plan_model" : "search_plan_model",
  "pangu_nlp_model" : "pangu-7b",
  "cache_enabled" : false,
  "answer_reference_enabled" : false,
  "answer_image_reference_enabled" : false
}
support.huaweicloud.com/api-flexussearchservice/CreateKnowledgeRepo.html