Skip to content

Commit

Permalink
increase highscore filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Apr 15, 2024
1 parent 205575c commit 88f7f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cf-ai-backend/src/routes/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 88f7f4d

Please sign in to comment.