数据工坊 DWR-创建索引:请求示例

时间:2025-06-19 20:50:40

请求示例

  • 向量索引示例

    {
      "store_name" : "store_test",
      "collection_name" : "collection_test",
      "index_params" : {
        "index_name" : "vector_index",
        "field_name" : "vector",
        "metric_type" : "L2",
        "params" : {
          "index_type" : "HANNS",
          "dim" : 256,
          "max_degree" : 56,
          "search_list_size" : 200,
          "pq_code_buget_gb_ratio" : 0.125,
          "search_cache_budget_gb_ratio" : 0.125,
          "beamwidth_ratio" : 4
        }
      }
    }
  • 标量索引示例

    {
      "store_name" : "store_test",
      "collection_name" : "collection_test",
      "index_params" : {
        "index_name" : "scalar_index",
        "field_name" : "id",
        "metric_type" : "L2",
        "params" : {
          "index_type" : "INVERTED"
        }
      }
    }
support.huaweicloud.com/api-lms/CreateIndex.html