mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
f415f7dfdb
commit
16965f95d6
2 changed files with 2 additions and 2 deletions
|
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
|||
prompt = prompt +'网页内容:\n'
|
||||
|
||||
fulltext.sort((a, b) => {
|
||||
if (a.cosineSimilarity(word,a) < b.cosineSimilarity(word,b)) {
|
||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
||||
return -1
|
||||
} else {
|
||||
return 1
|
||||
|
|
|
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
|||
prompt = prompt +'网页内容:\n'
|
||||
|
||||
fulltext.sort((a, b) => {
|
||||
if (a.cosineSimilarity(word,a) < b.cosineSimilarity(word,b)) {
|
||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
||||
return -1
|
||||
} else {
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue