From 8ffc994e62834200f1e97102eddf5d51aa9b2351 Mon Sep 17 00:00:00 2001 From: berkingurcan Date: Wed, 3 Jul 2024 15:47:01 +0300 Subject: [PATCH] fixo --- lib/tools/demoSearch.ts | 2 +- lib/tools/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tools/demoSearch.ts b/lib/tools/demoSearch.ts index 51e67ac..0ba97b2 100644 --- a/lib/tools/demoSearch.ts +++ b/lib/tools/demoSearch.ts @@ -69,7 +69,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) { return results.join('\n') } -export const runTool = (message_content: string) => async (args: { query: string }): Promise => { +export const runTool = (message_content: string) => async (args: {}): Promise => { try { const embeddings = await getEmbeddings(message_content) const matches = await getMatchesFromEmbeddings(embeddings, 15, VECTOR_TYPE) diff --git a/lib/tools/index.ts b/lib/tools/index.ts index 55d4b0f..2102466 100644 --- a/lib/tools/index.ts +++ b/lib/tools/index.ts @@ -54,5 +54,5 @@ export const searchRunnable: RunnableToolFunction[] = [ ] export const demoSearchRunnable: RunnableToolFunction[] = [ - demoSearchToolRunnable("") + demoSearchToolRunnable(message) ] \ No newline at end of file