mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
update hostname boost value
This commit is contained in:
parent
dd6ee81baa
commit
d0165d419e
@ -289,7 +289,7 @@ export const rankURLs = (urlItems: SearchSnippet[], options: any = {}, trackers:
|
||||
|
||||
// Hostname boost (normalized by total URLs)
|
||||
const hostnameFreq = normalizeCount(hostnameCount[hostname] || 0, totalUrls);
|
||||
const hostnameBoost = hostnameFreq * hostnameBoostFactor * (boostHostnames.includes(hostname) ? 2 : 1);
|
||||
const hostnameBoost = hostnameFreq * hostnameBoostFactor + (boostHostnames.includes(hostname) ? 2 : 0);
|
||||
|
||||
// Path boost (consider all path prefixes with decay for longer paths)
|
||||
let pathBoost = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user