Merge branch 'main' into rag-metadata-support

This commit is contained in:
Francisco Arceo 2025-05-12 10:10:28 -06:00 committed by GitHub
commit 2e70782e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 8 deletions

View file

@ -106,7 +106,9 @@ class MemoryToolRuntimeImpl(ToolsProtocolPrivate, ToolRuntime, RAGToolRuntime):
query_config: RAGQueryConfig | None = None,
) -> RAGQueryResult:
if not vector_db_ids:
return RAGQueryResult(content=None)
raise ValueError(
"No vector DBs were provided to the knowledge search tool. Please provide at least one vector DB ID."
)
query_config = query_config or RAGQueryConfig()
query = await generate_rag_query(