refactor: build ref with embeddings

This commit is contained in:
Han Xiao 2025-04-15 23:28:44 +08:00
parent b432a27bff
commit 94cb43a26a

View File

@ -393,7 +393,7 @@ export async function getResponse(question?: string,
badHostnames: string[] = [], badHostnames: string[] = [],
onlyHostnames: string[] = [], onlyHostnames: string[] = [],
maxRef: number = 10, maxRef: number = 10,
minRelScore: number = 0.7 minRelScore: number = 0.75
): Promise<{ result: StepAction; context: TrackerContext; visitedURLs: string[], readURLs: string[], allURLs: string[] }> { ): Promise<{ result: StepAction; context: TrackerContext; visitedURLs: string[], readURLs: string[], allURLs: string[] }> {
let step = 0; let step = 0;