From 040aaacc06003373cd892cee68b9489066f27a30 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Sat, 6 Jul 2024 12:50:28 +0300 Subject: [PATCH] Update demoSearch.ts --- lib/tools/demoSearch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tools/demoSearch.ts b/lib/tools/demoSearch.ts index 70e02d2..c5cf56e 100644 --- a/lib/tools/demoSearch.ts +++ b/lib/tools/demoSearch.ts @@ -35,7 +35,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) { const results = [] for (let i = 0; i < matches.length; i++) { const match = matches[i] - if ((match.score || 1) > 0.275) { + if ((match.score || 1) > 0.255) { const metadata = match.metadata as Metadata const guildId = metadata.guild_id; @@ -72,7 +72,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) { export const runTool = (message_content: string) => async (args: {}): Promise => { try { const embeddings = await getEmbeddings(message_content) - const matches = await getMatchesFromEmbeddings(embeddings, 15, VECTOR_TYPE) + const matches = await getMatchesFromEmbeddings(embeddings, 20, VECTOR_TYPE) return formatResults(matches) } catch (e) {