我要评分
获取效率
正确性
完整性
易理解

Principles

Before each query, Milvus verifies the index algorithm used. This process is performed in INDEX_NODE. Only when the verification is successful, QUERY_NODE invokes the interface in the corresponding index algorithm to perform query operations. The operations on the preceding two nodes are implemented in Go. Figure 1 shows the query structure of Milvus.

Figure 1 Milvus query architecture

Knowhere is the key component of index algorithms. This component is primarily implemented using C++. It links to core index algorithms (such as Faiss and HNSW) for invocation via CGO interfaces.

In conclusion, integrating the KScaNN algorithm into Milvus takes the following two steps:

  1. Use Go to add the verification of the KScaNN algorithm to INDEX_NODE.
  2. Use C++ to implement the connection to KScaNN in the Knowhere component.