From 89340fcfffe24457022ba127659168ae676572a3 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns Date: Wed, 17 Apr 2024 10:10:28 +0530 Subject: [PATCH] feat(wolfram-search): Remove unused imports --- .dockerignore | 1 + src/agents/wolframAlphaSearchAgent.ts | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..600e365 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +**/node_modules \ No newline at end of file diff --git a/src/agents/wolframAlphaSearchAgent.ts b/src/agents/wolframAlphaSearchAgent.ts index 4f233af..a9a3202 100644 --- a/src/agents/wolframAlphaSearchAgent.ts +++ b/src/agents/wolframAlphaSearchAgent.ts @@ -16,7 +16,6 @@ import { searchSearxng } from '../core/searxng'; import type { StreamEvent } from '@langchain/core/tracers/log_stream'; import formatChatHistoryAsString from '../utils/formatHistory'; import eventEmitter from 'events'; -import computeSimilarity from '../utils/computeSimilarity'; const chatLLM = new ChatOpenAI({ modelName: process.env.MODEL_NAME, @@ -28,10 +27,6 @@ const llm = new OpenAI({ modelName: process.env.MODEL_NAME, }); -const embeddings = new OpenAIEmbeddings({ - modelName: 'text-embedding-3-large', -}); - const basicWolframAlphaSearchRetrieverPrompt = ` You will be given a conversation below and a follow up question. You need to rephrase the follow-up question if needed so it is a standalone question that can be used by the LLM to search the web for information. If it is a writing task or a simple hi, hello rather than a question, you need to return \`not_needed\` as the response.