Software Architecture

Figure 1 shows the software architecture of Index SDK. Table 1 describes the key modules in the architecture.

Figure 1 Software architecture
Table 1 Index SDK modules

Module

Description

Index SDK API layer

Provides C++ APIs compatible with Faiss. Upper-layer applications can add, query, delete, and train features.

Algorithm logic layer

Implements the logic process of retrieval algorithms, including brute-force retrieval, approximate retrieval, and attribute filtering algorithms.

Operator layer

Includes acceleration operators of retrieval algorithms executed on the Ascend platform, including distance calculation operators, top-K sorting operator, and mask attribute filtering operator.