aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-04-14 17:54:35 -0700
committerDhravya <[email protected]>2024-04-14 17:54:35 -0700
commit88f7f4da8b7395303ff4e0fe34096f944a7e71c9 (patch)
tree20a6777f89ca97494d2621ba0b000d88129e6733
parentadded readme (diff)
downloadsupermemory-88f7f4da8b7395303ff4e0fe34096f944a7e71c9.tar.xz
supermemory-88f7f4da8b7395303ff4e0fe34096f944a7e71c9.zip
increase highscore filter
-rw-r--r--apps/cf-ai-backend/src/routes/chat.ts2
1 files changed, 1 insertions, 1 deletions
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);