We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f568b commit 4f7f1e1Copy full SHA for 4f7f1e1
1 file changed
astrbot/core/knowledge_base/retrieval/manager.py
@@ -87,6 +87,9 @@ async def retrieve(
87
List[RetrievalResult]: 检索结果列表
88
89
"""
90
+ if not isinstance(query, str) or not query.strip():
91
+ return []
92
+
93
if not kb_ids:
94
return []
95
0 commit comments