public class CreateVectorIndexRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
collection
This parameter is required.
|
String |
DBInstanceId
This parameter is required.
|
Integer |
dimension
This parameter is required.
|
Integer |
externalStorage
Specifies whether to use the memory mapping technology to create HNSW indexes.
|
Integer |
hnswM
The maximum number of neighbors for the Hierarchical Navigable Small World (HNSW) algorithm.
|
String |
managerAccount
This parameter is required.
|
String |
managerAccountPassword
This parameter is required.
|
String |
metrics
The method that is used to create vector indexes.Valid values:
l2: Euclidean distance.
|
String |
namespace
example:
mynamespace
|
Long |
ownerId |
Integer |
pqEnable
Specifies whether to enable the product quantization (PQ) feature for index acceleration.
|
String |
regionId
This parameter is required.
|
| 构造器和说明 |
|---|
CreateVectorIndexRequest() |
@NameInMap(value="Collection") public String collection
This parameter is required.
example:document
@NameInMap(value="DBInstanceId") public String DBInstanceId
This parameter is required.
example:gp-xxxxxxxxx
@NameInMap(value="Dimension") public Integer dimension
This parameter is required.
example:1024
@NameInMap(value="ExternalStorage") public Integer externalStorage
Specifies whether to use the memory mapping technology to create HNSW indexes. Valid values: 0 and 1. Default value: 0. We recommend that you set the value to 1 in scenarios that require upload speed but not data deletion.
0: uses segmented paging storage to create indexes. This method uses the shared buffer of PostgreSQL for caching and supports the delete and update operations.
1: uses the memory mapping technology to create indexes. This method does not support the delete or update operation.
0
@NameInMap(value="HnswM") public Integer hnswM
The maximum number of neighbors for the Hierarchical Navigable Small World (HNSW) algorithm. Valid values: 1 to 1000. In most cases, this parameter is automatically configured based on the value of the Dimension parameter. You do not need to configure this parameter.
We recommend that you configure this parameter based on the value of the Dimension parameter.
If you set Dimension to a value less than or equal to 384, set the value of HnswM to 16.
If you set Dimension to a value greater than 384 and less than or equal to 768, set the value of HnswM to 32.
If you set Dimension to a value greater than 768 and less than or equal to 1024, set the value of HnswM to 64.
If you set Dimension to a value greater than 1024, set the value of HnswM to 128.
64
@NameInMap(value="ManagerAccount") public String managerAccount
This parameter is required.
example:testaccount
@NameInMap(value="ManagerAccountPassword") public String managerAccountPassword
This parameter is required.
example:testpassword
@NameInMap(value="Metrics") public String metrics
The method that is used to create vector indexes.Valid values:
l2: Euclidean distance.
ip: inner product distance.
cosine: cosine similarity.
cosine
@NameInMap(value="Namespace") public String namespace
mynamespace
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PqEnable") public Integer pqEnable
Specifies whether to enable the product quantization (PQ) feature for index acceleration. We recommend that you enable this feature for more than 500,000 rows of data. Valid values:
1
@NameInMap(value="RegionId") public String regionId
This parameter is required.
example:cn-hangzhou
public static CreateVectorIndexRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateVectorIndexRequest setCollection(String collection)
public String getCollection()
public CreateVectorIndexRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public CreateVectorIndexRequest setDimension(Integer dimension)
public Integer getDimension()
public CreateVectorIndexRequest setExternalStorage(Integer externalStorage)
public Integer getExternalStorage()
public CreateVectorIndexRequest setHnswM(Integer hnswM)
public Integer getHnswM()
public CreateVectorIndexRequest setManagerAccount(String managerAccount)
public String getManagerAccount()
public CreateVectorIndexRequest setManagerAccountPassword(String managerAccountPassword)
public String getManagerAccountPassword()
public CreateVectorIndexRequest setMetrics(String metrics)
public String getMetrics()
public CreateVectorIndexRequest setNamespace(String namespace)
public String getNamespace()
public CreateVectorIndexRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateVectorIndexRequest setPqEnable(Integer pqEnable)
public Integer getPqEnable()
public CreateVectorIndexRequest setRegionId(String regionId)
public String getRegionId()
Copyright © 2024. All rights reserved.