This commit is contained in:
Saifeddine ALOUI 2024-02-13 22:03:15 +01:00
parent f98007c8f7
commit b99f3dc56c
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit a4c1bed01e3f94987026fb5c6f853215fc5a37fa
Subproject commit ab03d2348fe546b1bf2947eeb6b8a0efc444b2b4

View File

@ -749,7 +749,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
need=True
if need:
self.personality.step_start("Crafting internet search query")
query = self.personality.fast_gen(f"!@>discussion:\n{discussion[-2048:]}\n!@>instruction: Read the discussion and craft a web search query suited to recover needed information to reply to last {self.config.user_name} message.\nDo not answer the prompt. Do not add explanations.\n!@>websearch query: ", max_generation_size=256, show_progress=True, callback=self.personality.sink)
query = self.personality.fast_gen(f"!@>discussion:\n{discussion[-2048:]}\n!@>system: Read the discussion and craft a web search query suited to recover needed information to reply to last {self.config.user_name} message.\nDo not answer the prompt. Do not add explanations.\n!@>websearch query: ", max_generation_size=256, show_progress=True, callback=self.personality.sink)
self.personality.step_end("Crafting internet search query")
self.personality.step(f"web search query: {query}")
@ -788,7 +788,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
if self.config.data_vectorization_build_keys_words:
discussion = self.recover_discussion(client_id)
query = self.personality.fast_gen(f"\n!@>instruction: Read the discussion and rewrite the last prompt for someone who didn't read the entire discussion.\nDo not answer the prompt. Do not add explanations.\n!@>discussion:\n{discussion[-2048:]}\n!@>enhanced query: ", max_generation_size=256, show_progress=True)
ASCIIColors.cyan(f"Query:{query}")
ASCIIColors.cyan(f"Query: {query}")
else:
query = current_message.content

@ -1 +1 @@
Subproject commit 542ee5becb01616c312404343c64ca5797104591
Subproject commit dc80c0fc674593ed879331ebbee62c27331caa4e