increase highscore filter

This commit is contained in:
Dhravya 2024-04-14 17:54:35 -07:00
parent 205575c4c9
commit 88f7f4da8b

View file

@ -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);