mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Do not add original user message to knowledge search queries for offline chat
It's not required anymore. The extracted questions by the offline chat model being used should be good enough.
This commit is contained in:
@@ -94,7 +94,6 @@ def extract_questions_offline(
|
||||
logger.warning(f"Llama returned invalid JSON. Falling back to using user message as search query.\n{response}")
|
||||
return all_questions
|
||||
logger.debug(f"Extracted Questions by Llama: {questions}")
|
||||
questions.extend(all_questions)
|
||||
return questions
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user