feat: configure local customer service knowledge runtime

This commit is contained in:
张胜宇
2026-09-11 10:13:48 +08:00
parent bc2f521c2e
commit c76b763101
12 changed files with 23 additions and 9 deletions
@@ -26,6 +26,10 @@ class MilvusKnowledgeClient:
raise RecoverableAgentError("知识检索参数无效")
try:
client = await self._ensure_client()
# Lite 重启后集合默认未加载;远程 Milvus 对重复加载保持幂等。
load_collection = getattr(client, "load_collection", None)
if load_collection is not None:
await load_collection(collection_name=collection)
batches = await client.search(
collection_name=collection,
data=[vector],