索引参数#

class langchain_community.vectorstores.tencentvectordb.IndexParams(dimension: int, shard: int = 1, replicas: int = 2, index_type: str = 'HNSW', metric_type: str = 'L2', params: Dict | None = None)[source]#

腾讯向量数据库索引参数。

详情请参阅以下文档: https://cloud.tencent.com/document/product/1709/95826

方法

__init__(dimension[, shard, replicas, ...])

Parameters:
  • 维度 (整数)

  • 分片 (整数)

  • replicas (int)

  • index_type (str)

  • metric_type (str)

  • params (可选[字典])

__init__(dimension: int, shard: int = 1, replicas: int = 2, index_type: str = 'HNSW', metric_type: str = 'L2', params: Dict | None = None)[来源]#
Parameters:
  • 维度 (整数)

  • shard (int)

  • replicas (int)

  • index_type (str)

  • metric_type (str)

  • params (Dict | None)