fix: Resolve issue with multi-user mode search
This commit is contained in:
parent
6bc9b1d482
commit
400095d76d
1 changed files with 0 additions and 7 deletions
|
|
@ -179,13 +179,6 @@ async def search(
|
|||
if not datasets:
|
||||
raise DatasetNotFoundError(message="No datasets found.")
|
||||
|
||||
graph_engine = await get_graph_engine()
|
||||
is_empty = await graph_engine.is_empty()
|
||||
|
||||
if is_empty:
|
||||
logger.warning("Search attempt on an empty knowledge graph")
|
||||
return []
|
||||
|
||||
filtered_search_results = await search_function(
|
||||
query_text=query_text,
|
||||
query_type=query_type,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue