From 0314cb99e3af40845259307d29b73de5f34b590c Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 21 Jul 2024 22:47:29 +0200 Subject: [PATCH] enhanced --- lollms/app.py | 3 ++- requirements.txt | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lollms/app.py b/lollms/app.py index eafb4b2..e5c00b6 100644 --- a/lollms/app.py +++ b/lollms/app.py @@ -979,9 +979,10 @@ class LollmsApplication(LoLLMsCom): "url":chunk.doc.path, "brief":chunk.text }) - internet_search_results += f"{self.start_header_id_template}search result chunk{self.end_header_id_template}\nchunk_infos:{chunk.doc.path}\nchunk_title:{chunk.doc.title}\ncontent:{chunk.text}\n" + internet_search_results += self.system_custom_header("search result chunk")+f"\nchunk_infos:{chunk.doc.path}\nchunk_title:{chunk.doc.title}\ncontent:{chunk.text}\n" else: internet_search_results += "The search response was empty!\nFailed to recover useful information from the search engine.\n" + internet_search_results += self.system_custom_header("information") + "Use the search results to answer the user question." if self.config.internet_quick_search: self.personality.step_end("Performing Internet search (quick mode)") else: diff --git a/requirements.txt b/requirements.txt index fb5ac9a..d57a700 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,4 +18,7 @@ uvicorn python-multipart python-socketio python-socketio[client] -python-socketio[asyncio_client] \ No newline at end of file +python-socketio[asyncio_client] + +freedom-search +scrapemaster \ No newline at end of file