diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index 5228a6fb..32793d7c 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -663,7 +663,7 @@ async def extract_references_and_questions( if conversation_type == ConversationCommand.General: return compiled_references, inferred_queries, q - if not sync_to_async(EntryAdapters.user_has_entries)(user=user): + if not await sync_to_async(EntryAdapters.user_has_entries)(user=user): logger.warning( "No content index loaded, so cannot extract references from knowledge base. Please configure your data sources and update the index to chat with your notes." )