mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Allow user to chat even if content types aren't configured - use empty references
This commit is contained in:
@@ -706,6 +706,10 @@ async def extract_references_and_questions(
|
||||
compiled_references = []
|
||||
inferred_queries = []
|
||||
|
||||
if state.content_index is None:
|
||||
logger.warn("No content index loaded. Cannot extract references from knowledge base.")
|
||||
return compiled_references, inferred_queries
|
||||
|
||||
if conversation_type == "notes":
|
||||
# Infer search queries from user message
|
||||
with timer("Extracting search queries took", logger):
|
||||
|
||||
Reference in New Issue
Block a user