feat(webSearchRetriever): use `question` instead of `input`

This commit is contained in:
ItzCrazyKns 2024-08-29 16:54:37 +05:30
parent c952469f08
commit 92abbc5b98
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ const createBasicWebSearchRetrieverChain = (llm: BaseChatModel) => {
return { query: question, docs: docs };
} else {
const res = await searchSearxng(input, {
const res = await searchSearxng(question, {
language: 'en',
});
@ -264,7 +264,7 @@ const createBasicWebSearchRetrieverChain = (llm: BaseChatModel) => {
}),
);
return { query: input, docs: documents };
return { query: question, docs: documents };
}
}),
]);