feat(wolfram-search): Remove unused imports
This commit is contained in:
parent
4ab8d6c834
commit
89340fcfff
|
@ -0,0 +1 @@
|
||||||
|
**/node_modules
|
|
@ -16,7 +16,6 @@ import { searchSearxng } from '../core/searxng';
|
||||||
import type { StreamEvent } from '@langchain/core/tracers/log_stream';
|
import type { StreamEvent } from '@langchain/core/tracers/log_stream';
|
||||||
import formatChatHistoryAsString from '../utils/formatHistory';
|
import formatChatHistoryAsString from '../utils/formatHistory';
|
||||||
import eventEmitter from 'events';
|
import eventEmitter from 'events';
|
||||||
import computeSimilarity from '../utils/computeSimilarity';
|
|
||||||
|
|
||||||
const chatLLM = new ChatOpenAI({
|
const chatLLM = new ChatOpenAI({
|
||||||
modelName: process.env.MODEL_NAME,
|
modelName: process.env.MODEL_NAME,
|
||||||
|
@ -28,10 +27,6 @@ const llm = new OpenAI({
|
||||||
modelName: process.env.MODEL_NAME,
|
modelName: process.env.MODEL_NAME,
|
||||||
});
|
});
|
||||||
|
|
||||||
const embeddings = new OpenAIEmbeddings({
|
|
||||||
modelName: 'text-embedding-3-large',
|
|
||||||
});
|
|
||||||
|
|
||||||
const basicWolframAlphaSearchRetrieverPrompt = `
|
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.
|
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.
|
If it is a writing task or a simple hi, hello rather than a question, you need to return \`not_needed\` as the response.
|
||||||
|
|
Loading…
Reference in New Issue