feat(rag): dense+BM25 hybrid on MilvusClientV2, drop SDK path

Replace legacy MilvusServiceClient knowledge search/write with a single
MilvusClientV2 hybrid store (BM25 function + dense ANN + RRFRanker).
Use collection biz_hybrid and require knowledge reindex.
This commit is contained in:
zhuyongxin
2026-07-27 18:49:20 +08:00
parent 376ad0c241
commit f035538531
22 changed files with 813 additions and 936 deletions
@@ -8,9 +8,14 @@ public class MilvusConstants {
public static final String MILVUS_DB_NAME = "default";
/**
* Milvus 集合名称
* Legacy collection name (pre hybrid). Knowledge path uses milvus.collection (default biz_hybrid).
*/
public static final String MILVUS_COLLECTION_NAME = "biz";
/**
* Default hybrid dense+BM25 collection.
*/
public static final String MILVUS_HYBRID_COLLECTION_NAME = "biz_hybrid";
/**
* 向量维度(豆包 embedding 模型的维度)