fix: eval

This commit is contained in:
Han Xiao
2025-03-11 16:09:17 +08:00
parent 90f6450ca4
commit 9488ba2f97

View File

@@ -601,7 +601,7 @@ But then you realized you have asked them before. You decided to to think out of
Object.entries(allURLs).map(([, result]) => result) Object.entries(allURLs).map(([, result]) => result)
).hostnameCount).sort((a, b) => b[1] - a[1]); ).hostnameCount).sort((a, b) => b[1] - a[1]);
console.log(topHosts) console.log(topHosts)
if (topHosts.length > 0 && Math.random() < 0.6 && !query.q.includes('site:')) { if (topHosts.length > 0 && Math.random() < 0.2 && !query.q.includes('site:')) {
// explore-exploit // explore-exploit
siteQuery = query.q + ' site:' + sampleMultinomial(topHosts); siteQuery = query.q + ' site:' + sampleMultinomial(topHosts);
query.q = siteQuery; query.q = siteQuery;