d
This commit is contained in:
parent
16965f95d6
commit
9357190dcd
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
|||||||
prompt = prompt +'网页内容:\n'
|
prompt = prompt +'网页内容:\n'
|
||||||
|
|
||||||
fulltext.sort((a, b) => {
|
fulltext.sort((a, b) => {
|
||||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
if (cosineSimilarity(word,a) > cosineSimilarity(word,b)) {
|
||||||
return -1
|
return -1
|
||||||
} else {
|
} else {
|
||||||
return 1
|
return 1
|
||||||
|
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
|||||||
prompt = prompt +'网页内容:\n'
|
prompt = prompt +'网页内容:\n'
|
||||||
|
|
||||||
fulltext.sort((a, b) => {
|
fulltext.sort((a, b) => {
|
||||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
if (cosineSimilarity(word,a) > cosineSimilarity(word,b)) {
|
||||||
return -1
|
return -1
|
||||||
} else {
|
} else {
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user