feat(wolfram-search): Remove unused imports

This commit is contained in:
ItzCrazyKns 2024-04-17 10:10:28 +05:30
parent 4ab8d6c834
commit 89340fcfff
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065
2 changed files with 1 additions and 5 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
**/node_modules

View File

@ -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.