From 9357190dcd53f2bfa7f72478f9f8aa7d40ffa6a3 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Wed, 1 Mar 2023 20:19:05 +0800 Subject: [PATCH] d --- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 70fecc161..ca6951448 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1751,7 +1751,7 @@ function send_modalchat(elem) prompt = prompt +'网页内容:\n' fulltext.sort((a, b) => { - if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) { + if (cosineSimilarity(word,a) > cosineSimilarity(word,b)) { return -1 } else { return 1 diff --git a/searx/webapp1.py b/searx/webapp1.py index 70fecc161..ca6951448 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1751,7 +1751,7 @@ function send_modalchat(elem) prompt = prompt +'网页内容:\n' fulltext.sort((a, b) => { - if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) { + if (cosineSimilarity(word,a) > cosineSimilarity(word,b)) { return -1 } else { return 1