diff --git a/docs/search_llm_assist.png b/docs/search_llm_assist.png index 3b0d1f2..6beb892 100644 Binary files a/docs/search_llm_assist.png and b/docs/search_llm_assist.png differ diff --git a/docs/searxng-homepage.png b/docs/searxng-homepage.png index 784054c..2dd18c4 100644 Binary files a/docs/searxng-homepage.png and b/docs/searxng-homepage.png differ diff --git a/docs/videos/pipe_mcts.gif b/docs/videos/pipe_mcts.gif index 381a113..9cf086b 100644 Binary files a/docs/videos/pipe_mcts.gif and b/docs/videos/pipe_mcts.gif differ diff --git a/docs/videos/seaxng_ai_assist.mp4 b/docs/videos/seaxng_ai_assist.mp4 new file mode 100644 index 0000000..990897b Binary files /dev/null and b/docs/videos/seaxng_ai_assist.mp4 differ diff --git a/openfaas-function/docs/litellm-sample.png b/openfaas-function/docs/litellm-sample.png index 14d13f3..4825545 100644 Binary files a/openfaas-function/docs/litellm-sample.png and b/openfaas-function/docs/litellm-sample.png differ diff --git a/python/searxng-addons/search_answers_llm/llm_answer.html b/python/searxng-addons/search_answers_llm/llm_answer.html index f17b644..0aed9ec 100644 --- a/python/searxng-addons/search_answers_llm/llm_answer.html +++ b/python/searxng-addons/search_answers_llm/llm_answer.html @@ -3,7 +3,12 @@
- 🤖 AI Assistant + + + + Search Assist
@@ -145,10 +150,58 @@

About this Answer

} .assist-content { - line-height: 1.6; + line-height: 1.5; padding-bottom: 8px; } + /* Markdown Rendered Content */ + .assist-content h1, + .assist-content h2, + .assist-content h3, + .assist-content h4, + .assist-content h5, + .assist-content h6 { + margin-top: 0.6em; + margin-bottom: 0.4em; + line-height: 1.2; + font-weight: 600; + } + + .assist-content p { + margin-block-start: 0.5em; + margin-block-end: 0.5em; + } + + .assist-content ul, + .assist-content ol { + margin-block-start: 0.5em; + margin-block-end: 0.5em; + padding-inline-start: 30px; + } + + .assist-content li { + margin-bottom: 0.3em; + } + + .assist-content pre { + margin-block-start: 0.8em; + margin-block-end: 0.8em; + } + + .assist-content code { + font-size: 0.9em; + padding: 0.1em 0.3em; + border-radius: 4px; + background-color: #2b2d31; + } + + .assist-content pre code { + display: block; + padding: 0.8em; + border-radius: 6px; + background-color: #1e1e1e; + } + /* Toggle Button */ .assist-toggle-container { text-align: center; diff --git a/python/searxng-addons/search_answers_llm/plugins_langchain_llm.py b/python/searxng-addons/search_answers_llm/plugins_langchain_llm.py index 951ac73..15d1dab 100644 --- a/python/searxng-addons/search_answers_llm/plugins_langchain_llm.py +++ b/python/searxng-addons/search_answers_llm/plugins_langchain_llm.py @@ -86,7 +86,7 @@ def __init__(self, plg_cfg: "PluginCfg") -> None: # Initialize ChatOpenAI once and reuse self.llm = ChatOpenAI( model=self.model_name, - temperature=0.7, + temperature=0.5, base_url=environ.get( "LLM_BASE_URL", "https://generativelanguage.googleapis.com/v1beta/openai/", @@ -253,9 +253,9 @@ def _generate_contextual_answer_html( messages = [ SystemMessage( content="""You are a helpful Search Engine assistant that provides accurate answers and sources based on search results. + Use extractive summarization to identify key information from search results and avoid fillers. Identify the most important information and links from the search results. Format your response using Markdown syntax for better readability. - Warn against potential malicious links when encounterd. Keep the response concise but well-formatted in Markdown.""" ), HumanMessage(