From e02c5984f96699fe516633837075360806ba6156 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Tue, 18 Mar 2025 13:33:34 +0800 Subject: [PATCH] feat: add hostnames bw filter --- src/agent.ts | 2 +- src/utils/schemas.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent.ts b/src/agent.ts index a9090e0..ecf3c46 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -463,7 +463,7 @@ export async function getResponse(question?: string, console.log('Weighted URLs:', weightedURLs.length); } - // allowSearch = allowSearch && (weightedURLs.length < 70); // disable search when too many urls already + allowSearch = allowSearch && (weightedURLs.length < 200); // disable search when too many urls already // generate prompt for this step system = getPrompt( diff --git a/src/utils/schemas.ts b/src/utils/schemas.ts index 8018e06..203baaf 100644 --- a/src/utils/schemas.ts +++ b/src/utils/schemas.ts @@ -3,7 +3,7 @@ import {ObjectGeneratorSafe} from "./safe-generator"; import {EvaluationType, PromptPair} from "../types"; export const MAX_URLS_PER_STEP = 4 -export const MAX_QUERIES_PER_STEP = 7 +export const MAX_QUERIES_PER_STEP = 5 export const MAX_REFLECT_PER_STEP = 2 function getLanguagePrompt(question: string): PromptPair {