Allow user to chat even if content types aren't configured - use empty references

This commit is contained in:
sabaimran
2023-07-30 18:47:45 -07:00
parent 28df08b907
commit 996832dc72

View File

@@ -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):