Skip to content

Commit 88f7f4d

Browse files
committed
increase highscore filter
1 parent 205575c commit 88f7f4d

File tree

1 file changed

+1
-1
lines changed
  • apps/cf-ai-backend/src/routes

1 file changed

+1
-1
lines changed

apps/cf-ai-backend/src/routes/chat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function POST(request: Request, _: CloudflareVectorizeStore, embedd
6464
// return new Response(JSON.stringify({ message: "No Results Found" }), { status: 404 });
6565
// }
6666

67-
const highScoreIds = responses.matches.filter(({ score }) => score > 0.35).map(({ id }) => id);
67+
const highScoreIds = responses.matches.filter(({ score }) => score > 0.4).map(({ id }) => id);
6868

6969
console.log('highscoreIds', highScoreIds);
7070

0 commit comments

Comments
 (0)