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

Principles

Milvus verifies the index algorithm used before each query, which is done in INDEX_NODE. Only when the verification is successful, QUERY_NODE invokes the interface in the corresponding index algorithm to perform query-related operations. The operations on the preceding two nodes are implemented with Go. Figure 1 shows the query structure of Milvus.

Figure 1 Milvus query architecture

Knowhere is the key component of the index algorithm. This component is mainly implemented using C++. It links the core index algorithm (such as Faiss or HNSW) and CGO interface for invoking.

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

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