Skip to content

Commit

Permalink
fixo
Browse files Browse the repository at this point in the history
  • Loading branch information
berkingurcan committed Jul 3, 2024
1 parent 21dc3be commit 8ffc994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tools/demoSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function formatResults(matches: ScoredPineconeRecord[]) {
return results.join('\n')
}

export const runTool = (message_content: string) => async (args: { query: string }): Promise<string> => {
export const runTool = (message_content: string) => async (args: {}): Promise<string> => {
try {
const embeddings = await getEmbeddings(message_content)
const matches = await getMatchesFromEmbeddings(embeddings, 15, VECTOR_TYPE)
Expand Down
2 changes: 1 addition & 1 deletion lib/tools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export const searchRunnable: RunnableToolFunction<any>[] = [
]

export const demoSearchRunnable: RunnableToolFunction<any>[] = [
demoSearchToolRunnable("")
demoSearchToolRunnable(message)
]

0 comments on commit 8ffc994

Please sign in to comment.