From 88f7f4da8b7395303ff4e0fe34096f944a7e71c9 Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 14 Apr 2024 17:54:35 -0700 Subject: [PATCH] increase highscore filter --- apps/cf-ai-backend/src/routes/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cf-ai-backend/src/routes/chat.ts b/apps/cf-ai-backend/src/routes/chat.ts index 1277e808..ee02b0a0 100644 --- a/apps/cf-ai-backend/src/routes/chat.ts +++ b/apps/cf-ai-backend/src/routes/chat.ts @@ -64,7 +64,7 @@ export async function POST(request: Request, _: CloudflareVectorizeStore, embedd // return new Response(JSON.stringify({ message: "No Results Found" }), { status: 404 }); // } - const highScoreIds = responses.matches.filter(({ score }) => score > 0.35).map(({ id }) => id); + const highScoreIds = responses.matches.filter(({ score }) => score > 0.4).map(({ id }) => id); console.log('highscoreIds', highScoreIds);