API Changes

API changes in this section include addition, modification, deletion, and disuse statements. API changes include only code changes and do not include document optimization in terms of language, format, and link.
  • Addition: APIs are newly added in this version.
  • Modified: APIs are modified compared with the previous version.
  • Deletion: APIs are deleted in this version.
  • Disuse statement: APIs stop evolution since the version where disuse statements are made and will be deleted one year later.

Class Name/API Prototype

Change Type

Change Description

Version

Init of AscendIndexCluster

Modification

The default value of resourceSize of the Init API of AscendIndexCluster is changed to 128 MB.

6.0.RC2

AscendIndexBinaryFlat constructor

Modification

The usedFloat parameter is added to the AscendIndexBinaryFlat constructor to improve the performance of the search API that supports binary features to be imported and retrieval features of the float type.

6.0.RC2

search of AscendIndexBinaryFlat

Addition

Supports binary features to be imported and retrieval features of the float type.

6.0.RC2

AscendIndexInt8FlatConfig of AscendIndexInt8Flat

Modification

The value of resourceSize cannot exceed 16 × 1024 MB (16 × 1024 × 1024 × 1024 bytes).

6.0.RC3

AscendIndexInt8FlatConfig of AscendIndexInt8Flat

Modification

The value of resourceSize cannot exceed 16 × 1024 MB (16 × 1024 × 1024 × 1024 bytes).

6.0.RC3

Init of AscendIndexTS

Modification

Modified the restrictions on the maxFeatureRowCount parameter.

6.0.RC3

setPageSize of AscendIndexInt8Flat

Addition

The number of blocks that can be continuously computed at a time during search is set.

6.0.RC3

InitWithExtraVal of AscendIndexTS

Addition

Initialization function of an instance with extra attributes.

6.0.RC3

AddWithExtraVal of AscendIndexTS

Addition

Used to add extra attributes.

6.0.RC3

GetBaseByRangeWithExtraVal of AscendIndexTS

Addition

Used to query the database with additional attributes by range.

6.0.RC3

GetExtraValAttrByLabel of AscendIndexTS

Addition

Used to obtain the attribute of a specified label feature.

6.0.RC3

ExtraValAttr of AscendIndexTS

Addition

Extra attribute information

6.0.RC3

ExtraValFilter of AscendIndexTS

Addition

Extra attribute filter.

6.0.RC3

setRemoveFast of AscendIndexBinaryFlat

Addition

Used to set whether to quickly delete vectors from the database.

6.0.RC3

AscendIndexVStar

Addition

The AscendIndexVStar algorithm is added.

6.0.RC3

AscendIndexGreat

Addition

The AscendIndexGreat algorithm is added.

6.0.RC3

setSearchParams of AscendIndexIVFSQT

Addition

Used to set the parameters that affect search precision and performance.

6.0.RC3

SetSaveHostMemory of AscendIndexTS

Addition

Sets the mode for saving host memory.

6.0.0

add of AscendIndex

Addition

The function for importing FP16 data to the database is added to the Flat algorithm.

6.0.0

add_with_ids of AscendIndex

Addition

The function for importing FP16 data with IDs to the database is added to the Flat algorithm.

6.0.0

search of AscendIndex

Addition

The FP16 data retrieval function is added to the Flat algorithm.

6.0.0

AscendIndexFlatsearch_with_masks

Addition

The FP16 data retrieval function with mask is added to the Flat algorithm.

6.0.0

AscendIndexIVFSP of AscendIndexIVFSP

Addition

Constructor of the shared codebook.

6.0.0

saveAllData of AscendIndexIVFSP

Addition

Stores IVFSP data to the memory.

6.0.0

loadAllData of AscendIndexIVFSP

Addition

Restores IVFSP data from the memory.

6.0.0