feat: 下沉知识库检索编排能力

- 新增 rag retrieval 核心协议、RRF 融合与相关度归一化

- 支持关键词检索按 knowledgeId 过滤并补充 ES/Lucene 单测

- 扩展 KnowledgeNode 检索模式与 Milvus 检索参数透传
This commit is contained in:
2026-04-05 20:22:59 +08:00
parent 941995d1b8
commit f57544daa2
28 changed files with 1309 additions and 34 deletions

View File

@@ -535,4 +535,15 @@ public class MilvusVectorStore extends DocumentStore {
public MilvusClientV2 getClient() {
return client;
}
public boolean checkAvailable() {
try {
return client.hasCollection(HasCollectionReq.builder()
.collectionName("__milvus_boot_probe__")
.build()) != null;
} catch (Exception e) {
LOG.warn("Milvus availability check failed. message={}", e.getMessage());
return false;
}
}
}